Browse Source

QMS/检验方法 编辑回显

master_hella_20240701
yufei0306 8 months ago
parent
commit
398dff4a52
  1. 4
      src/views/qms/inspectionMethod/index.vue
  2. 8
      src/views/qms/inspectionMethod/inspectionMethod.data.ts

4
src/views/qms/inspectionMethod/index.vue

@ -179,7 +179,11 @@ const openForm = (type: string, row?: any) => {
} }
if(uploadFile){ if(uploadFile){
uploadFile['componentProps']['upData']['tableId'] = currentTime 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) basicFormRef.value.open(type, row)

8
src/views/qms/inspectionMethod/inspectionMethod.data.ts

@ -64,9 +64,11 @@ export const InspectionMethod = useCrudSchemas(reactive<CrudSchema[]>([
upData:{ upData:{
tableName:'basicInspectionMethod', tableName:'basicInspectionMethod',
tableId:'', tableId:'',
// fileType:['doc', 'xls', 'ppt', 'txt'] },
} fileType:['doc', 'xls', 'ppt', 'txt'],
} modelValue:[]
},
} }
}, },
{ {

Loading…
Cancel
Save