From 7cf4e73b6aa486c93da40ca52a365eb7023ccf40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=98=E7=AB=8B=E6=A0=87?= <2658037827@qq.com> Date: Mon, 25 Dec 2023 10:57:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E9=97=A8id=E4=BC=A0?= =?UTF-8?q?=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visualizing/components/dibaorenyuan.vue | 25 ++++++++++++------- .../modules/SelfInspectionScore/index.vue | 4 ++- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/src/views/dataBoard/renfang/visualizing/components/dibaorenyuan.vue b/src/views/dataBoard/renfang/visualizing/components/dibaorenyuan.vue index 5488ef643..49e6c8916 100644 --- a/src/views/dataBoard/renfang/visualizing/components/dibaorenyuan.vue +++ b/src/views/dataBoard/renfang/visualizing/components/dibaorenyuan.vue @@ -80,17 +80,20 @@ export default { }, methods: { getData() { - const { user } = this.$store.state + const {user} = this.$store.state var level = user.level; - if(level==='grid'){ + if (level === 'grid') { level = "grid" - }else{ + } else { level = "agency" } - + let params = this.$paramsFormat({ + agencyId: this.org_id, + level + }) this.$http - .get("/actual/base/peopleRoomOverview/lowIncomePie?type=0") + .get("/actual/base/peopleRoomOverview/lowIncomePie?type=0&"+params) .then(({data: res}) => { if (res.code !== 0) { return this.$message.error(res.msg); @@ -101,7 +104,7 @@ export default { .catch(() => { }); this.$http - .get("/actual/base/peopleRoomOverview/lowIncomePie?type=1") + .get("/actual/base/peopleRoomOverview/lowIncomePie?type=1&"+params) .then(({data: res}) => { if (res.code !== 0) { return this.$message.error(res.msg); @@ -112,7 +115,7 @@ export default { .catch(() => { }); this.$http - .get("/actual/base/peopleRoomOverview/lowIncomePie?type=2") + .get("/actual/base/peopleRoomOverview/lowIncomePie?type=2&"+params) .then(({data: res}) => { if (res.code !== 0) { return this.$message.error(res.msg); @@ -123,7 +126,7 @@ export default { .catch(() => { }); this.$http - .get("/actual/base/peopleRoomOverview/lowIncomePie?type=3") + .get("/actual/base/peopleRoomOverview/lowIncomePie?type=3&"+params) .then(({data: res}) => { if (res.code !== 0) { return this.$message.error(res.msg); @@ -134,7 +137,11 @@ export default { .catch(() => { }); this.$http - .post(`/actual/base/peopleRoomOverview/findPeoplePie`,{ agencyId:user.agencyId,level:level,category:'SUBSISTENCE_ALLOWANCE_FLAG'}) + .post(`/actual/base/peopleRoomOverview/findPeoplePie`, { + agencyId: user.agencyId, + level: level, + category: 'SUBSISTENCE_ALLOWANCE_FLAG' + }) .then(({data: res}) => { if (res.code !== 0) { return this.$message.error(res.msg); diff --git a/src/views/dataBoard/satisfactionEval/modules/SelfInspectionScore/index.vue b/src/views/dataBoard/satisfactionEval/modules/SelfInspectionScore/index.vue index ed2707422..262e470d9 100644 --- a/src/views/dataBoard/satisfactionEval/modules/SelfInspectionScore/index.vue +++ b/src/views/dataBoard/satisfactionEval/modules/SelfInspectionScore/index.vue @@ -50,7 +50,9 @@ export default { }, }, mounted() { - this.getList() + if (this.$store.state.chooseArea.chooseName.orgId) { + this.getList() + } }, methods: { getList() {