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.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) {

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

@ -107,7 +107,7 @@ let polygonColorArray = [
'rgba(183, 185, 0, 0.16)'
];
//icon
//icon
let createTextStyle = function (feature) {
if (iconTextsStyle) {
@ -262,7 +262,7 @@ const vueGis = {
//
async refreshMap (mapInfo, polygonArray, iconArrays) {
this.mapInfo = mapInfo
this.polygonArray = []
this.polygonArray = []
this.polygonArray = polygonArray
this.iconArrays = iconArrays
iconSource.clear()
@ -551,7 +551,7 @@ const vueGis = {
},
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 {

Loading…
Cancel
Save