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

pref:修改首页报表获取

parent ba5724c5
...@@ -190,23 +190,25 @@ export default { ...@@ -190,23 +190,25 @@ export default {
async censusListInterface() { async censusListInterface() {
this.siteId = Storage.get(2, "siteId"); this.siteId = Storage.get(2, "siteId");
let res = await censusListInterface({ siteId: this.siteId }); let res = await censusListInterface({ siteId: this.siteId });
let { if (res.code == 1) {
CensusType_1, let {
CensusType_2, CensusType_1,
CensusType_3, CensusType_2,
CensusType_4, CensusType_3,
CensusType_5, CensusType_4,
} = res.data.data; CensusType_5,
if (CensusType_1 && CensusType_1.length) } = res.data.data;
this.CensusType_1 = CensusType_1.filter((v) => v.status != 0); if (CensusType_1 && CensusType_1.length)
if (CensusType_2 && CensusType_2.length) this.CensusType_1 = CensusType_1.filter((v) => v.status != 0);
this.CensusType_2 = CensusType_2.filter((v) => v.status != 0); if (CensusType_2 && CensusType_2.length)
if (CensusType_3 && CensusType_3.length) this.CensusType_2 = CensusType_2.filter((v) => v.status != 0);
this.CensusType_3 = CensusType_3.filter((v) => v.status != 0); if (CensusType_3 && CensusType_3.length)
if (CensusType_4 && CensusType_4.length) this.CensusType_3 = CensusType_3.filter((v) => v.status != 0);
this.CensusType_4 = CensusType_4.filter((v) => v.status != 0); if (CensusType_4 && CensusType_4.length)
if (CensusType_5 && CensusType_5.length) this.CensusType_4 = CensusType_4.filter((v) => v.status != 0);
this.CensusType_5 = CensusType_5.filter((v) => v.status != 0); if (CensusType_5 && CensusType_5.length)
this.CensusType_5 = CensusType_5.filter((v) => v.status != 0);
}
}, },
// 查看数据 // 查看数据
handleCkeck(path) { 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