This commit is contained in:
duanxiaohai 2024-08-28 15:36:58 +08:00
parent 3ae1e1df34
commit 7ddc313d8a
2 changed files with 58 additions and 31 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -300,7 +300,9 @@
<img src="../assets/images/sy/dropDown.png" /> <img src="../assets/images/sy/dropDown.png" />
<span>龙游通平均日活</span> <span>龙游通平均日活</span>
</div> </div>
<span style="margin-right: 20px">8146</span> <span style="margin-right: 20px">{{
data.lytAppDayActive
}}</span>
</div> </div>
</div> </div>
<el-table <el-table
@ -944,37 +946,39 @@ const data = reactive({
cxyilbxzzc: "0", // cxyilbxzzc: "0", //
nf: "", // nf: "", //
}, // }, //
lytAppDayActive: "105",
tableData: [ tableData: [
{ // {
highFrequencyApp: "智享工会", // highFrequencyApp: "",
monthlyVisits: "474797", // monthlyVisits: "474797",
highFrequencyApp1: "公交查询", // highFrequencyApp1: "",
monthlyVisits1: "26837", // monthlyVisits1: "26837",
}, // },
{ // {
highFrequencyApp: "老兵码", // highFrequencyApp: "",
monthlyVisits: "18246", // monthlyVisits: "18246",
highFrequencyApp1: "小奔通", // highFrequencyApp1: "",
monthlyVisits1: "22917", // monthlyVisits1: "22917",
}, // },
{ // {
highFrequencyApp: "民政为民", // highFrequencyApp: "",
monthlyVisits: "12899", // monthlyVisits: "12899",
highFrequencyApp1: "公共自行车", // highFrequencyApp1: "",
monthlyVisits1: "22705", // monthlyVisits1: "22705",
}, // },
{ // {
highFrequencyApp: "走心驿站", // highFrequencyApp: "",
monthlyVisits: "8524", // monthlyVisits: "8524",
highFrequencyApp1: "商城积分", // highFrequencyApp1: "",
monthlyVisits1: "18080", // monthlyVisits1: "18080",
}, // },
{ // {
highFrequencyApp: "龙游通", // highFrequencyApp: "",
monthlyVisits: "2205", // monthlyVisits: "2205",
highFrequencyApp1: "商户入口", // highFrequencyApp1: "",
monthlyVisits1: "3565", // monthlyVisits1: "3565",
}, // },
], ],
jysyList: [ jysyList: [
{ {
@ -1301,6 +1305,29 @@ const getData = async () => {
data.ageRatio.push(res.data.rksj[key]); data.ageRatio.push(res.data.rksj[key]);
}); });
// && // &&
data.lytAppDayActive = res.data.app.lytAppDayActive;
// for (let i = 0; i < res.data.app.lytApp.length; i += 2) {
// let obj = {
// highFrequencyApp: res.data.app.lytApp[i]?.title || "",
// monthlyVisits: res.data.app.lytApp[i]?.num || "",
// highFrequencyApp1: res.data.app.lytApp[i + 1]?.title || "",
// monthlyVisits1: res.data.app.lytApp[i + 1]?.num || "",
// };
// data.tableData.push(obj);
// }
data.tableData = res.data.app.lytApp.reduce((acc, _, i, arr) => {
if (i % 2 === 0) {
acc.push({
highFrequencyApp: arr[i]?.title || "",
monthlyVisits: arr[i]?.num || "",
highFrequencyApp1: arr[i + 1]?.title || "",
monthlyVisits1: arr[i + 1]?.num || "",
});
}
return acc;
}, []);
// //
const ylwsKeys = [ const ylwsKeys = [
"yywsysl", "yywsysl",