|
@ -127,6 +127,19 @@ |
|
|
const basicFormRef = ref() |
|
|
const basicFormRef = ref() |
|
|
const openForm = (type : string, row ?: any) => { |
|
|
const openForm = (type : string, row ?: any) => { |
|
|
console.log('33333', row ) |
|
|
console.log('33333', row ) |
|
|
|
|
|
if(type=='create'){ |
|
|
|
|
|
LocationArea.allSchemas.formSchema.forEach(item =>{ |
|
|
|
|
|
if(item.field == "number"){ |
|
|
|
|
|
item.componentProps.disabled = false |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} else if(type=='update'){ |
|
|
|
|
|
LocationArea.allSchemas.formSchema.forEach(item =>{ |
|
|
|
|
|
if(item.field == "number"){ |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
basicFormRef.value.open(type, row) |
|
|
basicFormRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|