| | |
| | | <template v-slot="{ row }"> |
| | | <el-image |
| | | v-if="row.attachmentType === 1 || row.attachmentType === 2" |
| | | :src="row.attachmentType === 1 ? row.resultUrl : item.aiImg" |
| | | :preview-src-list="[row.attachmentType === 1 ? row.resultUrl : item.aiImg]" |
| | | :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 |
| | |
| | | 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,attachmentType: '1,2' }) |
| | | list.value = await Promise.all( |
| | | (res?.data?.data ?? []).map(async item => { |
| | | if (item.attachmentType !== 2) return item |