From 8db0c69163959824c904cb5865b41124b1a04f2d Mon Sep 17 00:00:00 2001 From: zhang_12370 <z2864490065@outlook.com> Date: 星期二, 24 六月 2025 16:04:39 +0800 Subject: [PATCH] 优化生产加工模块 --- 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