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" />
<span>龙游通平均日活</span>
</div>
<span style="margin-right: 20px">8146</span>
<span style="margin-right: 20px">{{
data.lytAppDayActive
}}</span>
</div>
</div>
<el-table
@ -944,37 +946,39 @@ const data = reactive({
cxyilbxzzc: "0", //
nf: "", //
}, //
lytAppDayActive: "105",
tableData: [
{
highFrequencyApp: "智享工会",
monthlyVisits: "474797",
highFrequencyApp1: "公交查询",
monthlyVisits1: "26837",
},
{
highFrequencyApp: "老兵码",
monthlyVisits: "18246",
highFrequencyApp1: "小奔通",
monthlyVisits1: "22917",
},
{
highFrequencyApp: "民政为民",
monthlyVisits: "12899",
highFrequencyApp1: "公共自行车",
monthlyVisits1: "22705",
},
{
highFrequencyApp: "走心驿站",
monthlyVisits: "8524",
highFrequencyApp1: "商城积分",
monthlyVisits1: "18080",
},
{
highFrequencyApp: "龙游通",
monthlyVisits: "2205",
highFrequencyApp1: "商户入口",
monthlyVisits1: "3565",
},
// {
// highFrequencyApp: "",
// monthlyVisits: "474797",
// highFrequencyApp1: "",
// monthlyVisits1: "26837",
// },
// {
// highFrequencyApp: "",
// monthlyVisits: "18246",
// highFrequencyApp1: "",
// monthlyVisits1: "22917",
// },
// {
// highFrequencyApp: "",
// monthlyVisits: "12899",
// highFrequencyApp1: "",
// monthlyVisits1: "22705",
// },
// {
// highFrequencyApp: "",
// monthlyVisits: "8524",
// highFrequencyApp1: "",
// monthlyVisits1: "18080",
// },
// {
// highFrequencyApp: "",
// monthlyVisits: "2205",
// highFrequencyApp1: "",
// monthlyVisits1: "3565",
// },
],
jysyList: [
{
@ -1301,6 +1305,29 @@ const getData = async () => {
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 = [
"yywsysl",