| | |
| | | <template> |
| | | <el-dialog class="gd-dialog" v-model="visible" title="查看" @closed="visible = false" width="1000px" destroy-on-close> |
| | | <el-dialog class="gd-dialog" v-model="visible" title="查看" @closed="handleClose" width="1000px" destroy-on-close> |
| | | <div v-loading="loading"> |
| | | <el-table :data="list" class="gd-dialog-table"> |
| | | <el-table-column label="线索缩略图" width="120"> |
| | |
| | | /> |
| | | </el-dialog> |
| | | |
| | | <VideoPlayDialog |
| | | ref="videoPlayDialogRef" |
| | | v-if="VideoShow" |
| | | v-model="VideoShow" |
| | | :playUrl="currentVideo.resultUrl" |
| | | /> |
| | | <VideoPlayDialog ref="videoPlayDialogRef" v-if="VideoShow" v-model="VideoShow" :playUrl="currentVideo.resultUrl" /> |
| | | </template> |
| | | |
| | | <script setup> |
| | |
| | | const permission = computed(() => store.state.user.permission) |
| | | console.log(permission.value.clueEvents_distribute, 'permission') |
| | | |
| | | const emit = defineEmits(['success']) |
| | | const visible = defineModel() |
| | | const loading = ref(false) |
| | | const list = ref([]) |
| | |
| | | if (!currentRow.value?.id) return |
| | | loading.value = true |
| | | try { |
| | | const res = await gdTaskResultListApi({ patrolTaskId: currentRow.value.id}) |
| | | const res = await gdTaskResultListApi({ patrolTaskId: currentRow.value.id }) |
| | | list.value = await Promise.all( |
| | | (res?.data?.data ?? []).map(async item => { |
| | | if (item.attachmentType !== 2) return item |
| | | const aiImg = await getAiImg(item.resultUrl,item.geojson) |
| | | const aiImg = await getAiImg(item.resultUrl, item.geojson) |
| | | return { ...item, aiImg } |
| | | }) |
| | | ) |
| | |
| | | await getList() |
| | | } |
| | | |
| | | function handleClose() { |
| | | emit('success') |
| | | visible = false |
| | | } |
| | | |
| | | defineExpose({ open }) |
| | | </script> |
| | | |