1
guanqb
2023-04-07 948eb4c8f06efce2ce50981ccfb7868758d32395
1
1 files modified
27 ■■■■■ changed files
src/views/home/index.vue 27 ●●●●● patch | view | raw | blame | history
src/views/home/index.vue
@@ -572,7 +572,7 @@
            this.selectAllClass = true
            this.policeStaionID = this.userInfo.dept_id
        }
        this.$store.commit('SET_ISSHOWHOMECONTENT', true)
        this.getPoliceStationTree(1)
        // setTimeout(() => {
@@ -1911,20 +1911,25 @@
        showlanddetail (name, type, id) {
            this.$refs.landDetailsBox.showlanddetail(name, type, id)
        }
        },
        // 首页显示隐藏页面进入跳转逻辑
        showHomeContentBtnStyle () {
            if (!this.$store.state.popupParams.isShowHomeContent) {
                this.$store.commit('SET_ISSHOWHOMECONTENT', true)
                if (document.querySelector('.dc-container .dc-zoom-controller').classList.contains('homebottom')) return
                document.querySelector('.dc-container .dc-zoom-controller').classList.add('homebottom')
                document.querySelector('.screen-full-btn').classList.add('homebottom')
                document.querySelector('.over-look-btn').classList.add('homebottom')
                document.querySelector('.image-switch-icon-btn').classList.add('iconbottom')
            }
        },
    },
    destroyed () {
        this.$store.commit('SET_MAPSEARCHPOPUP', false)
        if (!this.$store.state.popupParams.isShowHomeContent) {
            this.$store.commit('SET_ISSHOWHOMECONTENT', true)
            if (document.querySelector('.dc-container .dc-zoom-controller').classList.contains('homebottom')) return
            document.querySelector('.dc-container .dc-zoom-controller').classList.add('homebottom')
            document.querySelector('.screen-full-btn').classList.add('homebottom')
            document.querySelector('.over-look-btn').classList.add('homebottom')
            document.querySelector('.image-switch-icon-btn').classList.add('iconbottom')
        }
        this.showHomeContentBtnStyle()
        loading && loading.close()