吉安感知网项目-前端
罗广辉
2026-06-06 2fa2c869c3613bc3d7af6baf13eb7fab2a9aa179
applications/task-work-order/src/views/orderView/orderManage/orderManage/outcomeData.vue
@@ -40,9 +40,9 @@
            <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)]"
                  fit="cover"
                        :src="row.attachmentType === 1 ? row.resultUrl : row.aiImg"
                        :preview-src-list="[row.attachmentType === 1 ? row.resultUrl : row.aiImg]"
                        fit="cover"
                  style="width: 80px; height: 80px"
                  preview-teleported
                     />
@@ -140,7 +140,13 @@
        ? searchParams.value.patrolTaskIds.join(',')
        : ''
    })
    list.value = res?.data?.data?.records || []
      list.value = await Promise.all(
         (res?.data?.data?.records ?? []).map(async item => {
            if (item.attachmentType !== 2) return item
            const aiImg = await getAiImg(item.resultUrl,item.geojson)
            return { ...item, aiImg }
         })
      )
    total.value = res?.data?.data?.total || 0
  } finally {
    loading.value = false