|
|
@ -152,6 +152,19 @@ const buttonTableClick = async (val, row) => { |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const basicFormRef = ref() |
|
|
|
const openForm = (type: string, row?: any) => { |
|
|
|
if(type=='update'){ |
|
|
|
//编辑 |
|
|
|
BackflushDetailbQad.allSchemas.formSchema.forEach(item=>{ |
|
|
|
if(item.field != 'status'){ |
|
|
|
item.componentProps.disabled = true |
|
|
|
} |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
BackflushDetailbQad.allSchemas.formSchema.forEach(item=>{ |
|
|
|
item.componentProps.disabled = false |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
basicFormRef.value.open(type, row) |
|
|
|
} |
|
|
|
|
|
|
|