From 73f99509218d4ac321ce88bdd2df7e3c875d8150 Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 11 Feb 2022 16:57:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A5=E6=88=BF=E6=89=BE=E4=BA=BAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/saas/AppBuilding/components/searchMap.vue | 19 +++++++++++-------- src/saas/AppHealthUp/OtherStatistics.vue | 6 +++++- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/saas/AppBuilding/components/searchMap.vue b/src/saas/AppBuilding/components/searchMap.vue index 01749e7a..d4346c59 100644 --- a/src/saas/AppBuilding/components/searchMap.vue +++ b/src/saas/AppBuilding/components/searchMap.vue @@ -47,13 +47,13 @@
所属网格 - {{ detailInfo.gird.girdName || '' }} + {{ detailInfo.build.appGirdInfo.girdName || '' }}
网格管理员 - - - , + + + ,
@@ -337,12 +337,15 @@ export default { getBuildingInfo(item) { this.$http.post(`/app/appcommunityhouseinfo/queryDetailByIdWithBuilding?buildId=${item.buildingId}&houseId=${item.id}`).then(res => { if (res?.data) { + + this.detailInfo = {...res.data} + + console.log(this.detailInfo) + if(this.detailInfo.build.appGirdInfo.girdMemberNames && this.detailInfo.build.appGirdInfo.girdMemberNames) { + this.detailInfo.build.appGirdInfo.girdMemberNames = this.detailInfo.build.appGirdInfo.girdMemberNames.split(',') + } this.show = false this.showPop = true - this.detailInfo = {...res.data} - if(this.detailInfo.gird && this.detailInfo.gird.girdMemberNames) { - this.detailInfo.gird.girdMemberNames = this.detailInfo.gird.girdMemberNames.split(',') - } } }) }, diff --git a/src/saas/AppHealthUp/OtherStatistics.vue b/src/saas/AppHealthUp/OtherStatistics.vue index a9683c81..25803e69 100644 --- a/src/saas/AppHealthUp/OtherStatistics.vue +++ b/src/saas/AppHealthUp/OtherStatistics.vue @@ -113,7 +113,11 @@ export default { }, getStatis() { this.dayList = [] - this.$http.post(`/app/appepidemichealthreport/statistic?userId=${this.userId}`).then((res) => { + this.$http.post(`/app/appepidemichealthreport/statistic`, this.userId, { + headers: { + 'Content-Type': 'text/plain' + } + }).then((res) => { if (res.code == 0) { Object.keys(res.data).forEach((key) => { var info = {