吉安感知网项目-前端
罗广辉
2026-06-06 2fa2c869c3613bc3d7af6baf13eb7fab2a9aa179
applications/task-work-order/src/views/orderView/orderManage/clueEvents/ViewDiaLog.vue
@@ -6,8 +6,8 @@
               <template v-slot="{ row }">
                  <el-image
                     v-if="row.attachmentType === 1 || row.attachmentType === 2"
                     :src="row.attachmentType === 1 ? row.resultUrl : getAiImg(row.resultUrl)"
                     :preview-src-list="[row.attachmentType === 1 ? row.resultUrl : getAiImg(row.resultUrl)]"
                     :src="row.attachmentType === 1 ? row.resultUrl : item.aiImg"
                     :preview-src-list="[row.attachmentType === 1 ? row.resultUrl : item.aiImg]"
                     fit="cover"
                     style="width: 80px; height: 80px"
                     preview-teleported
@@ -104,7 +104,13 @@
   loading.value = true
   try {
      const res = await gdTaskResultListApi({ patrolTaskId: currentRow.value.id })
      list.value = res?.data?.data ?? []
      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)
            return { ...item, aiImg }
         })
      )
   } finally {
      loading.value = false
   }