From 398dff4a52018d1c680be4b9e6545d5a65bc2b86 Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Mon, 8 Apr 2024 09:38:27 +0800 Subject: [PATCH] =?UTF-8?q?QMS/=E6=A3=80=E9=AA=8C=E6=96=B9=E6=B3=95=20?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionMethod/index.vue | 4 ++++ src/views/qms/inspectionMethod/inspectionMethod.data.ts | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/qms/inspectionMethod/index.vue b/src/views/qms/inspectionMethod/index.vue index fdf4cf9fc..2ed512f72 100644 --- a/src/views/qms/inspectionMethod/index.vue +++ b/src/views/qms/inspectionMethod/index.vue @@ -179,7 +179,11 @@ const openForm = (type: string, row?: any) => { } if(uploadFile){ uploadFile['componentProps']['upData']['tableId'] = currentTime + uploadFile['componentProps']['modelValue']= [] } + }else if(type=='update'){ + const uploadFile = InspectionMethod.allSchemas.formSchema.find(item=>item.field=='videoAddress') + uploadFile['componentProps']['modelValue']= row.filePathListView } basicFormRef.value.open(type, row) diff --git a/src/views/qms/inspectionMethod/inspectionMethod.data.ts b/src/views/qms/inspectionMethod/inspectionMethod.data.ts index d181e9855..d793f4e0a 100644 --- a/src/views/qms/inspectionMethod/inspectionMethod.data.ts +++ b/src/views/qms/inspectionMethod/inspectionMethod.data.ts @@ -64,9 +64,11 @@ export const InspectionMethod = useCrudSchemas(reactive([ upData:{ tableName:'basicInspectionMethod', tableId:'', - // fileType:['doc', 'xls', 'ppt', 'txt'] - } - } + }, + fileType:['doc', 'xls', 'ppt', 'txt'], + modelValue:[] + }, + } }, {