From ebd866031586cfe4ea7ab6597328df9dc158a5e2 Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Mon, 8 Apr 2024 11:29:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8D=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionMethod/index.vue | 38 ------------------- .../inspectionMethod/inspectionMethod.data.ts | 5 --- 2 files changed, 43 deletions(-) diff --git a/src/views/qms/inspectionMethod/index.vue b/src/views/qms/inspectionMethod/index.vue index 2ed512f72..ba2d7158f 100644 --- a/src/views/qms/inspectionMethod/index.vue +++ b/src/views/qms/inspectionMethod/index.vue @@ -191,44 +191,6 @@ const openForm = (type: string, row?: any) => { // form表单提交 const formsSuccess = async (formType,data) => { - // data.filePathList = [] - // data.tmp = [] - console.log(data) - // for (let i = 0; i < data.filePathListView.length; i++) { - // data.filePathList.push(data.filePathListView[i].url) - // } - // data.filePathList = [] - // for (let i = 0; i < data.filePathListView.length; i++) { - // data.filePathList.push(data.filePathListView[i].url) - // } - // if(data.filePathList.length>0){ - // data.videoAddress = data.filePathList.join(',') - // } -// debugger - // if(data.filePathListView instanceof Array){ - // for(let i=0; i{return {url}}) - // } - // for (let i = 0; i < data.filePathListView.length; i++) { - // data.filePathList.push(data.filePathListView[i]) - // } - // console.log(1111,data) - // var isHave =InspectionMethod.allSchemas.formSchema.some(function (item) { - // return item.field === 'activeTime' || item.field === 'expireTime'; - // }); - // if(isHave){ - // if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){ - // message.error('失效时间要大于生效时间') - // return; - // } - // } - // if(data.activeTime==0)data.activeTime = null; - // if(data.expireTime==0)data.expireTime = null; if (formType === 'create') { delete data['uploadFile'] diff --git a/src/views/qms/inspectionMethod/inspectionMethod.data.ts b/src/views/qms/inspectionMethod/inspectionMethod.data.ts index 35da51fcd..136dfbb44 100644 --- a/src/views/qms/inspectionMethod/inspectionMethod.data.ts +++ b/src/views/qms/inspectionMethod/inspectionMethod.data.ts @@ -37,11 +37,6 @@ export const InspectionMethod = useCrudSchemas(reactive([ field: 'operationGuidance', sort: 'custom', }, - // { - // label: '视频地址', - // field: 'videoAddress', - // sort: 'custom', - // }, { label: '是否可用', field: 'available',