|
@ -99,6 +99,7 @@ export default { |
|
|
colorArray: [], |
|
|
colorArray: [], |
|
|
pieData: [], |
|
|
pieData: [], |
|
|
|
|
|
|
|
|
|
|
|
name: '', |
|
|
code: '', |
|
|
code: '', |
|
|
dangerLevel: '', |
|
|
dangerLevel: '', |
|
|
|
|
|
|
|
@ -192,11 +193,15 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async handleAreaChange (val) { |
|
|
async handleAreaChange (val) { |
|
|
|
|
|
|
|
|
|
|
|
debugger |
|
|
if (val.length > 0) { |
|
|
if (val.length > 0) { |
|
|
// this.code = val.join('-') |
|
|
// this.code = val.join('-') |
|
|
this.code = val[val.length - 1] |
|
|
// this.code = val[val.length - 1] |
|
|
|
|
|
this.name = this.$refs["sourceArea"].getCheckedNodes()[0].label |
|
|
} else { |
|
|
} else { |
|
|
this.code = '' |
|
|
// this.code = '' |
|
|
|
|
|
this.name = '' |
|
|
} |
|
|
} |
|
|
await this.getPieChart() |
|
|
await this.getPieChart() |
|
|
|
|
|
|
|
@ -268,7 +273,8 @@ export default { |
|
|
const url = "/epmetuser/tripreport/emphasisTripPieDetail"; |
|
|
const url = "/epmetuser/tripreport/emphasisTripPieDetail"; |
|
|
// const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/tripreport/emphasisTripPieDetail"; |
|
|
// const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/tripreport/emphasisTripPieDetail"; |
|
|
let params = { |
|
|
let params = { |
|
|
code: this.code, |
|
|
|
|
|
|
|
|
name: this.name, |
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
@ -418,7 +424,7 @@ export default { |
|
|
const url = "/epmetuser/tripreport/list"; |
|
|
const url = "/epmetuser/tripreport/list"; |
|
|
// const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/tripreport/list"; |
|
|
// const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/tripreport/list"; |
|
|
let params = { |
|
|
let params = { |
|
|
code: this.code, |
|
|
name: this.name, |
|
|
dangerLevel: this.dangerLevel, |
|
|
dangerLevel: this.dangerLevel, |
|
|
pageNo: this.demand.pageNo, |
|
|
pageNo: this.demand.pageNo, |
|
|
pageSize: this.demand.pageSize, |
|
|
pageSize: this.demand.pageSize, |
|
@ -491,6 +497,9 @@ export default { |
|
|
this.getApiData(); |
|
|
this.getApiData(); |
|
|
window.scrollTo(0, 0); |
|
|
window.scrollTo(0, 0); |
|
|
}, |
|
|
}, |
|
|
|
|
|
// sourceAllCode (val) { |
|
|
|
|
|
// // debugger |
|
|
|
|
|
// } |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|