| | |
| | | </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)]" |
| | |
| | | </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'; |
| | |
| | | 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, |
| | |
| | | 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> |