|
|
@@ -33,7 +33,29 @@
|
|
|
</div>
|
|
|
<div class="imgCon">
|
|
|
<div class="echartTitle">
|
|
|
- <div class="block-title">监测类型情况</div>
|
|
|
+ <div class="block-title">现场照片</div>
|
|
|
+ </div>
|
|
|
+ <div class="imgList">
|
|
|
+ <div
|
|
|
+ class="imgDiv"
|
|
|
+ :class="{ hiimg: hiindex === i }"
|
|
|
+ v-for="(item, i) in monitorList"
|
|
|
+ :key="i"
|
|
|
+ @click="clickImg(i)"
|
|
|
+ @mouseenter="handleMouseEnter(item, i)"
|
|
|
+ @mouseleave="handleMouseLeave(item, i)"
|
|
|
+ >
|
|
|
+ <span>{{ i + 1 }}</span>
|
|
|
+ <!-- <img :src="imgUrl" /> -->
|
|
|
+ <img :src="item.imagerPath" />
|
|
|
+ <!-- <img :src="imgUrl + item.imagerPath" /> -->
|
|
|
+ <p>{{ item.imagerSj }}</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="imgCon">
|
|
|
+ <div class="echartTitle">
|
|
|
+ <div class="block-title">无人机取证</div>
|
|
|
</div>
|
|
|
<div class="imgList">
|
|
|
<div
|
|
|
@@ -74,16 +96,20 @@ export default {
|
|
|
primitive: null,
|
|
|
selectId: null,
|
|
|
primitivesArray: [],
|
|
|
- hcObj: null,
|
|
|
+ hcObj: {},
|
|
|
// jtArr:[],//箭头id数组
|
|
|
// dwArr:[],//
|
|
|
idArr: [], //id数组
|
|
|
handler: {},
|
|
|
+ hiindex: "",
|
|
|
+ hiid: "",
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
|
mounted() {
|
|
|
- // this.inputAction();
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.inputAction();
|
|
|
+ });
|
|
|
},
|
|
|
methods: {
|
|
|
inputAction() {
|
|
|
@@ -99,18 +125,21 @@ export default {
|
|
|
// // that[queryName](movement);
|
|
|
// }, Cesium.ScreenSpaceEventType.MOUSE_MOVE);
|
|
|
// 鼠标移动事件
|
|
|
- this.handler.setInputAction(function (movement) {
|
|
|
- console.log(movement, "movement");
|
|
|
- // 通过pick方法获取鼠标下的实体
|
|
|
- // var pickedObject = viewer.scene.pick(movement.endPosition);
|
|
|
- // if (
|
|
|
- // Cesium.defined(pickedObject) &&
|
|
|
- // scene.pickPositionSupported &&
|
|
|
- // pickedObject != null
|
|
|
- // ) {
|
|
|
- // console.log(pickedObject,'pickedObject'); // 打印实体的ID
|
|
|
- // }
|
|
|
- }, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
|
+ this.handler.setInputAction((event) => {
|
|
|
+ if (this.hiid) {
|
|
|
+ this.handleMouseLeave({ id: this.hiid });
|
|
|
+ }
|
|
|
+
|
|
|
+ let pickObj = viewer.scene.pick(event.endPosition);
|
|
|
+ if (Cesium.defined(pickObj)) {
|
|
|
+ if (pickObj.id && pickObj.id.id.includes("jt")) {
|
|
|
+ this.hiid = pickObj.id.id.replace("jt", "");
|
|
|
+ this.handleMouseEnter({ id: this.hiid });
|
|
|
+ this.hiindex = this.idArr.indexOf(this.hiid);
|
|
|
+ this.clickImg(this.hiindex);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, Cesium.ScreenSpaceEventType.MOUSE_MOVE);
|
|
|
},
|
|
|
handleMouseEnter(a, b) {
|
|
|
this.ceshi(a.id, "yr");
|
|
|
@@ -347,6 +376,8 @@ export default {
|
|
|
beforeDestroy() {
|
|
|
this.delatePoi("jt");
|
|
|
this.delatePoi("dw");
|
|
|
+ this.handler.destroy();
|
|
|
+ this.handler = null;
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
@@ -401,6 +432,9 @@ export default {
|
|
|
line-height: 30px;
|
|
|
}
|
|
|
}
|
|
|
+ .hiimg {
|
|
|
+ border: 1px solid red;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.detailList {
|