Browse Source

QMS/检验方法 编辑回显

master_hella_20240701
yufei0306 7 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){
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)

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

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

Loading…
Cancel
Save