From ddbe3e20e52cdd569e8a4a950874b13b2ed2eb26 Mon Sep 17 00:00:00 2001 From: dhy1725534722 <1725534722@qq.com> Date: Sat, 30 Sep 2023 14:44:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/yingji/echarts/completePlan.vue | 8 +++---- src/views/yingji/echarts/executionPlan.vue | 9 +++++-- src/views/yingji/echarts/finishRate.vue | 16 ++++++------- src/views/yingji/enforcing.vue | 11 ++++----- src/views/yingji/enterprise.vue | 28 +++++++++++++++------- src/views/yingji/focusEnter.vue | 2 +- src/views/yingji/home.vue | 13 +++++++--- 7 files changed, 53 insertions(+), 34 deletions(-) diff --git a/src/views/yingji/echarts/completePlan.vue b/src/views/yingji/echarts/completePlan.vue index 11f41fb..7f0d792 100644 --- a/src/views/yingji/echarts/completePlan.vue +++ b/src/views/yingji/echarts/completePlan.vue @@ -20,14 +20,12 @@ export default { type: Boolean, default: true, }, - - }, - mounted() { }, + mounted() {}, methods: { getData(e) { - this.arr1= [] - this.arr2= [] + this.arr1 = []; + this.arr2 = []; e.forEach((value) => { this.arr1.push(value.institutionName); this.arr2.push(value.checkEnterpriseCount); diff --git a/src/views/yingji/echarts/executionPlan.vue b/src/views/yingji/echarts/executionPlan.vue index da9581a..f331c33 100644 --- a/src/views/yingji/echarts/executionPlan.vue +++ b/src/views/yingji/echarts/executionPlan.vue @@ -24,8 +24,13 @@ export default { this.arr1 = []; this.arr2 = []; e.forEach((value) => { - 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.institutionName); + this.arr2.push(value.plannedEnterpriseCount); + } }); this.init(); }, diff --git a/src/views/yingji/echarts/finishRate.vue b/src/views/yingji/echarts/finishRate.vue index b4e9576..982eea4 100644 --- a/src/views/yingji/echarts/finishRate.vue +++ b/src/views/yingji/echarts/finishRate.vue @@ -15,9 +15,7 @@ export default { numTotal: 0, }; }, - mounted() { - - }, + mounted() {}, props: { loadS: { type: Boolean, @@ -26,10 +24,10 @@ export default { }, methods: { getData(e) { - this.arr1= [] - this.arr2= [] + this.arr1 = []; + this.arr2 = []; e.forEach((value1) => { - if (value1.institutionName != "苏州") { + if (value1.institutionName != "苏州市") { this.arr1.push({ value: value1.checkEnterpriseCount, name: value1.institutionName, @@ -38,8 +36,8 @@ export default { } else { this.arr2.push({ value: value1.plannedEnterpriseCount, - name: value1.institutionName, - pt: value1.pt=='NaN'?0:value1.pt, + name: value1.institutionName , + pt: value1.pt == "NaN" ? 0 : value1.pt.toFixed(2), }); } }); @@ -141,7 +139,7 @@ export default { position: "center", formatter: function (params) { console.log(params); - return `{a|${params.data.pt * 100}%}\n{b|${ + return `{a|${Number(params.data.pt) * 100}%}\n{b|${ params.data.name }完成率}`; }, diff --git a/src/views/yingji/enforcing.vue b/src/views/yingji/enforcing.vue index 05f1953..6620b52 100644 --- a/src/views/yingji/enforcing.vue +++ b/src/views/yingji/enforcing.vue @@ -224,11 +224,6 @@ export default { label: "检查场所", value: "", }, - { - eng: "examineSituation", - label: "检查情况", - value: "", - }, { eng: "examineSource", label: "检查来源", @@ -285,12 +280,16 @@ export default { label: "文书类型", value: "", }, - { eng: "writNo", label: "文书文号", value: "", }, + { + eng: "examineSituation", + label: "检查情况", + value: "", + }, ], searchBefore: { pageSize: 10, diff --git a/src/views/yingji/enterprise.vue b/src/views/yingji/enterprise.vue index a185a09..2eb67ec 100644 --- a/src/views/yingji/enterprise.vue +++ b/src/views/yingji/enterprise.vue @@ -4,7 +4,11 @@