Compare commits

..

No commits in common. '7c1c85bfc42f7f3aa366d92fdc9438e57a6cfaeb' and 'cefa03c91d9283a065cd42c989f1d0d5d3ca5188' have entirely different histories.

  1. 9
      src/views/work/Alarm.vue

9
src/views/work/Alarm.vue

@ -277,8 +277,7 @@
label="问题附件"
>
<div v-for="(item, index) in showData.files" :key="index" style="margin-top: 10px;">
<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" />
<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"/>
</div>
</el-form-item>
</el-row>
@ -317,7 +316,6 @@ const total = ref(0);
let showData = ref({})
let dialogShow = ref(false)
let previewList = ref([])
const loading = ref(true);
@ -325,11 +323,6 @@ 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;
})

Loading…
Cancel
Save