统计
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user