| | |
| | | v-show="introduceText != null && introduceText != ''" |
| | | @click="audioPlay" |
| | | class="audio-control" |
| | | src="/img/navicon/audio.png" |
| | | :src="audioImgUrl" |
| | | alt |
| | | /> |
| | | <img |
| | |
| | | <i class="popup-icon start-nav deblurring"></i> |
| | | 出发 |
| | | </li> |
| | | <li v-show="false" @click="qrCodeClick"> |
| | | <li v-show="pupupQRUrl != ''" @click="qrCodeClick"> |
| | | <i class="popup-icon qr-code-nav deblurring"></i> |
| | | 二维码 |
| | | </li> |
| | |
| | | id="FullScreenBox" |
| | | > |
| | | <div class="title"> |
| | | <img |
| | | @click="returnDetailsPopup" |
| | | class="return-btn" |
| | | src="/img/icon/return.png" |
| | | alt |
| | | /> |
| | | {{ stateName }} |
| | | <img |
| | | @click="screen" |
| | |
| | | <div class="monitor-wrap"> |
| | | <div class="content-wrap"> |
| | | <div class="title"> |
| | | <img |
| | | @click="returnDetailsPopup" |
| | | class="return-btn" |
| | | src="/img/icon/return.png" |
| | | alt |
| | | /> |
| | | {{ stateName }} |
| | | <img |
| | | @click="closeMonitorPopupBox" |
| | |
| | | /> |
| | | </div> |
| | | <div class="content"> |
| | | <video :src="monitorUrl" controls autoplay></video> |
| | | <play-video |
| | | :sourceUrl="monitorUrl" |
| | | @playStatus="changePlayStatus" |
| | | ></play-video> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="arrow-rb"></div> |
| | | <div class="label-wrap"> |
| | | <div class="title"> |
| | | {{ nowlabelLayerData.name }} 二维码分享 |
| | | {{ nowlabelLayerData.name }} |
| | | <img |
| | | @click="closelabelLayerid" |
| | | class="close-box" |
| | |
| | | apiUrls: null, |
| | | tabBtnFlag: '教学科研行政', |
| | | QRCodeFlag: false, |
| | | audioImgUrl: '/img/icon/close-video.png', |
| | | audioSource: '', |
| | | audioFlag: false, |
| | | audioCourse: false, |
| | |
| | | fullscreen: false, |
| | | fullScreenUrl: '/img/icon/bigScreen.png', |
| | | addTagName: '', |
| | | addTagLayer: null, |
| | | addIconFromcolumn: [ |
| | | // 顺序不要随便换 |
| | | { |
| | |
| | | }, |
| | | computed: { |
| | | ...mapGetters([ |
| | | 'viewer', |
| | | 'popupBgUrl', |
| | | 'pupupQRUrl', |
| | | // 终点 |
| | |
| | | ]) |
| | | }, |
| | | created () { |
| | | var that = this |
| | | this.apiUrls = window.$apiUrls |
| | | |
| | | this.audioSynth = window.speechSynthesis |
| | | this.audioMsg = new window.SpeechSynthesisUtterance() |
| | | |
| | | this.audioMsg.onend = function () { |
| | | this.audioSynth.cancel() |
| | | this.audioFlag = false |
| | | this.audioCourse = false |
| | | } |
| | | this.$nextTick(() => { |
| | | this.audioMsg.onend = function () { |
| | | that.audioSynth.cancel() |
| | | that.audioFlag = false |
| | | that.audioCourse = false |
| | | that.audioImgUrl = '/img/icon/close-video.png' |
| | | } |
| | | }) |
| | | }, |
| | | mounted () { }, |
| | | watch: { |
| | | addIconsLayerIconPopup () { |
| | | if (this.addIconsLayerIconPopup) { |
| | |
| | | this.audioSynth.cancel() |
| | | this.audioFlag = false |
| | | this.audioCourse = false |
| | | this.audioImgUrl = '/img/icon/close-video.png' |
| | | } |
| | | } |
| | | }, |
| | |
| | | immediate: true, |
| | | handler (newCode, oldCode) { |
| | | if (newCode == false) { |
| | | this.audioSynth.cancel() |
| | | if (this.audioSynth != null) { |
| | | this.audioSynth.cancel() |
| | | } |
| | | this.audioFlag = false |
| | | this.audioCourse = false |
| | | } else { |
| | | if (this.audioFlag == true) { |
| | | this.audioSynth.cancel() |
| | | if (this.audioSynth != null) { |
| | | this.audioSynth.cancel() |
| | | } |
| | | this.audioFlag = false |
| | | this.audioCourse = false |
| | | this.audioImgUrl = '/img/icon/close-video.png' |
| | | } |
| | | } |
| | | } |
| | |
| | | // return; |
| | | // this.$store.commit("set_closeMapClick", false); //开启其他操作 |
| | | add(d).then( |
| | | () => { |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '操作成功!' |
| | | }) |
| | | (res) => { |
| | | // console.log(res); |
| | | if (res.data.code == 200) { |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '操作成功!' |
| | | }) |
| | | } else { |
| | | this.$message({ |
| | | type: 'error', |
| | | message: '新增失败!' |
| | | }) |
| | | } |
| | | |
| | | this.closeaddIconsLayerIconPopup() |
| | | }, |
| | | (error) => { |
| | |
| | | this.audioSynth.cancel() |
| | | this.audioFlag = false |
| | | this.audioCourse = false |
| | | this.audioImgUrl = '/img/icon/close-video.png' |
| | | } |
| | | |
| | | // eslint-disable-next-line new-cap |
| | |
| | | // eslint-disable-next-line new-cap |
| | | new global.DC.Position.fromArray(this.pointPosition) |
| | | ) |
| | | this.viewer.scene.globe.depthTestAgainstTerrain = false |
| | | |
| | | // eslint-disable-next-line no-unused-vars |
| | | var panorama = new global.DC.PanoramaBox(this.viewer, { |
| | | var panorama = new global.DC.PanoramaBox(global.viewer, { |
| | | domId: 'PanoramaBox', |
| | | position: [positions] |
| | | }) |
| | |
| | | this.audioSynth.cancel() |
| | | this.audioFlag = false |
| | | this.audioCourse = false |
| | | this.audioImgUrl = '/img/icon/close-video.png' |
| | | } |
| | | // eslint-disable-next-line new-cap |
| | | var positions = global.DC.Transform.transformWGS84ToCartesian( |
| | | // eslint-disable-next-line new-cap |
| | | new global.DC.Position.fromArray(this.pointPosition) |
| | | ) |
| | | this.viewer.scene.globe.depthTestAgainstTerrain = false |
| | | // eslint-disable-next-line no-unused-vars |
| | | var monitor = new global.DC.PanoramaBox(this.viewer, { |
| | | var monitor = new global.DC.PanoramaBox(global.viewer, { |
| | | domId: 'MonitorBox', |
| | | position: [positions] |
| | | }) |
| | |
| | | this.$store.commit('SET_MONITORPOPUP', true) |
| | | }, |
| | | |
| | | returnDetailsPopup () { |
| | | var positions = global.DC.Transform.transformWGS84ToCartesian( |
| | | // eslint-disable-next-line new-cap |
| | | new global.DC.Position.fromArray(this.pointPosition) |
| | | ) |
| | | |
| | | // eslint-disable-next-line no-unused-vars |
| | | var divBox = new global.DC.PanoramaBox(global.viewer, { |
| | | domId: 'divFormsDomBox', |
| | | position: [positions] |
| | | }) |
| | | |
| | | global.viewer.zoomToPosition( |
| | | // eslint-disable-next-line new-cap |
| | | new global.DC.Position.fromArray(this.pointPosition) |
| | | ) |
| | | |
| | | this.$store.commit('SET_DETAILSPOPUP', true) |
| | | this.$store.commit('SET_MONITORPOPUP', false) |
| | | this.$store.commit('SET_PANORAMAPOPUP', false) |
| | | }, |
| | | |
| | | closeMapPopupBox () { |
| | | if (this.audioFlag == true) { |
| | | this.audioSynth.cancel() |
| | | this.audioFlag = false |
| | | this.audioCourse = false |
| | | this.audioImgUrl = '/img/icon/close-video.png' |
| | | } |
| | | this.$store.commit('SET_DETAILSPOPUP', false) |
| | | }, |
| | |
| | | |
| | | this.$store.commit('SET_ADDTAGPOPUP', false) |
| | | |
| | | // if (this.addTagLayer == null) { |
| | | // this.addTagLayer = new global.DC.HtmlLayer("addTagLayer"); |
| | | // this.viewer.addLayer(this.addTagLayer); |
| | | // } |
| | | |
| | | // 2022.3.2对接接口 |
| | | // 新增标签 |
| | | const data = { |
| | |
| | | wd: this.addTagPosition.lat |
| | | } |
| | | // console.log(data); |
| | | const oks = setTimeout(() => { |
| | | that.$message({ |
| | | message: '新增标签失败', |
| | | type: 'warning' |
| | | }) |
| | | }, 5000) |
| | | setlabel(data).then((res) => { |
| | | clearTimeout(oks) |
| | | if (res.data.code == 200) { |
| | | doit() |
| | | that.$message({ |
| | |
| | | // list: [data], |
| | | add: true |
| | | }) |
| | | // const divIcon = new global.DC.DivIcon( |
| | | // new global.DC.Position( |
| | | // Number(that.addTagPosition.lng), |
| | | // Number(that.addTagPosition.lat), |
| | | // 0 |
| | | // ), |
| | | // ` |
| | | // <div class="tag-entitys-box"> |
| | | // <div class="tag-content"> |
| | | // ${that.addTagName} |
| | | // </div> |
| | | // <div class="tag-angle-content"> |
| | | // <img src="https://map.hit.edu.cn/images/tarrow_xq.png"> |
| | | // </div> |
| | | // </div> |
| | | // ` |
| | | // ); |
| | | // this.addTagLayer.addOverlay(divIcon); |
| | | } |
| | | }, |
| | | |
| | |
| | | this.$store.commit('SET_MONITORPOPUP', false) |
| | | }, |
| | | |
| | | changePlayStatus (status) { // 获取子组件的播放状态 |
| | | console.log(status) |
| | | }, |
| | | |
| | | audioPlay () { |
| | | if (this.audioFlag == false) { |
| | | this.audioMsg.text = this.audioSource |
| | | this.audioSynth.speak(this.audioMsg) |
| | | this.audioFlag = true |
| | | this.audioCourse = true |
| | | this.audioImgUrl = '/img/icon/start-video.png' |
| | | } else { |
| | | if (this.audioCourse == true) { |
| | | this.audioSynth.pause() |
| | | this.audioCourse = false |
| | | this.audioImgUrl = '/img/icon/close-video.png' |
| | | } else { |
| | | this.audioSynth.resume() |
| | | this.audioCourse = true |
| | | this.audioImgUrl = '/img/icon/start-video.png' |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | |
| | | this.newPopup(result) |
| | | this.viewer.flyToPosition( |
| | | global.viewer.flyToPosition( |
| | | new global.DC.Position( |
| | | Number(result.jd), |
| | | Number(result.wd), |
| | |
| | | |
| | | newPopup (item) { |
| | | const position = global.DC.Transform.transformWGS84ToCartesian( |
| | | new global.DC.Position(Number(item.jd), Number(item.wd), Number(item.gd)) |
| | | new global.DC.Position( |
| | | Number(item.jd), |
| | | Number(item.wd), |
| | | Number(item.gd) |
| | | ) |
| | | ) |
| | | // eslint-disable-next-line no-unused-vars |
| | | var popup = new global.DC.DivForms(this.viewer, { |
| | | var popup = new global.DC.DivForms(global.viewer, { |
| | | domId: 'divFormsDomBox', |
| | | position: [position] |
| | | }) |
| | |
| | | padding: 0 10px; |
| | | } |
| | | } |
| | | .introduce p { |
| | | padding: 0px; |
| | | height: 300px; |
| | | overflow-y: scroll; |
| | | } |
| | | </style> |