+
-
+
+
+
@@ -35,11 +46,14 @@
import emitter from "@/utils/eventBus.js";
import MoreVideo from "./dialog/moreVideo.vue";
import DialogWarningList from "./dialog/warningList.vue";
+import DkqkList from "./dialog/dkqkList.vue";
import { ref, defineProps, onMounted, onUnmounted } from "vue";
const props = defineProps({
isPosition: Boolean
});
const zbyjDetail = ref(null); //周边预警详情
+const dkqkDetail = ref(null); //打卡情况详情
+const showDkqkWindow = ref(false); //是否显示周边预警
const yjDetail = ref(null); //某条预警详情
const showZbyjWindow = ref(false); //是否显示周边预警
const jqDetail = ref(null); // 某条警情详情
@@ -47,8 +61,8 @@ const showVideoWindow = ref(false); //是否显示周边视频
const xzDetail = ref(null); //巡组详情
const showVideoSpsdWindow = ref(false); //吃否显示视频随动
const showYjWindow = ref(false); //是否显示预警轨迹弹窗
-onMounted(()=>{
- emitter.on("videoClick", (res) => {
+onMounted(() => {
+ emitter.on("videoClick", (res) => {
jqDetail.value = res;
showVideoWindow.value = true;
});
@@ -56,11 +70,15 @@ onMounted(()=>{
showVideoWindow.value = false;
showVideoSpsdWindow.value = false;
});
- emitter.on("clickZbyj", (res) => {
+ emitter.on("clickZbyj", (res) => {
zbyjDetail.value = res;
showZbyjWindow.value = true;
});
- emitter.on("showCcyj", (res) => {
+ emitter.on("clickDkqk", (res) => {
+ dkqkDetail.value = res;
+ showDkqkWindow.value = true;
+ });
+ emitter.on("showCcyj", (res) => {
yjDetail.value = res;
showYjWindow.value = true;
});
@@ -69,7 +87,7 @@ onMounted(()=>{
xzDetail.value = res;
showVideoSpsdWindow.value = true;
});
-})
+});
//关闭周边视频 || 视频随动
function onVideoClose(type) {
if (type == "zb") {
@@ -82,10 +100,15 @@ function onVideoClose(type) {
function onClose(type) {
if (type == "gj") {
showYjWindow.value = false;
- } else {
+ } else if (type == "zb") {
showZbyjWindow.value = false;
+ } else {
+ showDkqkWindow.value = false;
}
}
+onUnmounted(() => {
+ emitter.off("clickDkqk");
+});