This commit is contained in:
liuye
2023-09-11 11:35:53 +08:00
parent 568ffbb825
commit 5ab8d5e00c

View File

@@ -65,7 +65,8 @@ export default {
trendData: [], trendData: [],
trendDataX: [], trendDataX: [],
typeData: [], typeData: [],
statusInfo: {name: '', eventStatus: ''} statusInfo: {name: '', eventStatus: ''},
flag: false
} }
}, },
computed: { computed: {
@@ -77,6 +78,7 @@ 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) {
@@ -130,6 +132,7 @@ export default {
this.typeChartInit() this.typeChartInit()
} }
}) })
this.flag = false
} }
}) })
}, },
@@ -298,7 +301,9 @@ export default {
this.getStatistics() this.getStatistics()
}, },
handleSelectGird(v) { handleSelectGird(v) {
this.selectGird = v || {} console.log(11)
// this.selectGird = v || {}
this.flag = true
this.getStatistics() this.getStatistics()
}, },
toList(row) { toList(row) {