| | |
| | | }, |
| | | mutations: { |
| | | ...leftNavsData.mutations, |
| | | SET_POPUPBGURL(state, popupBgUrl) { |
| | | SET_POPUPBGURL (state, popupBgUrl) { |
| | | // console.log(popupBgUrl, "see33333") |
| | | if (!popupBgUrl) { |
| | | return |
| | | } |
| | | state.popupBgUrl = popupBgUrl |
| | | }, |
| | | SET_POPUPQRURL(state, pupupQRUrl) { |
| | | SET_POPUPQRURL (state, pupupQRUrl) { |
| | | state.pupupQRUrl = pupupQRUrl |
| | | }, |
| | | SET_TERMINUS(state, terminus) { |
| | | SET_TERMINUS (state, terminus) { |
| | | state.terminus = terminus |
| | | }, |
| | | SET_STARTINGPOINT(state, startingPoint) { |
| | | SET_STARTINGPOINT (state, startingPoint) { |
| | | state.startingPoint = startingPoint |
| | | }, |
| | | SET_POINTPOSITION(state, pointPosition) { |
| | | SET_POINTPOSITION (state, pointPosition) { |
| | | state.pointPosition = pointPosition |
| | | }, |
| | | SET_STATENAME(state, stateName) { |
| | | SET_STATENAME (state, stateName) { |
| | | state.stateName = stateName |
| | | }, |
| | | SET_SITENAME(state, siteName) { |
| | | SET_SITENAME (state, siteName) { |
| | | state.siteName = siteName |
| | | }, |
| | | SET_TELEPHONE(state, telephone) { |
| | | SET_TELEPHONE (state, telephone) { |
| | | state.telephone = telephone |
| | | }, |
| | | SET_INTRODUCETEXT(state, introduceText) { |
| | | SET_INTRODUCETEXT (state, introduceText) { |
| | | state.introduceText = introduceText |
| | | }, |
| | | SET_PANORAMAURL(state, panoramaUrl) { |
| | | SET_PANORAMAURL (state, panoramaUrl) { |
| | | state.panoramaUrl = panoramaUrl |
| | | }, |
| | | SET_PANORAMAPOPUP(state, panoramaPopup) { |
| | | SET_PANORAMAPOPUP (state, panoramaPopup) { |
| | | state.panoramaPopup = panoramaPopup |
| | | }, |
| | | SET_MONITORURL(state, monitorUrl) { |
| | | SET_MONITORURL (state, monitorUrl) { |
| | | state.monitorUrl = monitorUrl |
| | | }, |
| | | SET_MONITORPOPUP(state, monitorPopup) { |
| | | SET_MONITORPOPUP (state, monitorPopup) { |
| | | state.monitorPopup = monitorPopup |
| | | }, |
| | | SET_DETAILSPOPUP(state, detailsPopup) { |
| | | SET_DETAILSPOPUP (state, detailsPopup) { |
| | | state.detailsPopup = detailsPopup |
| | | }, |
| | | SET_POPUPIMGATLAS(state, popupImgAtlas) { |
| | | SET_POPUPIMGATLAS (state, popupImgAtlas) { |
| | | state.popupImgAtlas = popupImgAtlas |
| | | }, |
| | | SET_TEACHLIST(state, teachList) { |
| | | SET_TEACHLIST (state, teachList) { |
| | | state.teachList = teachList |
| | | }, |
| | | SET_LIVELIST(state, liveList) { |
| | | SET_LIVELIST (state, liveList) { |
| | | state.liveList = liveList |
| | | }, |
| | | |
| | | SET_ADDTAGPOPUP(state, addTagPopup) { |
| | | SET_ADDTAGPOPUP (state, addTagPopup) { |
| | | state.addTagPopup = addTagPopup |
| | | }, |
| | | |
| | | SET_ADDTAGPOSITION(state, addTagPosition) { |
| | | SET_ADDTAGPOSITION (state, addTagPosition) { |
| | | state.addTagPosition = addTagPosition |
| | | }, |
| | | initLabelLayer(state, val) { |
| | | initLabelLayer (state, val) { |
| | | if (!state.labelLayer) { |
| | | state.labelLayer = new global.DC.HtmlLayer('labelLayer') |
| | | val.addLayer(state.labelLayer) |
| | |
| | | state.myviewer = val |
| | | }, |
| | | |
| | | clearLabelLayerIcon(state, val) { |
| | | clearLabelLayerIcon (state, val) { |
| | | if (state.labelLayer) { |
| | | state.labelLayer.clear() |
| | | } |
| | | }, |
| | | openLabelLayer(state, val) { |
| | | openLabelLayer (state, val) { |
| | | // console.log(val, "see") |
| | | if (val.show) { |
| | | state.nowlabelLayerData = val.data |
| | |
| | | state.labelLayerDataShow = false |
| | | } |
| | | }, |
| | | CLEAR_ALL(state, param) { |
| | | CLEAR_ALL (state, param) { |
| | | state.siteName = param |
| | | state.introduceText = param |
| | | state.telephone = param |
| | |
| | | state.teachList = [] |
| | | state.liveList = [] |
| | | }, |
| | | set_closeMapClick(state, val) { |
| | | set_closeMapClick (state, val) { |
| | | state.closeMapClick = val |
| | | } |
| | | }, |
| | | actions: { |
| | | ...leftNavsData.actions, |
| | | openPopups({ |
| | | openPopups ({ |
| | | state, |
| | | commit, |
| | | dispatch |
| | |
| | | viewer: this.viewer |
| | | }) |
| | | }, |
| | | setOurDataInPoput({ |
| | | setOurDataInPoput ({ |
| | | state, |
| | | commit, |
| | | dispatch |
| | |
| | | // 弹窗使用方法 |
| | | |
| | | commit('CLEAR_ALL', null) |
| | | |
| | | commit('SET_MONITORPOPUP', false) |
| | | commit('SET_PANORAMAPOPUP', false) |
| | | commit('SET_STATENAME', value.item.mechanismname) |
| | | commit('SET_PANORAMAURL', value.item.panoramaurl) |
| | | commit('SET_INTRODUCETEXT', value.item.introduce) |
| | |
| | | ]) |
| | | commit('SET_DETAILSPOPUP', true) |
| | | }, |
| | | pcMoveView({ |
| | | pcMoveView ({ |
| | | state, |
| | | commit, |
| | | dispatch |
| | |
| | | } |
| | | }) |
| | | }, |
| | | pcFlyView({ |
| | | pcFlyView ({ |
| | | state, |
| | | commit, |
| | | dispatch |
| | | }, val) { |
| | | val.viewer.flyToPosition( |
| | | new global.DC.Position(Number(val.jd), Number(val.wd), Number(300), Number(0), Number(-90), Number(0)), |
| | | function () {}, |
| | | function () { }, |
| | | 2 |
| | | ) |
| | | }, |
| | | addLabelLayerIcon({ |
| | | addLabelLayerIcon ({ |
| | | state, |
| | | commit, |
| | | dispatch |
| | |
| | | state.labelLayer.addOverlay(divIcon) |
| | | } |
| | | }, |
| | | addLabelLayerIconMobelUse({ |
| | | addLabelLayerIconMobelUse ({ |
| | | state, |
| | | commit, |
| | | dispatch |
| | |
| | | const list = val.list |
| | | if (!state.labelLayer) { |
| | | state.labelLayer = new global.DC.HtmlLayer('labelLayer') |
| | | val.mviewer.addLayer(state.labelLayer); |
| | | state.myviewer = val.mviewer; |
| | | val.mviewer.addLayer(state.labelLayer) |
| | | state.myviewer = val.mviewer |
| | | } |
| | | if (val.clear) { |
| | | // state.labelLayer.remove(); |
| | |
| | | } |
| | | } |
| | | |
| | | export default popupParams |
| | | export default popupParams |