diff --git a/src/components/site/previewOfSiteStatus.vue b/src/components/site/previewOfSiteStatus.vue index 5aca27a..7d9a712 100644 --- a/src/components/site/previewOfSiteStatus.vue +++ b/src/components/site/previewOfSiteStatus.vue @@ -95,9 +95,9 @@ /> 站点统计
- 全部 - 合同 - 临测 + 全部 + 合同 + 临测
@@ -473,6 +473,36 @@ message(response); }); }, + // 单击显示平台站点 + allpreview(platform) { + this.$http + .post(this.nozzle.sysPlatformGetSiteCountAndState, { + data: { platform: platform } + }) + .then(response => { + if (response.data.code === 200) { + // 将当前数据设置成数字滚动的初始值 + this.Site.SAll = this.Site.EAll; + this.Site.SOn = this.Site.EOn; + this.Site.SOff = this.Site.EOff; + this.Project.SAll = this.Project.EAll; + this.Project.SOn = this.Project.EOn; + this.Project.SOff = this.Project.EOff; + // 将新数据设置成数字滚动的结束值 也就是展示值 + this.Site.EAll = response.data.data.sitecount; + this.Site.EOn = response.data.data.onlinecount; + this.Site.EOff = response.data.data.offlinecount; + this.Project.EAll = response.data.data.projectcount; + this.Project.EOn = response.data.data.completed; + this.Project.EOff = response.data.data.noncompleted; + } else { + message(response); + } + }) + .catch(response => { + message(response); + }); + }, // 加载项目站点覆盖排名 loadQuyuPaiMing() { this.$http