Browse Source

可视化重点形成查询改成name

dev-新版ui
jiangyy 3 years ago
parent
commit
b45c08a6d5
  1. 17
      src/views/modules/visual/communityGovern/zhongdianxingcheng/zhongdianxingcheng.vue

17
src/views/modules/visual/communityGovern/zhongdianxingcheng/zhongdianxingcheng.vue

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

Loading…
Cancel
Save