From d16322719196227a00c5676bd27c79967113fbf4 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Wed, 1 Jun 2022 16:41:13 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/plugins/stats/factagencyuserhousedaily.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/modules/plugins/stats/factagencyuserhousedaily.vue b/src/views/modules/plugins/stats/factagencyuserhousedaily.vue index 9b5a7b662..b7a365607 100644 --- a/src/views/modules/plugins/stats/factagencyuserhousedaily.vue +++ b/src/views/modules/plugins/stats/factagencyuserhousedaily.vue @@ -218,6 +218,7 @@ export default { this.optionsA.push(res.data) this.dataForm.agencyId = res.data.agencyId this.dataForm.level = res.data.level + this.getDataList() } }) .catch(() => { From 913c20f2b4b47f89a7349fcbad97f6bbd00d151a Mon Sep 17 00:00:00 2001 From: ZhaoTongYao <531131322@qq.com> Date: Thu, 2 Jun 2022 16:06:19 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=84=E7=BB=87=E5=8C=BA=E5=88=92=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/organization/organization.vue | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue index fbfe3bd2f..70303212a 100644 --- a/src/views/modules/base/organization/organization.vue +++ b/src/views/modules/base/organization/organization.vue @@ -463,12 +463,12 @@ - + + :value="item.areaCode"> @@ -537,12 +537,12 @@ - + + :value="item.areaCode"> @@ -1932,19 +1932,27 @@ export default { }, handelZoing(val){ - this.agencyForm.level = val.level - this.agencyForm.areaName = val.areaName - this.agencyForm.areaCode = val.areaCode - + this.zonings.forEach(item => { + if (item.areaCode == val) { + this.agencyForm.level = item.level + this.agencyForm.areaName = item.areaName + this.agencyForm.areaCode = item.areaCode + } + }) }, handelStreeOrCommunityZoing(val){ - this.OrgDetailsForm.level = val.level - this.OrgDetailsForm.areaName = val.areaName - this.OrgDetailsForm.areaCode = val.areaCode + this.zonings.forEach(item => { + if (item.areaCode == val) { + this.OrgDetailsForm.level = item.level + this.OrgDetailsForm.areaName = item.areaName + this.OrgDetailsForm.areaCode = item.areaCode + } + }) }, addAgency(row){ this.createAgencyDialogFlag = true + this.addNewAgencyRest() this.getUser() }, // 新增组织确定按钮 From a687ef97e3d1c0275a4a09493163fdd4664d82ab Mon Sep 17 00:00:00 2001 From: jiangyy Date: Mon, 6 Jun 2022 09:17:36 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=88=BF=E4=B8=BB=E7=94=B5=E8=AF=9D?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/base/community/community.vue | 2 +- src/views/modules/base/community/roomForm.vue | 504 +++++++++--------- .../modules/base/community/roomTable.vue | 2 +- 3 files changed, 254 insertions(+), 254 deletions(-) diff --git a/src/views/modules/base/community/community.vue b/src/views/modules/base/community/community.vue index 43a4c7bb8..434728447 100644 --- a/src/views/modules/base/community/community.vue +++ b/src/views/modules/base/community/community.vue @@ -48,7 +48,7 @@ - - @@ -136,260 +136,260 @@ diff --git a/src/views/modules/base/community/roomTable.vue b/src/views/modules/base/community/roomTable.vue index 4f87e3f31..c2fef85e4 100644 --- a/src/views/modules/base/community/roomTable.vue +++ b/src/views/modules/base/community/roomTable.vue @@ -102,7 +102,7 @@ width="90"> Date: Mon, 6 Jun 2022 15:14:26 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E6=88=BF=E5=B1=8B=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/base/community/community.vue | 4 +- .../visual/components/screen-map/index.vue | 40 +++++++++---------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/src/views/modules/base/community/community.vue b/src/views/modules/base/community/community.vue index 434728447..c19f811cf 100644 --- a/src/views/modules/base/community/community.vue +++ b/src/views/modules/base/community/community.vue @@ -269,7 +269,7 @@ export default { await this.loadOrgData() await this.loadTree() - await this.loadOpenNode() + // await this.loadOpenNode() await this.$refs['ref_communityTable'].loadTable(true, this.selTreeObj) if (this.treeData.length > 0) { @@ -347,6 +347,8 @@ export default { const { data, code, msg } = await requestPost(url, params) if (code === 0) { + this.openNodes = [] + this.openNodes.push(data[0].id) this.treeData = data if (!isRefresh && data.length > 0) { diff --git a/src/views/modules/visual/components/screen-map/index.vue b/src/views/modules/visual/components/screen-map/index.vue index bf2870126..54d0204de 100644 --- a/src/views/modules/visual/components/screen-map/index.vue +++ b/src/views/modules/visual/components/screen-map/index.vue @@ -32,7 +32,7 @@ class="ol-popup-closer"> - 更多>>>> @@ -107,9 +107,9 @@ let polygonColorArray = [ 'rgba(183, 185, 0, 0.16)' ]; - //icon文字样式 +//icon文字样式 let createTextStyle = function (feature) { - + if (iconTextsStyle) { let iconTextsStyles = { ...iconTextsStyle } iconTextsStyles.text = feature.values_ && feature.values_.name || feature.name @@ -224,11 +224,11 @@ const vueGis = { // iconArrays.forEach(item => { // console.log(item.type, item.urlIndex, item.latitude, item.longitude) // }); - + //初始化地图 this.initMap() - + if (this.showPolIconLayer) { console.log('showPolIconLayer++++++++++++++++++++++', this.showPolIconLayer) //初始化多边形标注图层 @@ -242,7 +242,7 @@ const vueGis = { //加载当前园区的标注 this.loadPolygon() } - + if (this.showIconLayer) { //初始化icon图层 @@ -262,14 +262,14 @@ const vueGis = { //刷新地图 async refreshMap (mapInfo, polygonArray, iconArrays) { this.mapInfo = mapInfo - this.polygonArray = [] + this.polygonArray = [] this.polygonArray = polygonArray this.iconArrays = iconArrays iconSource.clear() polygonSource.clear() polIconSource.clear() this.initPolIconLayer() - + if (this.showPolygonLayer) { this.initPolygonLayer() //加载当前园区的标注 @@ -287,7 +287,7 @@ const vueGis = { } this.setMapLocation() // gaodeMapLayer.getSource().changed() - + }, //加载区域多边形 @@ -305,7 +305,7 @@ const vueGis = { oneData = { type: 'Feature', - + properties: { ...polygonItem }, geometry: { type: 'Polygon', @@ -345,7 +345,7 @@ const vueGis = { if (this.showPolIconLayer) { this.loadPolIcon(feature) } - + } @@ -549,9 +549,9 @@ const vueGis = { } mapView.setZoom(this.zoom); - + }, - firstCentermap() { + firstCentermap () { if (this.mapInfo.longitude && this.mapInfo.latitude) { this.centerPoint = [] this.centerPoint.push(this.mapInfo.longitude) @@ -743,14 +743,14 @@ const vueGis = { this.overlay.getElement().parentNode.parentNode.style.display = 'block' content.innerHTML = showData; this.overlay.setPosition(coordinate); - //把 overlay 显示到指定的 x,y坐标 - + //把 overlay 显示到指定的 x,y坐标 + }, // 关闭弹窗 - handleClosePopup() { - this.overlay.setPosition(undefined); - document.getElementById("popup-closer").blur(); - return false; + handleClosePopup () { + this.overlay.setPosition(undefined); + document.getElementById("popup-closer").blur(); + return false; }, //取随机数 @@ -895,7 +895,7 @@ export default vueGis; .popup-content { width: 300px; } -.popup-goMore{ +.popup-goMore { margin: 20px 0; } .ol-popup-closer:after {