From c7841e2765192a45fd3c7c26167d1f32ea237ce1 Mon Sep 17 00:00:00 2001 From: laozt <2721205210@qq.com> Date: Wed, 20 Dec 2023 15:30:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/yingji/echarts/completePlan.vue | 4 ++-- src/views/yingji/echarts/executionPlan.vue | 15 ++++++++------- src/views/yingji/echarts/finishRate.vue | 22 +++++++++++----------- src/views/yingji/home.vue | 1 + 4 files changed, 22 insertions(+), 20 deletions(-) diff --git a/src/views/yingji/echarts/completePlan.vue b/src/views/yingji/echarts/completePlan.vue index 794b26b..0ff95f0 100644 --- a/src/views/yingji/echarts/completePlan.vue +++ b/src/views/yingji/echarts/completePlan.vue @@ -39,8 +39,8 @@ export default { this.arr1 = []; this.arr2 = []; this.newTable.forEach((value) => { - this.arr1.push(value.institutionName); - this.arr2.push(value.checkEnterpriseCount); + this.arr1.push(value.lawAreas); + this.arr2.push(value.count); }); this.arr1.reverse(); this.arr2.reverse(); diff --git a/src/views/yingji/echarts/executionPlan.vue b/src/views/yingji/echarts/executionPlan.vue index b787346..e76bdcd 100644 --- a/src/views/yingji/echarts/executionPlan.vue +++ b/src/views/yingji/echarts/executionPlan.vue @@ -36,14 +36,15 @@ export default { getData() { this.arr1 = []; this.arr2 = []; + console.log( this.newTable); this.newTable.forEach((value) => { - if (value.institutionName == "苏州市") { - this.arr1.unshift(value.institutionName); - this.arr2.unshift(value.plannedEnterpriseCount); - } else { - this.arr1.push(value.institutionName); - this.arr2.push(value.plannedEnterpriseCount); - } + // if (value.institutionName == "苏州市") { + // this.arr1.unshift(value.institutionName); + // this.arr2.unshift(value.plannedEnterpriseCount); + // } else { + this.arr1.push(value.lawAreas); + this.arr2.push(value.count); + // } }); this.init(); }, diff --git a/src/views/yingji/echarts/finishRate.vue b/src/views/yingji/echarts/finishRate.vue index 7b1fd3b..5479ce0 100644 --- a/src/views/yingji/echarts/finishRate.vue +++ b/src/views/yingji/echarts/finishRate.vue @@ -40,19 +40,19 @@ export default { this.arr1 = []; this.arr2 = []; this.newTable.forEach((value1) => { - if (value1.institutionName != "苏州市") { - this.arr1.push({ - value: value1.checkEnterpriseCount, - name: value1.institutionName, - pt: value1.pt, - }); - } else { + // if (value1.institutionName != "苏州市") { + // this.arr1.push({ + // value: value1.checkEnterpriseCount, + // name: value1.institutionName, + // pt: value1.pt, + // }); + // } else { this.arr2.push({ - value: value1.plannedEnterpriseCount, - name: value1.institutionName, - pt: value1.pt == "NaN" ? 0 : value1.pt.toFixed(2), + value: value1.count, + name: value1.lawAreas, + pt: value1.completionRate == "NaN" ? 0 : value1.completionRate.toFixed(2), }); - } + // } }); this.initChart(); }, diff --git a/src/views/yingji/home.vue b/src/views/yingji/home.vue index d4c4074..d8b3e9b 100644 --- a/src/views/yingji/home.vue +++ b/src/views/yingji/home.vue @@ -337,6 +337,7 @@ export default { treeEnterprise(this.queryParams).then((response) => { // console.log(response); this.tableData = response.data; + this.newTable = response.data }); }, // 打开县区下的列表数据