From ce64ba80a8d036c391eb3fef24026745bbeba3fd Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 7 Jan 2022 18:56:21 +0800 Subject: [PATCH 1/2] bug --- src/apps/AppHandSnapshot/List.vue | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/apps/AppHandSnapshot/List.vue b/src/apps/AppHandSnapshot/List.vue index 96eef096..ab8e8de1 100644 --- a/src/apps/AppHandSnapshot/List.vue +++ b/src/apps/AppHandSnapshot/List.vue @@ -77,7 +77,9 @@ export default { showType: false, listType: [], eventStatus: '', - eventStatusText: '办件状态' + eventStatusText: '办件状态', + listTypeHistory: [], + listTypeAll: [] } }, computed: { @@ -102,14 +104,11 @@ export default { }, created() { - this.$dict.load('clapEventStatus').then(() => { + this.$dict.load('clapEventStatus', 'clapEventStatusAll', 'clapEventStatusHistory').then(() => { this.getList() - this.listType = this.$dict.getDict('clapEventStatus') - var all = { - dictValue: '', - dictName: '全部' - } - this.listType.unshift(all) + this.listTypeAll = this.$dict.getDict('clapEventStatusAll') + this.listTypeHistory = this.$dict.getDict('clapEventStatusHistory') + this.listType = this.listTypeAll }) }, methods: { @@ -177,6 +176,11 @@ export default { this.girdNameText = '所属网格' this.eventStatusText = '办件状态' this.currentTabs = index + if(index == 0) { + this.listType = this.listTypeAll + }else { + this.listType = this.listTypeHistory + } this.getList() }, From 6884aae53fb17b7241d68f8b6011234381605744 Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 7 Jan 2022 18:58:51 +0800 Subject: [PATCH 2/2] bug --- src/apps/AppHandSnapshot/Statistics.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apps/AppHandSnapshot/Statistics.vue b/src/apps/AppHandSnapshot/Statistics.vue index c8a81b59..3d2fb098 100644 --- a/src/apps/AppHandSnapshot/Statistics.vue +++ b/src/apps/AppHandSnapshot/Statistics.vue @@ -21,11 +21,11 @@

受理率

-

{{info.businessCountMap['受理率'] * 100 || '0'}}%

+

{{info.businessCountMap['受理率'] || '0'}}%

办结率

-

{{info.businessCountMap['办结率'] * 100 || '0'}}%

+

{{info.businessCountMap['办结率'] || '0'}}%

@@ -95,10 +95,10 @@ export default { this.$http.post('/app/appclapeventinfo/countByGirdMember').then((res) => { if (res.code == 0) { if(res.data.businessCountMap['受理率']) { - res.data.businessCountMap['受理率'] = Number(res.data.businessCountMap['受理率']).toFixed(3) + res.data.businessCountMap['受理率'] = Number(res.data.businessCountMap['受理率'] * 100).toFixed(1) } if(res.data.businessCountMap['办结率']) { - res.data.businessCountMap['办结率'] = Number(res.data.businessCountMap['办结率']).toFixed(3) + res.data.businessCountMap['办结率'] = Number(res.data.businessCountMap['办结率'] * 100).toFixed(1) } this.info = res.data