|
|
@ -162,6 +162,19 @@ |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const basicFormRef = ref() |
|
|
|
const openForm = (type : string, row ?: any) => { |
|
|
|
if(type=='create'){ |
|
|
|
Location.allSchemas.formSchema.forEach(item =>{ |
|
|
|
if(item.field == "number"){ |
|
|
|
item.componentProps.disabled = false |
|
|
|
} |
|
|
|
}) |
|
|
|
} else if(type=='update'){ |
|
|
|
Location.allSchemas.formSchema.forEach(item =>{ |
|
|
|
if(item.field == "number"){ |
|
|
|
item.componentProps.disabled = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
basicFormRef.value.open(type, row) |
|
|
|
} |
|
|
|
|
|
|
|