This commit is contained in:
liuye
2023-09-12 11:35:17 +08:00
parent 76897034c5
commit 3f31f73952

View File

@@ -78,7 +78,6 @@ export default {
}, },
methods: { methods: {
getStatistics() { getStatistics() {
if(this.flag) return
this.todayList = [], this.finishData = [], this.trendDataX = [], this.trendData = [], this.typeData = [], this.showFinish = false 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) => { this.$http.post(`/app/apppatrolreportinfo/countByGirdId?girdId=${this.selectGird.id}&eventStatus=${this.statusInfo.eventStatus}`).then((res) => {
if (res.code == 0) { if (res.code == 0) {
@@ -132,7 +131,6 @@ export default {
this.typeChartInit() this.typeChartInit()
} }
}) })
this.flag = false
} }
}) })
}, },
@@ -302,7 +300,6 @@ export default {
}, },
handleSelectGird(v) { handleSelectGird(v) {
console.log(11) console.log(11)
this.flag = true
this.selectGird = v || {} this.selectGird = v || {}
this.getStatistics() this.getStatistics()
}, },