Browse Source

房屋调整

shibei_master
jiangyy 3 years ago
parent
commit
30c0b1fa32
  1. 4
      src/views/modules/base/community/community.vue
  2. 18
      src/views/modules/visual/components/screen-map/index.vue

4
src/views/modules/base/community/community.vue

@ -269,7 +269,7 @@ export default {
await this.loadOrgData() await this.loadOrgData()
await this.loadTree() await this.loadTree()
await this.loadOpenNode() // await this.loadOpenNode()
await this.$refs['ref_communityTable'].loadTable(true, this.selTreeObj) await this.$refs['ref_communityTable'].loadTable(true, this.selTreeObj)
if (this.treeData.length > 0) { if (this.treeData.length > 0) {
@ -347,6 +347,8 @@ export default {
const { data, code, msg } = await requestPost(url, params) const { data, code, msg } = await requestPost(url, params)
if (code === 0) { if (code === 0) {
this.openNodes = []
this.openNodes.push(data[0].id)
this.treeData = data this.treeData = data
if (!isRefresh && data.length > 0) { if (!isRefresh && data.length > 0) {

18
src/views/modules/visual/components/screen-map/index.vue

@ -107,7 +107,7 @@ let polygonColorArray = [
'rgba(183, 185, 0, 0.16)' 'rgba(183, 185, 0, 0.16)'
]; ];
//icon //icon
let createTextStyle = function (feature) { let createTextStyle = function (feature) {
if (iconTextsStyle) { if (iconTextsStyle) {
@ -262,7 +262,7 @@ const vueGis = {
// //
async refreshMap (mapInfo, polygonArray, iconArrays) { async refreshMap (mapInfo, polygonArray, iconArrays) {
this.mapInfo = mapInfo this.mapInfo = mapInfo
this.polygonArray = [] this.polygonArray = []
this.polygonArray = polygonArray this.polygonArray = polygonArray
this.iconArrays = iconArrays this.iconArrays = iconArrays
iconSource.clear() iconSource.clear()
@ -551,7 +551,7 @@ const vueGis = {
}, },
firstCentermap() { firstCentermap () {
if (this.mapInfo.longitude && this.mapInfo.latitude) { if (this.mapInfo.longitude && this.mapInfo.latitude) {
this.centerPoint = [] this.centerPoint = []
this.centerPoint.push(this.mapInfo.longitude) this.centerPoint.push(this.mapInfo.longitude)
@ -743,14 +743,14 @@ const vueGis = {
this.overlay.getElement().parentNode.parentNode.style.display = 'block' this.overlay.getElement().parentNode.parentNode.style.display = 'block'
content.innerHTML = showData; content.innerHTML = showData;
this.overlay.setPosition(coordinate); this.overlay.setPosition(coordinate);
// overlay x,y // overlay x,y
}, },
// //
handleClosePopup() { handleClosePopup () {
this.overlay.setPosition(undefined); this.overlay.setPosition(undefined);
document.getElementById("popup-closer").blur(); document.getElementById("popup-closer").blur();
return false; return false;
}, },
// //
@ -895,7 +895,7 @@ export default vueGis;
.popup-content { .popup-content {
width: 300px; width: 300px;
} }
.popup-goMore{ .popup-goMore {
margin: 20px 0; margin: 20px 0;
} }
.ol-popup-closer:after { .ol-popup-closer:after {

Loading…
Cancel
Save