From 024b348fecfe537382660d8185fba6e84cc0878c Mon Sep 17 00:00:00 2001 From: jiangyy Date: Mon, 20 Dec 2021 09:52:20 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E7=82=B9=E9=BB=98=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/visual/basicinfo/basicInfoMain.vue | 8 ++++++-- src/views/modules/visual/components/screen-map/index.vue | 8 ++++++-- src/views/modules/workSys/mapConfig.vue | 7 +++++-- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/views/modules/visual/basicinfo/basicInfoMain.vue b/src/views/modules/visual/basicinfo/basicInfoMain.vue index 8c0f4a59..568c453b 100644 --- a/src/views/modules/visual/basicinfo/basicInfoMain.vue +++ b/src/views/modules/visual/basicinfo/basicInfoMain.vue @@ -114,7 +114,7 @@ import BasicInfoCommunity from "./basicInfoCommunity"; import PeopleSearch from "./peopleSearch"; import People from "./people"; import cptCard from "@/views/modules/visual/cpts/card"; - +var centerPointGlobal = [120.38945519, 36.0722275] let loading;//加载动画 @@ -532,11 +532,15 @@ const vueGis = { }, //设置地图定位的中心点和缩放级别 setMapLocation () { - this.centerPoint = [] + if (this.orgData.longitude && this.orgData.latitude) { + this.centerPoint = [] this.centerPoint.push(this.orgData.longitude) this.centerPoint.push(this.orgData.latitude) + } else { + + this.centerPoint = centerPointGlobal } this.setZoom(this.orgData.agencyLevel) diff --git a/src/views/modules/visual/components/screen-map/index.vue b/src/views/modules/visual/components/screen-map/index.vue index eba9be98..0166c8c3 100644 --- a/src/views/modules/visual/components/screen-map/index.vue +++ b/src/views/modules/visual/components/screen-map/index.vue @@ -37,7 +37,7 @@ import { mapGetters } from "vuex"; import { Loading } from 'element-ui'; //引入Loading服务 import { requestPost } from "@/js/dai/request"; - +var centerPointGlobal = [120.38945519, 36.0722275] let loading;//加载动画 @@ -433,11 +433,15 @@ const vueGis = { }, //设置地图定位的中心点和缩放级别 setMapLocation () { - this.centerPoint = [] + if (this.mapInfo.longitude && this.mapInfo.latitude) { + this.centerPoint = [] this.centerPoint.push(this.mapInfo.longitude) this.centerPoint.push(this.mapInfo.latitude) + } else { + + this.centerPoint = centerPointGlobal } this.setZoom(this.mapInfo.level) diff --git a/src/views/modules/workSys/mapConfig.vue b/src/views/modules/workSys/mapConfig.vue index 267b19fc..5853ab39 100644 --- a/src/views/modules/workSys/mapConfig.vue +++ b/src/views/modules/workSys/mapConfig.vue @@ -67,7 +67,7 @@ import { Loading } from 'element-ui'; //引入Loading服务 import { requestPost } from "@/js/dai/request"; import { altKeyOnly, click, pointerMove } from 'ol/events/condition'; - +var centerPointGlobal = [120.38945519, 36.0722275] let loading;//加载动画 let x = 1500 @@ -374,11 +374,14 @@ const vueGis = { }, //设置地图定位的中心点和缩放级别 setMapLocation () { - this.centerPoint = [] if (this.orgData.longitude && this.orgData.latitude) { + this.centerPoint = [] this.centerPoint.push(this.orgData.longitude) this.centerPoint.push(this.orgData.latitude) + } else { + + this.centerPoint = centerPointGlobal } this.setZoom(this.orgData.agencyLevel) From 1a578494ddfdfdc1b265ce45be05bb1c417a2b07 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Tue, 21 Dec 2021 16:54:56 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E5=B0=8F=E5=8C=BA=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/base/community/buildTable.vue | 2 +- src/views/modules/base/community/communityTable.vue | 2 +- src/views/modules/base/community/roomTable.vue | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/modules/base/community/buildTable.vue b/src/views/modules/base/community/buildTable.vue index 18c4a157..c8a0d7c2 100644 --- a/src/views/modules/base/community/buildTable.vue +++ b/src/views/modules/base/community/buildTable.vue @@ -180,7 +180,7 @@ export default { computed: { tableHeight () { - return (this.clientHeight - 220) + return (this.clientHeight - 300) }, diff --git a/src/views/modules/base/community/communityTable.vue b/src/views/modules/base/community/communityTable.vue index 4fc23e5e..a57e6a1e 100644 --- a/src/views/modules/base/community/communityTable.vue +++ b/src/views/modules/base/community/communityTable.vue @@ -185,7 +185,7 @@ export default { computed: { tableHeight () { - return (this.clientHeight - 320) + return (this.clientHeight - 300) }, rowHeight () { diff --git a/src/views/modules/base/community/roomTable.vue b/src/views/modules/base/community/roomTable.vue index 8a065fb7..797b047e 100644 --- a/src/views/modules/base/community/roomTable.vue +++ b/src/views/modules/base/community/roomTable.vue @@ -63,6 +63,7 @@ :header-cell-style="{background:'#2195FE',color:'#FFFFFF'}" v-loading="tableLoading" border + :height="tableHeight" style="width: 100%"> Date: Thu, 23 Dec 2021 14:09:35 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/visual/heart/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/modules/visual/heart/index.vue b/src/views/modules/visual/heart/index.vue index d19a3ad1..a818c773 100644 --- a/src/views/modules/visual/heart/index.vue +++ b/src/views/modules/visual/heart/index.vue @@ -85,7 +85,7 @@ export default { name: "heart", data() { return { - agencyId: "", + agencyId: this.$store.state.user.agencyId, areaCode: "", monthId: "", @@ -194,7 +194,7 @@ export default { handleSearch() {}, async getApiData() { - await this.getAgencyInfo(); + //await this.getAgencyInfo(); this.getTb1(); this.getTb2(); this.getTb3(); From c49824d155a28dfce8308ea84071d403b6080b60 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 29 Dec 2021 15:56:25 +0800 Subject: [PATCH 4/9] =?UTF-8?q?=E5=BF=97=E6=84=BF=E8=80=85=E6=83=85?= =?UTF-8?q?=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visual/communityGovern/resibuzz.vue | 4 +- .../modules/visual/measure/volunteer.vue | 59 ++++++++++--------- 2 files changed, 32 insertions(+), 31 deletions(-) diff --git a/src/views/modules/visual/communityGovern/resibuzz.vue b/src/views/modules/visual/communityGovern/resibuzz.vue index 85b78d24..e8a7faf1 100644 --- a/src/views/modules/visual/communityGovern/resibuzz.vue +++ b/src/views/modules/visual/communityGovern/resibuzz.vue @@ -453,8 +453,8 @@ export default { item.status ? item.status : '', item.createdTime ? item.createdTime : '', item.issueOriginator ? item.issueOriginator : '', - item.voteAccount ? item.voteAccount : '', - item.supportCount ? item.supportCount : '', + item.voteAccount ? item.voteAccount : 0, + item.supportCount ? item.supportCount : 0, item.oppositionCount ? item.oppositionCount : '', { type: "operate", list: ["查看"] }, ]; diff --git a/src/views/modules/visual/measure/volunteer.vue b/src/views/modules/visual/measure/volunteer.vue index 34e76f68..7d757740 100644 --- a/src/views/modules/visual/measure/volunteer.vue +++ b/src/views/modules/visual/measure/volunteer.vue @@ -1,16 +1,16 @@