-
房主姓名
+
党员名称
+
+
@@ -57,6 +61,10 @@
class="div-table-button--delete"
size="small"
@click="handleDelete(scope.row.id)">删除
+ 添加党员
@@ -86,12 +94,26 @@
:axisStructId="axisStructId">
+
+
+
+
diff --git a/src/views/modules/visual/plugin/power/organization.vue b/src/views/modules/visual/plugin/power/organization.vue
index 62fdfc1ff..f8501043a 100644
--- a/src/views/modules/visual/plugin/power/organization.vue
+++ b/src/views/modules/visual/plugin/power/organization.vue
@@ -129,7 +129,7 @@ export default {
return {
headerList: [
{ title: "序号", coulmn: 'index', width: '100px' },
- { title: "党员", coulmn: 'ownerName' },
+ { title: "党员", coulmn: 'kernelMemberNameConcat' },
{ title: "地址", coulmn: 'address' }
],
headerStyle: [
From e6cb76e34a079986c851efd8660ac32005ef3af3 Mon Sep 17 00:00:00 2001
From: zhaoyongnian <541231643@qq.com>
Date: Tue, 26 Apr 2022 19:05:27 +0800
Subject: [PATCH 5/7] =?UTF-8?q?=E6=94=B9=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/plugins/power/kernelhouseholdTable.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/modules/plugins/power/kernelhouseholdTable.vue b/src/views/modules/plugins/power/kernelhouseholdTable.vue
index 557a2f7ee..97a45c1f3 100644
--- a/src/views/modules/plugins/power/kernelhouseholdTable.vue
+++ b/src/views/modules/plugins/power/kernelhouseholdTable.vue
@@ -64,7 +64,7 @@
添加党员
+ @click="handleAddMember(scope.row.houseId, scope.row.ownerName)">中心党员
From c62dc81c8f9a8fcd7a23a1f73c8ae3ef03c8734b Mon Sep 17 00:00:00 2001
From: zhaoyongnian <541231643@qq.com>
Date: Wed, 27 Apr 2022 14:13:01 +0800
Subject: [PATCH 6/7] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../power/components/screen-org-map.vue | 50 ++++++++++++-------
.../visual/plugin/power/organization.vue | 3 +-
2 files changed, 34 insertions(+), 19 deletions(-)
diff --git a/src/views/modules/visual/plugin/power/components/screen-org-map.vue b/src/views/modules/visual/plugin/power/components/screen-org-map.vue
index db7d4a6b6..177bca7ef 100644
--- a/src/views/modules/visual/plugin/power/components/screen-org-map.vue
+++ b/src/views/modules/visual/plugin/power/components/screen-org-map.vue
@@ -35,16 +35,14 @@ let markerLayer
let parentLayer;//上级组织图层
let parentSource;//上级组织多边形
-let parentPolygon = []
-let subAgencyArray = []
-// let coordinates = "120.37330480288234,36.09522923236327,120.37414203308269,36.08471360544846,120.37538113592544,36.08156561138691,120.37856261681883,36.08273773673343,120.380806397435,36.082838206810294,120.38244737292013,36.082804716145915,120.3844902172151,36.082804716145915,120.38552838373664,36.08277122739781,120.38991547489212,36.08166608146377,120.39209227801209,36.08099629692024,120.3958095865403,36.080192555468,120.39912502242612,36.080192555468,120.40110089305742,36.08025953296422,120.40197160817334,36.082369356671684,120.4011678667211,36.08457964662348,120.40006272270334,36.08665598158284,120.3979863858277,36.08889976219901,120.39751753952164,36.09037329011105,120.39785243083527,36.09161239295379,120.3990245561818,36.09419106584173,120.39775196842349,36.09573157124999,120.3975845208504,36.09646833520601,120.37330480288234,36.09522923236327"
+
+
let polygonSource;//变电站标注多边形
let iconSource; // icon
let polygonLayer;//变电站标注图层
let select;//选中标注
let iconLayer; // icon标注图层
-let iconCoordinators = []
-
+var centerPointGlobal = [120.38945519, 36.0722275]
const iconArray = [
'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20211116/a219130b6bc74b0b80b5ddb0fce0892a.png',
@@ -126,9 +124,13 @@ export default {
name: "screen-org-map",
data() {
return {
- centerPoint: [120.38945519, 36.0722275], // 中心点位置
- zoom: 15, // 缩放范围:区14
+ centerPoint: [], // 中心点位置
+ zoom: 14, // 缩放范围:区14
minZoom: 1, // 最小缩放
+ orgData: {},//当前组织对象
+ iconCoordinators: [],
+ parentPolygon: [],
+ subAgencyArray: []
}
},
async mounted() {
@@ -149,6 +151,8 @@ export default {
},
methods: {
initMap () {
+ this.firstCenterMap()
+
gaodeMapLayer = new TileLayer({
title: "地图",
source: new XYZ({
@@ -175,6 +179,16 @@ export default {
// console.log(transform(e.coordinate, 'EPSG:3857', 'EPSG:4326'));
})
},
+ firstCenterMap () {
+ this.centerPoint = []
+ if (this.orgData.longitude && this.orgData.latitude) {
+ this.centerPoint.push(this.orgData.longitude)
+ this.centerPoint.push(this.orgData.latitude)
+
+ } else {
+ this.centerPoint = centerPointGlobal
+ }
+ },
addMarker (list, icon=iconArray[0], scale=1) {
markerSource = new VectorSource({
// features: new GeoJSON().readFeatures(geojsonObject)
@@ -244,15 +258,15 @@ export default {
if (code === 0) {
- // this.orgData = data
+ this.orgData = data
// this.orgId = this.orgData.id
// this.orgLevel = this.orgData.level
- parentPolygon = []
- parentPolygon.push(data)
+ this.parentPolygon = []
+ this.parentPolygon.push(data)
if (data.children && data.children.length > 0) {
- subAgencyArray = data.children
+ this.subAgencyArray = data.children
} else {
- subAgencyArray = []
+ this.subAgencyArray = []
}
} else {
@@ -265,10 +279,10 @@ export default {
parentSource.clear()//清空变电站标注
let featureData = []//标注数据
- if (parentPolygon && parentPolygon.length > 0) {//判断是否存在下级标注
+ if (this.parentPolygon && this.parentPolygon.length > 0) {//判断是否存在下级标注
let oneData = {}
- parentPolygon.forEach(agencyItem => {
+ this.parentPolygon.forEach(agencyItem => {
if (agencyItem.coordinates && agencyItem.coordinates !== '') {//如果有坐标
oneData = {
@@ -320,12 +334,12 @@ export default {
loadPolygon () {
let featureData = []//标注数据
- if (subAgencyArray && subAgencyArray.length > 0) {//判断是否存在下级标注
+ if (this.subAgencyArray && this.subAgencyArray.length > 0) {//判断是否存在下级标注
let oneData = {}
let count = 0
- for (let i = 0; i < subAgencyArray.length; i++) {
- const agencyItem = subAgencyArray[i]
+ for (let i = 0; i < this.subAgencyArray.length; i++) {
+ const agencyItem = this.subAgencyArray[i]
if (agencyItem.coordinates && agencyItem.coordinates !== '') {//如果有坐标
@@ -384,7 +398,7 @@ export default {
let y = (parseFloat(extent[1]) + parseFloat(extent[3])) / 2
let oneArray = [x, y]
- iconCoordinators.push(oneArray)
+ this.iconCoordinators.push(oneArray)
// debugger
//地图icon样式
let oneCctv = new Feature({
diff --git a/src/views/modules/visual/plugin/power/organization.vue b/src/views/modules/visual/plugin/power/organization.vue
index f8501043a..e74a96e79 100644
--- a/src/views/modules/visual/plugin/power/organization.vue
+++ b/src/views/modules/visual/plugin/power/organization.vue
@@ -170,7 +170,7 @@ export default {
// this.agencyId = user.agencyId
// console.log('agencyId-------', this.agencyId)
// this.agencyId = '50140d770c578100328792121aa7b3c5'
- this.axisStructId = '1518062548749725697'
+ // this.axisStructId = '1518062548749725697'
await nextTick(100)
await this.getAgencylist()//获取组织级别
await this.getStructTree()
@@ -179,6 +179,7 @@ export default {
},
methods: {
onClickNode (e) {
+ this.pageNo = 1
this.axisStructId = e.id
this.getList()
},
From dd40eba513cb4973095dbeae44ab8ed017b59bb4 Mon Sep 17 00:00:00 2001
From: zhaoyongnian <541231643@qq.com>
Date: Thu, 28 Apr 2022 09:24:07 +0800
Subject: [PATCH 7/7] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/visual/plugin/power/components/screen-org-tree.vue | 3 +++
src/views/modules/visual/plugin/power/organization.vue | 2 ++
2 files changed, 5 insertions(+)
diff --git a/src/views/modules/visual/plugin/power/components/screen-org-tree.vue b/src/views/modules/visual/plugin/power/components/screen-org-tree.vue
index aee878e2b..77263287e 100644
--- a/src/views/modules/visual/plugin/power/components/screen-org-tree.vue
+++ b/src/views/modules/visual/plugin/power/components/screen-org-tree.vue
@@ -249,6 +249,9 @@ export default {
.screen-org-tree {
width: 100%;
height: 100%;
+ .level-row{
+ overflow: auto;
+ }
.level-1-row {
width: 100%;
display: flex;
diff --git a/src/views/modules/visual/plugin/power/organization.vue b/src/views/modules/visual/plugin/power/organization.vue
index e74a96e79..303424b19 100644
--- a/src/views/modules/visual/plugin/power/organization.vue
+++ b/src/views/modules/visual/plugin/power/organization.vue
@@ -466,6 +466,7 @@ export default {
position: relative;
flex: 1;
height: 100%;
+ width: 50%;
&-top {
width: 100%;
height: 550px;
@@ -511,6 +512,7 @@ export default {
position: relative;
flex: 1;
height: 100%;
+ width: 50%;
&-top {
width: 100%;
height: 100px;