Commit 4a1e436f authored by “yiyousong”'s avatar “yiyousong”

pref:修改首页报表获取

parent ba5724c5
......@@ -190,23 +190,25 @@ export default {
async censusListInterface() {
this.siteId = Storage.get(2, "siteId");
let res = await censusListInterface({ siteId: this.siteId });
let {
CensusType_1,
CensusType_2,
CensusType_3,
CensusType_4,
CensusType_5,
} = res.data.data;
if (CensusType_1 && CensusType_1.length)
this.CensusType_1 = CensusType_1.filter((v) => v.status != 0);
if (CensusType_2 && CensusType_2.length)
this.CensusType_2 = CensusType_2.filter((v) => v.status != 0);
if (CensusType_3 && CensusType_3.length)
this.CensusType_3 = CensusType_3.filter((v) => v.status != 0);
if (CensusType_4 && CensusType_4.length)
this.CensusType_4 = CensusType_4.filter((v) => v.status != 0);
if (CensusType_5 && CensusType_5.length)
this.CensusType_5 = CensusType_5.filter((v) => v.status != 0);
if (res.code == 1) {
let {
CensusType_1,
CensusType_2,
CensusType_3,
CensusType_4,
CensusType_5,
} = res.data.data;
if (CensusType_1 && CensusType_1.length)
this.CensusType_1 = CensusType_1.filter((v) => v.status != 0);
if (CensusType_2 && CensusType_2.length)
this.CensusType_2 = CensusType_2.filter((v) => v.status != 0);
if (CensusType_3 && CensusType_3.length)
this.CensusType_3 = CensusType_3.filter((v) => v.status != 0);
if (CensusType_4 && CensusType_4.length)
this.CensusType_4 = CensusType_4.filter((v) => v.status != 0);
if (CensusType_5 && CensusType_5.length)
this.CensusType_5 = CensusType_5.filter((v) => v.status != 0);
}
},
// 查看数据
handleCkeck(path) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment