Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -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,6 +301,8 @@ export default {
|
|||||||
this.getStatistics()
|
this.getStatistics()
|
||||||
},
|
},
|
||||||
handleSelectGird(v) {
|
handleSelectGird(v) {
|
||||||
|
console.log(11)
|
||||||
|
this.flag = true
|
||||||
this.selectGird = v || {}
|
this.selectGird = v || {}
|
||||||
this.getStatistics()
|
this.getStatistics()
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user