This commit is contained in:
姚宇浩 2024-08-28 15:41:59 +08:00
commit 5a8bfbff49
3 changed files with 99 additions and 48 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -802,26 +802,50 @@ const onClickTag = (item) => {
dialogShow.value = true;
};
//
// const onClickTag2 = (name, label) => {
// //
// if (name == "" && !isShs.value) {
// } else {
// tableType.title = name;
// dataMyTag.title = label;
// tableType.url = columnsList[name].url;
// tableType.columns = columnsList[name].column;
// if (name == "") {
// } else if (name == "") {
// dataMyTag.form.column = columnsList[""].column;
// dataMyTag.zfForm.column = columnsList["访"].column;
// oneCardSolution();
// visitRecords();
// getTable(tableType.url, true);
// } else {
// getTable(tableType.url, true);
// }
// }
// };
const onClickTag2 = (name, label) => {
//
if (name == "身后事" && !isShs.value) {
} else {
if (name === "身后事" && !isShs.value) {
return;
}
tableType.title = name;
dataMyTag.title = label;
tableType.url = columnsList[name].url;
tableType.columns = columnsList[name].column;
if (name == "婚育") {
} else if (name == "综合") {
if (name === "婚育") {
return;
}
if (name === "综合") {
dataMyTag.form.column = columnsList["一卡通"].column;
dataMyTag.zfForm.column = columnsList["走访记录"].column;
oneCardSolution();
visitRecords();
getTable(tableType.url, true);
} else {
getTable(tableType.url, true);
}
}
getTable(tableType.url, true);
};
/**
* 判断右侧显示的为表格还是列表0为列表1为表格
*/

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",