From a65cc59ec2f3be3252dd252b8da0fa89beedf0e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=98=E7=AB=8B=E6=A0=87?= <2658037827@qq.com> Date: Wed, 13 Dec 2023 17:32:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98=E6=B8=85?= =?UTF-8?q?=E5=8D=95=E4=B8=8B=E9=92=BB=E4=B8=8D=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataBoard/overview/components/wtqd.vue | 38 +++++-------------- 1 file changed, 9 insertions(+), 29 deletions(-) diff --git a/src/views/dataBoard/overview/components/wtqd.vue b/src/views/dataBoard/overview/components/wtqd.vue index e2a8a9710..289cbccef 100644 --- a/src/views/dataBoard/overview/components/wtqd.vue +++ b/src/views/dataBoard/overview/components/wtqd.vue @@ -196,42 +196,19 @@ export default { watch: { currentLevelData(val) { if (val.orgId) { - this.getReport(val); + this.fetchDataAndProcess() + this.getSatisfactionEvent() // this.getChartData(); } }, }, mounted() { - this.getReport(this.currentLevelData); - this.getData(); this.fetchDataAndProcess() this.getSatisfactionEvent() }, // methods: { - getReport({orgId, orgLevel}) { - this.$http - .get( - "/actual/base/streetOverview/communityOverview?orgId=" + - orgId + - "&level=" + - orgLevel - ) - .then(({data: {data}}) => { - this.overview = data; - }); - this.$http - .get( - "/actual/base/streetOverview/summaryReport?orgId=" + - orgId + - "&level=" + - orgLevel - ) - .then(({data: {data}}) => { - this.report = data; - }); - }, async fetchData() { const results = []; @@ -248,11 +225,11 @@ export default { mobile: "", startTime: "", endTime: "", - status: "", firstIdList: [], secondIdList: [], status:"processing", type: `${i + 1}`, + agencyId: this.currentLevelData.orgId }; const response = await requestPost(url, params); // 替换为实际的接口调用 results.push(response.data); @@ -267,6 +244,10 @@ export default { // 在调用处 async fetchDataAndProcess() { this.listLoading = true + this.nddd = [] + this.mdjf = [] + this.zswt = [] + this.ccfwfw = [] const apiResults = await this.fetchData(); this.listLoading = false /* this.nddd = this.groupList(apiResults[0].list, 4); @@ -286,8 +267,7 @@ export default { } return newArray; }, - getData() { - }, + handleView({icEventId}) { this.showDialog = true; this.rowId = icEventId; @@ -297,7 +277,7 @@ export default { }, // 获取不满意问题数 getSatisfactionEvent() { - this.$http.get('/governance/satisfactionOverview/satisfactionEvent').then(({data: {data}}) => { + this.$http.get('/governance/satisfactionOverview/satisfactionEvent?agencyId='+this.currentLevelData.orgId).then(({data: {data}}) => { this.event12345Num = data.event12345Num || 0 this.provinceSatisfactionNum = data.provinceSatisfactionNum || 0 this.selfInspectNum = data.selfInspectNum || 0