Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
aixianling
2023-09-11 14:40:47 +08:00

View File

@@ -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()
},