diff --git a/src/views/eam/basic/locationArea/index.vue b/src/views/eam/basic/locationArea/index.vue index 32da2c1..f541d02 100644 --- a/src/views/eam/basic/locationArea/index.vue +++ b/src/views/eam/basic/locationArea/index.vue @@ -127,6 +127,19 @@ const basicFormRef = ref() const openForm = (type : string, row ?: any) => { 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) }