| | |
| | | > |
| | | <el-image |
| | | v-if="item.attachmentType === 1 || item.attachmentType === 2" |
| | | :src="item.attachmentType === 1 ? item.resultUrl : getAiImg(item.resultUrl,item.geojson)" |
| | | :preview-src-list="[item.attachmentType === 1 ? item.resultUrl : getAiImg(item.resultUrl,item.geojson)]" |
| | | :src="item.attachmentType === 1 ? item.resultUrl : item.aiImg" |
| | | :preview-src-list="[item.attachmentType === 1 ? item.resultUrl : item.aiImg]" |
| | | fit="cover" |
| | | preview-teleported |
| | | /> |
| | |
| | | if (!formData.value?.id) return |
| | | try { |
| | | const res = await gdTaskResultListApi({ patrolTaskId: formData.value.id }) |
| | | taskResultList.value = res?.data?.data ?? [] |
| | | console.log(taskResultList.value, '8989') |
| | | taskResultList.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 { |
| | | } |
| | | } |