| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 16:18:17 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2022-09-21 10:27:15 |
| | | * @LastEditTime: 2022-09-21 12:03:05 |
| | | * @FilePath: \srs-police-affairs\src\views\home\index.vue |
| | | * @Description: 小区-栋-层-房屋 |
| | | * |
| | |
| | | <div id="EquipmentEcharts" class="echarts-box"></div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="right-container"> |
| | | <div class="case-box"> |
| | | <div class="title"> |
| | |
| | | <el-checkbox v-model="panoramaLayerShow" @change="panoramaChange">全景</el-checkbox> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="top-container"> |
| | | <div class="selectBox"> |
| | | <div class="choose" v-if="oneSelected==''">请选择</div> |
| | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | |
| | | <el-dialog |
| | | :title="dialogTitle" |
| | | :modal="true" |
| | | :visible.sync="dialogVisible" |
| | | :before-close="dialogBeforeClose" |
| | | :close-on-click-modal="true" |
| | | class="car-video-box" |
| | | > |
| | | <div |
| | | style="display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;" |
| | | > |
| | | <video |
| | | src="/video/sp.mp4" |
| | | autoplay |
| | | controls |
| | | width="100%" |
| | | height="100%" |
| | | ref="videoElement" |
| | | style="object-fit: fill" |
| | | ></video> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <el-dialog |
| | | :title="panoramaTitle" |
| | | :modal="true" |
| | | :visible.sync="panoramaVisible" |
| | | :before-close="panoramaBeforeClose" |
| | | :close-on-click-modal="true" |
| | | class="car-video-box" |
| | | > |
| | | <div |
| | | style="display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;" |
| | | > |
| | | <iframe |
| | | src="http://vr.jxpskj.com/JXSFKZQJ/QJ/" |
| | | style="width: 100%; height: 100%;" |
| | | frameborder="0" |
| | | ></iframe> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | phoneLayerShow: false, |
| | | monitoringLayerShow: false, |
| | | panoramaLayerShow: false, |
| | | dialogTitle: '', |
| | | dialogVisible: false, |
| | | panoramaTitle: '', |
| | | panoramaVisible: false, |
| | | |
| | | carList: [{ |
| | | name: '1号警车', |
| | |
| | | this.$EventBus.$emit('layerPointAdd', { |
| | | layerName: 'carLayers', |
| | | type: "billboard", |
| | | params: item |
| | | params: item, |
| | | incident: this.siteClick |
| | | }) |
| | | }) |
| | | } else { |
| | |
| | | this.$EventBus.$emit('layerPointAdd', { |
| | | layerName: 'monitoringLayers', |
| | | type: "billboard", |
| | | params: item |
| | | params: item, |
| | | incident: this.siteClick |
| | | }) |
| | | }) |
| | | } else { |
| | |
| | | this.$EventBus.$emit('layerPointAdd', { |
| | | layerName: 'panoramaLayers', |
| | | type: "billboard", |
| | | params: item |
| | | params: item, |
| | | incident: this.panoramaSiteClick |
| | | }) |
| | | }) |
| | | } else { |
| | |
| | | } |
| | | } |
| | | this.chooseData = obj |
| | | }, |
| | | |
| | | siteClick (e) { |
| | | this.dialogTitle = e.overlay.attrParams.name |
| | | this.dialogVisible = true |
| | | |
| | | if (this.$refs.videoElement && this.$refs.videoElement != null) { |
| | | this.$refs.videoElement.currentTime = 0 |
| | | this.$refs.videoElement.play() |
| | | } |
| | | }, |
| | | |
| | | dialogBeforeClose () { |
| | | this.$refs.videoElement.pause() |
| | | this.dialogVisible = false |
| | | }, |
| | | |
| | | panoramaSiteClick (e) { |
| | | this.panoramaTitle = e.overlay.attrParams.name |
| | | this.panoramaVisible = true |
| | | }, |
| | | |
| | | panoramaBeforeClose () { |
| | | this.panoramaVisible = false |
| | | } |
| | | }, |
| | | watch: { |