From dbdf32945e78dda3534bb05a9e70e85a60f3c75d Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Mon, 19 May 2025 14:18:22 +0800 Subject: [PATCH] =?UTF-8?q?SBBJ-1043=E5=BA=93=E4=BD=8D=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/eam/basic/location/index.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/views/eam/basic/location/index.vue b/src/views/eam/basic/location/index.vue index 12610a8..7db9845 100644 --- a/src/views/eam/basic/location/index.vue +++ b/src/views/eam/basic/location/index.vue @@ -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) }