From 6d8e2b8f72fd3bb58ec8bce72068957ce48e120d Mon Sep 17 00:00:00 2001 From: kami <605128600@qq.com> Date: Thu, 21 Nov 2024 19:43:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E7=BA=BF=E7=B4=A2=E5=85=B3?= =?UTF-8?q?=E8=81=94=E9=97=AE=E9=A2=98=E9=A2=84=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/work/Alarm.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/work/Alarm.vue b/src/views/work/Alarm.vue index e4e9edf..ab33c0c 100644 --- a/src/views/work/Alarm.vue +++ b/src/views/work/Alarm.vue @@ -277,7 +277,8 @@ label="问题附件" >
- +
@@ -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; })