吉安感知网项目-前端
chenyao
5 days ago 150ba60e3436b3e6a418b0a66723938b5dc2cfb8
applications/task-work-order/src/views/orderView/orderManage/clueEvents/ViewDiaLog.vue
@@ -1,5 +1,5 @@
<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">
@@ -60,12 +60,7 @@
      />
   </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>
@@ -83,6 +78,7 @@
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([])
@@ -119,11 +115,11 @@
   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 }
         })
      )
@@ -155,6 +151,11 @@
   await getList()
}
function handleClose() {
   emit('success')
   visible = false
}
defineExpose({ open })
</script>