diff --git a/src/views/modules/visual/communityGovern/zhongdianxingcheng/zhongdianxingcheng.vue b/src/views/modules/visual/communityGovern/zhongdianxingcheng/zhongdianxingcheng.vue index c3084c377..184dc1c5f 100644 --- a/src/views/modules/visual/communityGovern/zhongdianxingcheng/zhongdianxingcheng.vue +++ b/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 + // } }, };