From 6905ff16aee894c63e0960fd6db3bd7a12a8524e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=98=E7=AB=8B=E6=A0=87?= <2658037827@qq.com> Date: Tue, 5 Dec 2023 09:51:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=BA=E6=88=BF=E5=B0=8F?= =?UTF-8?q?=E5=8C=BA=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataBoard/cpts/homeDetails/index.vue | 4 +- .../dataBoard/renfang/cpts/map-right.vue | 30 ++-- src/views/dataBoard/renfang/index.vue | 134 +++++++++--------- 3 files changed, 85 insertions(+), 83 deletions(-) diff --git a/src/views/dataBoard/cpts/homeDetails/index.vue b/src/views/dataBoard/cpts/homeDetails/index.vue index 22b747f94..510b5f0d9 100644 --- a/src/views/dataBoard/cpts/homeDetails/index.vue +++ b/src/views/dataBoard/cpts/homeDetails/index.vue @@ -4,8 +4,8 @@
- 海伦路街道 + {{orgData.name}}
-
南昌路社区
-
北岭山社区
-
北岭山社区
-
北岭山社区
-
北岭山社区
-
北岭山社区
-
北岭山社区
-
北岭山社区
-
北岭山社区
-
北岭山社区
-
北岭山社区
-
北岭山社区
-
北岭山社区
-
北岭山社区
-
北岭山社区
-
北岭山社区
+
{{item.name}}
@@ -31,10 +16,21 @@ diff --git a/src/views/dataBoard/renfang/index.vue b/src/views/dataBoard/renfang/index.vue index bb4dc7a06..0d404b542 100644 --- a/src/views/dataBoard/renfang/index.vue +++ b/src/views/dataBoard/renfang/index.vue @@ -1,9 +1,9 @@ @@ -493,7 +493,7 @@ export default { pandectData: {}, - popupShow:false + popupShow: false }; }, @@ -587,11 +587,16 @@ export default { }, clickAgencyItem(item) { - this.toBread({ - orgId: item.id, - orgLevel: item.level, - meta: {title: item.name}, - }); + console.log(item) + if (item.level === 'neighborHood') { + this.$router.push('/homeDetails/index?id='+item.id) + } else { + this.toBread({ + orgId: item.id, + orgLevel: item.level, + meta: {title: item.name}, + }); + } }, toBread(item) { @@ -686,12 +691,12 @@ export default { const url = "/actual/base/resiCategory/categoryCountPartList"; let params = { - orgId: this.orgId, - }; + orgId: this.orgId, + }; - const { data, code, msg } = await requestGet( + const {data, code, msg} = await requestGet( url, - params + params ); if (code === 0 && data) { @@ -701,23 +706,23 @@ export default { // }; const resiCount = data.resiCount; Object.keys(data.categoryList).forEach((key) => { - const category = data.categoryList[key]; - const categoryName = category.categoryName; - const categoryCount = category.categoryCount; - const radio = categoryCount/resiCount * 100; - if(categoryName == "OLD_PEOPLE_FLAG"){ - this.perInfo.OLD_PEOPLE_FLAG=radio.toFixed(2); - }else if(categoryName == "PARTY_FLAG"){ - this.perInfo.PARTY_FLAG=radio.toFixed(2); - }else if(categoryName == "UNEMPLOYED_FLAG"){ - this.perInfo.UNEMPLOYED_FLAG=radio.toFixed(2); - }else if(categoryName == "VOLUNTEER_FLAG"){ - this.perInfo.VOLUNTEER_FLAG=radio.toFixed(2); - }else if(categoryName == "SUBSISTENCE_ALLOWANCE_FLAG"){ - this.perInfo.SUBSISTENCE_ALLOWANCE_FLAG=radio.toFixed(2); - }else if(categoryName == "SPECIAL_CROWD_FLAG"){ - this.perInfo.SPECIAL_CROWD_FLAG=radio.toFixed(2); - } + const category = data.categoryList[key]; + const categoryName = category.categoryName; + const categoryCount = category.categoryCount; + const radio = categoryCount / resiCount * 100; + if (categoryName == "OLD_PEOPLE_FLAG") { + this.perInfo.OLD_PEOPLE_FLAG = radio.toFixed(2); + } else if (categoryName == "PARTY_FLAG") { + this.perInfo.PARTY_FLAG = radio.toFixed(2); + } else if (categoryName == "UNEMPLOYED_FLAG") { + this.perInfo.UNEMPLOYED_FLAG = radio.toFixed(2); + } else if (categoryName == "VOLUNTEER_FLAG") { + this.perInfo.VOLUNTEER_FLAG = radio.toFixed(2); + } else if (categoryName == "SUBSISTENCE_ALLOWANCE_FLAG") { + this.perInfo.SUBSISTENCE_ALLOWANCE_FLAG = radio.toFixed(2); + } else if (categoryName == "SPECIAL_CROWD_FLAG") { + this.perInfo.SPECIAL_CROWD_FLAG = radio.toFixed(2); + } }); } else { @@ -785,7 +790,7 @@ export default { level: this.orgLevel, }; - const { data, code, msg } = await requestPost(url, params); + const {data, code, msg} = await requestPost(url, params); if (code === 0) { this.orgData = data; @@ -828,6 +833,7 @@ export default { background: url('@/assets/images/shuju/overview/box-bg.png') no-repeat; background-size: 100% 100%; } + .m-box { height: 320px; }