| | |
| | | </div> |
| | | <!-- 全屏控制按钮 --> |
| | | <div class="screen-full-btn"> |
| | | <el-tooltip v-if="isFullscreen" content="缩放" placement="top" effect="dark"> |
| | | <!-- <el-tooltip v-if="isFullscreen" content="缩放" placement="top" effect="dark"> |
| | | <i class="fa fa-compress" style="vertical-align: middle; cursor: pointer" @click="fullscreenchange"></i> |
| | | </el-tooltip> |
| | | <el-tooltip v-if="!isFullscreen" content="全屏" placement="top" effect="dark"> |
| | | </el-tooltip> --> |
| | | |
| | | <!-- <el-tooltip v-if="!isFullscreen" content="全屏" placement="top" effect="dark"> |
| | | <i class="fa fa-expand" style="vertical-align: middle; cursor: pointer" @click="fullscreenchange"></i> |
| | | </el-tooltip> --> |
| | | <el-tooltip content="显示/隐藏" placement="top" effect="dark"> |
| | | <i class="fa fa-expand" style="vertical-align: middle; cursor: pointer" @click="switchShowHomeContent"></i> |
| | | </el-tooltip> |
| | | </div> |
| | | <!-- 切换矢量图按钮 --> |
| | |
| | | } |
| | | }, |
| | | |
| | | // 切换首页显示隐藏 |
| | | switchShowHomeContent () { |
| | | this.$store.commit('SET_ISSHOWHOMECONTENT', !this.$store.state.popupParams.isShowHomeContent) |
| | | |
| | | if (this.$store.state.popupParams.isShowHomeContent) { |
| | | 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') |
| | | } else { |
| | | if (!document.querySelector('.dc-container .dc-zoom-controller').classList.contains('homebottom')) return |
| | | document.querySelector('.dc-container .dc-zoom-controller').classList.remove('homebottom') |
| | | document.querySelector('.screen-full-btn').classList.remove('homebottom') |
| | | document.querySelector('.over-look-btn').classList.remove('homebottom') |
| | | document.querySelector('.image-switch-icon-btn').classList.remove('iconbottom') |
| | | } |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 在图层中添加实体(点) |
| | | * @param {*} item 图标 |
| | |
| | | houseDeepDataPopupData: (state) => state.popupParams.houseDeepDataPopupData, |
| | | videoRowClickPopup: (state) => state.popupParams.videoRowClickPopup, |
| | | videoRowClickPopupData: (state) => state.popupParams.videoRowClickPopupData, |
| | | isShowHomeContent: (state) => state.popupParams.isShowHomeContent, |
| | | } |
| | | |
| | | export default getters |
| | |
| | | videoRowClickPopupData: {}, |
| | | |
| | | houseDeepDataPopup: false, |
| | | houseDeepDataPopupData: {} |
| | | houseDeepDataPopupData: {}, |
| | | |
| | | isShowHomeContent: true, |
| | | }, |
| | | |
| | | mutations: { |
| | |
| | | |
| | | SET_VIDEOROWCLICKPOPUPDATA (state, videoRowClickPopupData) { |
| | | state.videoRowClickPopupData = videoRowClickPopupData |
| | | } |
| | | }, |
| | | |
| | | SET_ISSHOWHOMECONTENT (state, isShowHomeContent) { |
| | | state.isShowHomeContent = isShowHomeContent |
| | | }, |
| | | }, |
| | | |
| | | actions: { |
| | |
| | | justify-content: center; |
| | | position: absolute; |
| | | left: 10px; |
| | | bottom: 10px; |
| | | bottom: 244px; |
| | | width: 36px; |
| | | height: 36px; |
| | | font-size: 20px; |
| | |
| | | } |
| | | |
| | | // 地图,控制按钮 |
| | | .over-look-btn, |
| | | .over-look-btn { |
| | | left: countSizeVh(10); |
| | | bottom: countSizeVh(224); |
| | | width: countSizeVh(36); |
| | | height: countSizeVh(36); |
| | | font-size: countSizeVh(20); |
| | | } |
| | | |
| | | .screen-full-btn { |
| | | left: countSizeVh(10); |
| | | bottom: countSizeVh(10); |
| | |
| | | --> |
| | | |
| | | <template> |
| | | <div class="home-page container"> |
| | | <div class="home-page container" v-show="isShowHomeContent"> |
| | | <left-container class="left-container" @showpeopledetail="showpeopledetail" |
| | | @showkeypersondetail="showkeypersondetail" ref="leftContainer" |
| | | @showlanddetail="showlanddetail"></left-container> |
| | |
| | | let DataSourcesArray = [] |
| | | let loading = null |
| | | |
| | | import { mapGetters } from 'vuex' |
| | | |
| | | |
| | | let treeData = [ |
| | | { |
| | |
| | | components: { leftContainer, rightContainer, bottomContainer, schedulingList, landDetailsBox, areaDetailsBox, keyPersonBox }, |
| | | |
| | | computed: { |
| | | ...mapGetters([ |
| | | 'isShowHomeContent' |
| | | ]), |
| | | |
| | | positionColor () { |
| | | return (row) => { |
| | | if (row.X && row.X != 0 |
| | |
| | | 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') |
| | | } |
| | | |
| | | loading && loading.close() |
| | | |
| | | this.clearPolygonLayer() |