From c832bf2e80ac465e71b7a1c1f7a59d4252030989 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 05 Aug 2025 17:33:08 +0800
Subject: [PATCH] feat:事件工单滚动条
---
src/hooks/components/EventPopUpBox.vue | 27 +++++++++++++--------------
1 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/src/hooks/components/EventPopUpBox.vue b/src/hooks/components/EventPopUpBox.vue
index 478cb15..a0a084f 100644
--- a/src/hooks/components/EventPopUpBox.vue
+++ b/src/hooks/components/EventPopUpBox.vue
@@ -9,15 +9,15 @@
</div>
<div class="content">
<div class="medium">
- <!-- <img
+ <img
class="quanjing"
@click="clickpanorama(infoList)"
v-if="infoList?.resultType === 5"
:src="infoList?.link"
alt=""
- /> -->
+ />
<el-image
-
+ v-else
class="eventImage"
:src="getSmallImg(infoList?.link)"
:preview-src-list="[getSmallImg(infoList?.link)]"
@@ -42,16 +42,10 @@
</div>
</div>
</div>
-
</div>
- <!-- 全景预览 -->
- <!-- <PanoramaPopup
- class="quanjing"
- v-model:panoramaParamsShow="panoramaParamsShow"
- v-model:panoramaParamsUrl="panoramaParamsUrl"
- ></PanoramaPopup> -->
</template>
<script setup>
+import EventBus from '@/utils/eventBus';
import { ElImage, ElIcon } from 'element-plus';
import { Close, Warning } from '@element-plus/icons-vue';
import _ from 'lodash';
@@ -59,6 +53,7 @@
const props = defineProps(['data', 'removeLabel', 'detailClick']);
const loading = ref(true);
import PanoramaPopup from '@/components/PanoramaPopup/PanoramaPopup.vue'; //全景
+const emit = defineEmits(['update:panoramaParamsShow', 'update:panoramaParamsUrl']);
const info = ref({
event_name: '',
status: 1,
@@ -68,11 +63,15 @@
create_time: '04/01 12:41',
});
const infoList = props.data;
-const panoramaParamsShow = ref(false);
-const panoramaParamsUrl = ref(null);
const clickpanorama = val => {
- panoramaParamsShow.value = true;
- panoramaParamsUrl.value = val.link;
+ // 通过事件总线发送全景参数
+ EventBus.emit('open-panorama', {
+ show: true,
+ url: val.link,
+ });
+ // 保留原有事件触发,确保兼容性
+ emit('update:panoramaParamsShow', true);
+ emit('update:panoramaParamsUrl', val.link);
};
onMounted(async () => {});
</script>
--
Gitblit v1.9.3