diff --git a/src/components/site/previewOfSiteStatus.vue b/src/components/site/previewOfSiteStatus.vue index 44e06d9..c2299ea 100644 --- a/src/components/site/previewOfSiteStatus.vue +++ b/src/components/site/previewOfSiteStatus.vue @@ -376,6 +376,7 @@ ], dynamic: 0, ChecksplatformCode: "", //选取的平台的编号 + platformtype: "", //选取的站点统计类型 ChecksplatformCodeTest: "全部项目", //选取的默认文字 historyList: [], // 项目选择B @@ -456,9 +457,11 @@ }, // 根据平台渲染站点统计 loadSiteNumForOroject() { + // console.log(this.platformtype, this.ChecksplatformCode); + this.$http .post(this.nozzle.getSiteNum, { - data: { platform: this.ChecksplatformCode, type: "" } + data: { platform: this.ChecksplatformCode, type: this.platformtype } }) .then(response => { if (response.status === 200) { @@ -492,9 +495,12 @@ }); this.namelist[index].select = true; + // console.log(this.platformtype, this.ChecksplatformCode); + this.platformtype = item.type; + this.$http .post(this.nozzle.getSiteNum, { - data: { platform: item.platform, type: item.type } + data: { platform: this.ChecksplatformCode, type: this.platformtype } }) .then(response => { if (response.status === 200) {