From 06cda389f78e0b2a37598daca8934ae2eb025d35 Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Mon, 19 May 2025 14:12:21 +0800 Subject: [PATCH] =?UTF-8?q?SBBJ-1041=E5=BA=93=E5=8C=BA=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/locationArea/index.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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) }