From e2ed1e9cf408fdc2fdb3e9f9b592b959a9af59fc Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Tue, 04 Apr 2023 18:58:42 +0800
Subject: [PATCH] 1
---
src/components/map/index.vue | 6 ++++++
src/views/house/index.vue | 5 +++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/components/map/index.vue b/src/components/map/index.vue
index 5ed5f54..c942a11 100644
--- a/src/components/map/index.vue
+++ b/src/components/map/index.vue
@@ -607,6 +607,7 @@
})
// this.addMxTileset('sdTilesetLayer', `${tile3DUrl}/sf3d/361102/model/wanda/tileset.json`)
+ // this.addMxTileset('sdTilesetLayer', `https://tuan-gis.sit.fengtu.com.cn/361102/wanda/tileset.json`)
// this.addMxTileset('sdTilesetLayer', `/mx/01/tileset.json`)
if (this.tilesetLayerType == type && status == '') {
@@ -630,6 +631,7 @@
* @return {*}
*/
housingIndent (e) {
+ console.log(e, 'housingIndent-map')
if (this.$route.path == '/layout/house') {
this.$EventBus.$emit('housingIndent', e)
}
@@ -1056,7 +1058,9 @@
if (this.$route.path.indexOf('/layout/house') != -1) {
tilesetObject[titlesetName].on(global.DC.MouseEventType.CLICK, this.housingIndent)
+ console.log('addMxTileset11111')
} else {
+ console.log('addMxTileset22222')
tilesetObject[titlesetName].off(global.DC.MouseEventType.CLICK, this.housingIndent)
}
@@ -1162,10 +1166,12 @@
$route: {
handler (route) {
if (route.path.indexOf('/layout/house') != -1) {
+ console.log('/layout/house1111111')
label.forEach(item => {
tilesetObject[`sdTilesetLayer${item}`] && tilesetObject[`sdTilesetLayer${item}`].on(global.DC.MouseEventType.CLICK, this.housingIndent)
})
} else {
+ console.log('/layout/other2222222')
label.forEach(item => {
tilesetObject[`sdTilesetLayer${item}`] && tilesetObject[`sdTilesetLayer${item}`].off(global.DC.MouseEventType.CLICK, this.housingIndent)
})
diff --git a/src/views/house/index.vue b/src/views/house/index.vue
index 189aabe..7708f05 100644
--- a/src/views/house/index.vue
+++ b/src/views/house/index.vue
@@ -187,7 +187,7 @@
<!-- :class="[{ 'chuzu': value.houseType == '出租' }, { 'zizhu': value.houseType == '自住' }, { 'kongzhi': value.houseType == '空置' }, { 'shangye': value.houseType == '商业' }]" -->
{{ value.properties.fojcu }}
<!-- <div class="flow"></div>
- <div class="warning"></div>-->
+ <div class="warning"></div>-->
</div>
</div>
</div>
@@ -606,6 +606,7 @@
methods: {
housingIndent (e) {
+ console.log(e, 1111111)
this.getAoiByPtStd(e)
},
@@ -715,7 +716,7 @@
* @return {*}
*/
currentChangeHandle (current, currentNode) {
- if (current.hasChildren == true) return
+ if (current.hasChildren == true || current.type != 3) return
this.filterText = ""
this.prop = current.name
if (current.type == 3) {
--
Gitblit v1.9.3