| | |
| | | </div> |
| | | <!-- 全屏控制按钮 --> |
| | | <div class="screen-full-btn"> |
| | | <!-- <el-tooltip v-if="isFullscreen" content="缩放" placement="top" effect="dark"> |
| | | <el-tooltip v-if="!isShowHomeContentBtn && isFullscreen" content="缩放" placement="top" effect="dark"> |
| | | <i class="fa fa-compress" style="vertical-align: middle; cursor: pointer" @click="fullscreenchange"></i> |
| | | </el-tooltip> --> |
| | | </el-tooltip> |
| | | |
| | | <!-- <el-tooltip v-if="!isFullscreen" content="全屏" placement="top" effect="dark"> |
| | | <el-tooltip v-if="!isShowHomeContentBtn && !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"> |
| | | </el-tooltip> |
| | | <el-tooltip v-if="isShowHomeContentBtn" content="显示/隐藏" placement="top" effect="dark"> |
| | | <i class="fa fa-expand" style="vertical-align: middle; cursor: pointer" @click="switchShowHomeContent"></i> |
| | | </el-tooltip> |
| | | </div> |
| | |
| | | import houseDeepDataPopup from './components/houseDeepDataPopup.vue' |
| | | import yToolTip from './components/yToolTip.vue' |
| | | import createTools from '@/utils/tools/index' |
| | | import { mapGetters } from 'vuex' |
| | | |
| | | export default { |
| | | name: 'mapBox', |
| | |
| | | }, |
| | | |
| | | computed: { |
| | | |
| | | ...mapGetters([ |
| | | 'isShowHomeContentBtn' |
| | | ]), |
| | | }, |
| | | |
| | | mounted () { |
| | | if (global.viewer != null) { |
| | | global.viewer = null |
| | | } |
| | | |
| | | const that = this |
| | | |
| | | // 初始化地图 |
| | |
| | | labelElement.on(global.DC.MouseEventType.CLICK, incident) |
| | | } else if (type == 'HeatPoint') { |
| | | layersObjcect[layerName].setPositions(params.positions) |
| | | console.log('----------HeatPoint------------', params.positions) |
| | | } |
| | | |
| | | }, |
| | |
| | | videoRowClickPopup: (state) => state.popupParams.videoRowClickPopup, |
| | | videoRowClickPopupData: (state) => state.popupParams.videoRowClickPopupData, |
| | | isShowHomeContent: (state) => state.popupParams.isShowHomeContent, |
| | | isShowHomeContentBtn: (state) => state.popupParams.isShowHomeContentBtn, |
| | | } |
| | | |
| | | export default getters |
| | |
| | | houseDeepDataPopupData: {}, |
| | | |
| | | isShowHomeContent: true, |
| | | isShowHomeContentBtn: true, |
| | | }, |
| | | |
| | | mutations: { |
| | |
| | | SET_ISSHOWHOMECONTENT (state, isShowHomeContent) { |
| | | state.isShowHomeContent = isShowHomeContent |
| | | }, |
| | | |
| | | SET_ISSHOWHOMECONTENTBTN (state, isShowHomeContent) { |
| | | state.isShowHomeContentBtn = isShowHomeContent |
| | | }, |
| | | }, |
| | | |
| | | actions: { |
| | |
| | | this.policeStaionID = this.userInfo.dept_id |
| | | } |
| | | this.$store.commit('SET_ISSHOWHOMECONTENT', true) |
| | | this.$store.commit('SET_ISSHOWHOMECONTENTBTN', true) |
| | | this.getPoliceStationTree(1) |
| | | |
| | | // setTimeout(() => { |
| | |
| | | |
| | | destroyed () { |
| | | this.$store.commit('SET_MAPSEARCHPOPUP', false) |
| | | this.$store.commit('SET_ISSHOWHOMECONTENTBTN', false) |
| | | this.$store.commit('SET_DETAILSPOPUP', { |
| | | showBox: false, |
| | | showBtn: false |
| | | }) |
| | | |
| | | this.showHomeContentBtnStyle() |
| | | |
| | | loading && loading.close() |
| | |
| | | this.clearPolygonLayer() |
| | | |
| | | // cylinderLayer != null && cylinderLayer != undefined && cylinderLayer != '' && cylinderLayer.remove() |
| | | |
| | | |
| | | this.$store.commit('SET_DETAILSPOPUP', { |
| | | showBox: false, |
| | | showBtn: false |
| | | }) |
| | | |
| | | global.viewer.dataSources.removeAll() |
| | | |
| | |
| | | type: 'ClusterLayer' |
| | | }) |
| | | |
| | | this.$store.commit('SET_MAPSEARCHPOPUP', false) |
| | | |
| | | if (cylinderLayer != null) { |
| | | cylinderLayer.remove() |