diff --git a/src/components/site/previewOfSiteStatus.vue b/src/components/site/previewOfSiteStatus.vue index 909d7ca..6613471 100644 --- a/src/components/site/previewOfSiteStatus.vue +++ b/src/components/site/previewOfSiteStatus.vue @@ -372,6 +372,7 @@ ], dynamic: 0, ChecksplatformCode: "", //选取的平台的编号 + platformtype: "", //选取的站点统计类型 ChecksplatformCodeTest: "全部项目", //选取的默认文字 historyList: [], // 项目选择B @@ -452,9 +453,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) { @@ -488,9 +491,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) {