diff --git a/src/project/lulong/AppHandSnapshot/Statistics.vue b/src/project/lulong/AppHandSnapshot/Statistics.vue index 0f42073a..41e2baf2 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,6 +301,8 @@ export default { this.getStatistics() }, handleSelectGird(v) { + console.log(11) + this.flag = true this.selectGird = v || {} this.getStatistics() },