From c4439dd57d5550f9deace69a5facbeb68a81f34e Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期五, 20 六月 2025 17:09:00 +0800 Subject: [PATCH] 1.巡检管理-已上传的图片和视频预览 --- src/views/inspectionManagement/index.vue | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/views/inspectionManagement/index.vue b/src/views/inspectionManagement/index.vue index bb313fd..64bc036 100644 --- a/src/views/inspectionManagement/index.vue +++ b/src/views/inspectionManagement/index.vue @@ -51,7 +51,11 @@ :show-selection="true" :border="true" :maxHeight="480" - @edit="handleAdd"></ETable> + operationsWidth="130" + :operations="['edit', 'viewFile']" + @edit="handleAdd" + @viewFile="viewFile" + ></ETable> </div> <pagination v-if="total>0" @@ -65,6 +69,7 @@ </el-card> <form-dia ref="formDia" @closeDia="handleQuery"></form-dia> <qr-code-dia ref="qrCodeDia" @closeDia="handleQuery"></qr-code-dia> + <view-files ref="viewFiles"></view-files> </div> </template> @@ -77,9 +82,11 @@ import FormDia from "@/views/inspectionManagement/components/formDia.vue"; import QrCodeDia from "@/views/inspectionManagement/components/qrCodeDia.vue"; import {delInspectionTask, inspectionTaskList} from "@/api/inspectionManagement/index.js"; +import ViewFiles from "@/views/inspectionManagement/components/viewFiles.vue"; const formDia = ref() const qrCodeDia = ref() +const viewFiles = ref() // 鏌ヨ鍙傛暟 const queryParams = reactive({ supplierName: "", @@ -154,6 +161,12 @@ } }) }; +// 鏌ョ湅闄勪欢 +const viewFile = (row) => { + nextTick(() => { + viewFiles.value?.openDialog(row) + }) +} // 鍒犻櫎浠诲姟 const handleDelete = () => { if (selectedRows.value.length === 0) { -- Gitblit v1.9.3