From 5ab8d5e00ca49812b2e989f5d6e89a9e09ef5242 Mon Sep 17 00:00:00 2001 From: liuye Date: Mon, 11 Sep 2023 11:35:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/lulong/AppHandSnapshot/Statistics.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/project/lulong/AppHandSnapshot/Statistics.vue b/src/project/lulong/AppHandSnapshot/Statistics.vue index 0f42073a..a2ef8625 100644 --- a/src/project/lulong/AppHandSnapshot/Statistics.vue +++ b/src/project/lulong/AppHandSnapshot/Statistics.vue @@ -65,7 +65,8 @@ export default { trendData: [], trendDataX: [], typeData: [], - statusInfo: {name: '', eventStatus: ''} + statusInfo: {name: '', eventStatus: ''}, + flag: false } }, computed: { @@ -77,6 +78,7 @@ export default { }, methods: { getStatistics() { + if(this.flag) return this.todayList = [], this.finishData = [], this.trendDataX = [], this.trendData = [], this.typeData = [], this.showFinish = false this.$http.post(`/app/apppatrolreportinfo/countByGirdId?girdId=${this.selectGird.id}&eventStatus=${this.statusInfo.eventStatus}`).then((res) => { if (res.code == 0) { @@ -130,6 +132,7 @@ export default { this.typeChartInit() } }) + this.flag = false } }) }, @@ -298,7 +301,9 @@ export default { this.getStatistics() }, handleSelectGird(v) { - this.selectGird = v || {} + console.log(11) + // this.selectGird = v || {} + this.flag = true this.getStatistics() }, toList(row) {