|
|
|
|
@ -277,7 +277,8 @@
|
|
|
|
|
label="问题附件" |
|
|
|
|
> |
|
|
|
|
<div v-for="(item, index) in showData.files" :key="index" style="margin-top: 10px;"> |
|
|
|
|
<el-image style="width: 100px; height: 100px;margin-right: 8px" :src="item.path" fit="cover" :hide-on-click-modal="true" :lazy="true" :z-index="index"/> |
|
|
|
|
<el-image :preview-src-list="previewList" style="width: 100px; height: 100px;margin-right: 8px" |
|
|
|
|
:initial-index="index" :src="item.path" fit="cover" :hide-on-click-modal="true" :lazy="true" /> |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-row> |
|
|
|
|
@ -316,6 +317,7 @@ const total = ref(0);
|
|
|
|
|
|
|
|
|
|
let showData = ref({}) |
|
|
|
|
let dialogShow = ref(false) |
|
|
|
|
let previewList = ref([]) |
|
|
|
|
|
|
|
|
|
const loading = ref(true); |
|
|
|
|
|
|
|
|
|
@ -323,6 +325,11 @@ const showFiles = (data) => {
|
|
|
|
|
alarmFiles(data.id).then(res => { |
|
|
|
|
showData.value = data; |
|
|
|
|
showData.value['files'] = res; |
|
|
|
|
let arr = [] |
|
|
|
|
res.forEach(item => { |
|
|
|
|
arr.push(item.path) |
|
|
|
|
}) |
|
|
|
|
previewList.value = arr |
|
|
|
|
console.log(showData.value) |
|
|
|
|
dialogShow.value = true; |
|
|
|
|
}) |
|
|
|
|
|