1
guanqb
2023-04-04 e2ed1e9cf408fdc2fdb3e9f9b592b959a9af59fc
1
2 files modified
11 ■■■■ changed files
src/components/map/index.vue 6 ●●●●● patch | view | raw | blame | history
src/views/house/index.vue 5 ●●●●● patch | view | raw | blame | history
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)
                    })
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) {