From 5558db3d9ed676f0698fc757df391413b2a87bae Mon Sep 17 00:00:00 2001 From: jiangyy Date: Thu, 21 Apr 2022 17:20:07 +0800 Subject: [PATCH 1/6] 11 --- src/views/modules/base/community/buildTable.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/modules/base/community/buildTable.vue b/src/views/modules/base/community/buildTable.vue index 4edc6b48..dc67bf6a 100644 --- a/src/views/modules/base/community/buildTable.vue +++ b/src/views/modules/base/community/buildTable.vue @@ -92,6 +92,9 @@ + + From 0b355cccb2b5a6140915cc2480b0068fd0f10554 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Fri, 22 Apr 2022 11:00:02 +0800 Subject: [PATCH 2/6] 111 --- src/router/index.js | 5 + .../visual/basicinfo/basicInfoCommunity.vue | 3 + .../basicinfo/houseStatic/houseStatic.vue | 1099 +++++++++++++++++ .../visual/basicinfo/houseStatic/options.js | 176 +++ 4 files changed, 1283 insertions(+) create mode 100644 src/views/modules/visual/basicinfo/houseStatic/houseStatic.vue create mode 100644 src/views/modules/visual/basicinfo/houseStatic/options.js diff --git a/src/router/index.js b/src/router/index.js index 866ee5f0..a39738d7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -239,6 +239,11 @@ router.beforeEach((to, from, next) => { name: "人员类别分析", id: "5fwaefwaefawef5", }, + { + url: "/visual/basicinfo/houseStatic/houseStatic", + name: "人房概览统计", + id: "5fwaefwaefawef6", + }, ], }, { diff --git a/src/views/modules/visual/basicinfo/basicInfoCommunity.vue b/src/views/modules/visual/basicinfo/basicInfoCommunity.vue index 7cd5384b..4cc2f402 100644 --- a/src/views/modules/visual/basicinfo/basicInfoCommunity.vue +++ b/src/views/modules/visual/basicinfo/basicInfoCommunity.vue @@ -184,6 +184,8 @@ export default { if (this.selBuildingId) { await this.loadRoom() + } else { + this.roomArray = [] } }, @@ -250,6 +252,7 @@ export default { //点击用户 handleClickUser (userId) { + this.handleCloseAllUser() this.$emit('toSubAgency', 'people', userId, "") }, //获取右侧infolist数据 diff --git a/src/views/modules/visual/basicinfo/houseStatic/houseStatic.vue b/src/views/modules/visual/basicinfo/houseStatic/houseStatic.vue new file mode 100644 index 00000000..d4fe6613 --- /dev/null +++ b/src/views/modules/visual/basicinfo/houseStatic/houseStatic.vue @@ -0,0 +1,1099 @@ + + + + + + diff --git a/src/views/modules/visual/basicinfo/houseStatic/options.js b/src/views/modules/visual/basicinfo/houseStatic/options.js new file mode 100644 index 00000000..ba0ddd33 --- /dev/null +++ b/src/views/modules/visual/basicinfo/houseStatic/options.js @@ -0,0 +1,176 @@ + +export function pieOption (_charts) { + const center= ['50%', '50%'] + return { + title: { + text: '0', + top: 125, + left: 196, + textAlign: 'center', + textStyle: { + width: '100%', + fontSize: 32, + color: '#FFFFFF', + fontWeight: 400, + align: 'center' + }, + itemGap: 5, + subtext: '总数', + subtextStyle: { + fontSize: 16, + color: '#fff', + fontWeight: 400, + align: 'center' + } + }, + tooltip: { + show: false + }, + legend: { + top: 500, + bottom: 0, + itemWidth: 20, + itemHeight: 10, + textStyle: { + color: '#D2E7FF', + fontSize: 16, + lineHeight: 20, + }, + + }, + series: [ + // 外侧圆环 + { + type: 'pie', + // 起始刻度的角度,默认为 90 度,即圆心的正上方。0 度为圆心的正右方。 + startAngle: 90, + hoverAnimation: false, + // tooltip: { + // }, + center: center, + left: 'left', + radius: ['60%', '70%'], + width: 400, + label: { + show: false + }, + labelLine: { + show: false + }, + data: [{ + value: 480, + itemStyle: { + color: 'rgba(40, 101, 250, 0)', + width:0, + borderColor: 'rgba(40, 101, 250, 0.5)', + borderWidth: 1, + borderType: 'dotted' + } + } + ] + }, + + // 突出的 + { + hoverAnimation: false, + type: 'pie', + center: center, + radius: ['40%', '60%'], + avoidLabelOverlap: false, + selectedMode: 'single', + left: 'left', + width: 400, + startAngle: 90, + label: { + // show: false, + position: 'outside', + alignTo: 'edge', + // formatter: '{a|{c}}\n\n{name|{b}}', + formatter: '{a|{c}}\n{r|}\n{name|{b}}', + minMargin: 5, + edgeDistance: 1, + lineHeight: 15, + color: '#fff', + fontSize: 12, + // distanceToLabelLine: -60, + rich: { + name: { + padding: [0, 6, 0, 6] + }, + a: { + fontSize: 30, + color: '#fff', + padding: [0, 6, 6, 6] + }, + r: { + backgroundColor: 'auto', + borderRadius: 6, + width: 6, + height: 6, + // padding: [3, 3, 0, -12] + } + } + }, + labelLine: { + show: false, + smooth: 0.2, + length: 30, + length2: 0, + maxSurfaceAngle: 80 + }, + labelLayout: function (params) { + + const isLeft = params.labelRect.x < _charts.getWidth() / 2; + const points = params.labelLinePoints; + // Update the end point. + if (points) { + points[2][0] = isLeft + ? params.labelRect.x + : params.labelRect.x + params.labelRect.width; + } + + return { + labelLinePoints: points + }; + }, + itemStyle: { + + }, + data: [], + + }, + // 中间圆环 + { + type: 'pie', + // 起始刻度的角度,默认为 90 度,即圆心的正上方。0 度为圆心的正右方。 + startAngle: 90, + hoverAnimation: false, + center: center, + left: 'left', + width: 400, + // tooltip: { + // }, + radius: ['0%', '25%'], + label: { + + show: false + + }, + labelLine: { + show: false + + }, + data: [ + { + value: 360, + itemStyle: { + color: 'rgba(8, 37, 134, 1)', + } + } + ] + }, + ] + + } + } + \ No newline at end of file From d67d1fc3c5fa45370a994a8293fd7cb15b7dffdd Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Sun, 24 Apr 2022 15:50:33 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E6=9B=B4=E5=A4=9A=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/rangeInput.vue | 115 +++++++++++++++++++++++ src/views/components/resiSearch.vue | 141 ++++++++++++++++++++++------ src/views/modules/base/resi.vue | 137 ++++++++++++++++++++++++--- 3 files changed, 349 insertions(+), 44 deletions(-) create mode 100644 src/views/components/rangeInput.vue diff --git a/src/views/components/rangeInput.vue b/src/views/components/rangeInput.vue new file mode 100644 index 00000000..99afe0d0 --- /dev/null +++ b/src/views/components/rangeInput.vue @@ -0,0 +1,115 @@ + + + + + \ No newline at end of file diff --git a/src/views/components/resiSearch.vue b/src/views/components/resiSearch.vue index 6cc4a41a..ef2b7fa6 100644 --- a/src/views/components/resiSearch.vue +++ b/src/views/components/resiSearch.vue @@ -1,8 +1,8 @@