From 9b51b2a07769ee049937e16dd45d8c36c87dcc3c Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期五, 08 十二月 2023 17:13:01 +0800
Subject: [PATCH] 主数据 枚举配置模板配置 参照配置表格显示问题处理

---
 Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue b/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue
index 5cb22bb..c662081 100644
--- a/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue
+++ b/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue
@@ -11,7 +11,7 @@
     <el-form ref="form" :model="btmType" show-message="true" inline size="medium" label-suffix=":" class="btmTypeForm"
              :rules="rules" @resetFields="resetForm" status-icon="true">
       <el-form-item label="鑻辨枃鍚嶇О" label-width="100px" required="true" prop="id">
-        <el-input v-model="btmType.id" :prefix-icon="icons.key" :disabled="true"></el-input>
+        <el-input v-model="btmType.id" :prefix-icon="icons.key" :disabled="type !== 'add'"></el-input>
       </el-form-item>
       <el-form-item label="涓枃鍚嶇О" label-width="100px">
         <el-input v-model="btmType.name" :prefix-icon="icons.name"></el-input>
@@ -191,19 +191,23 @@
   name: 'BusinessAdd',
   props: {
     btmType: {
-      type: Object
+      type: Object,
+      default:{}
     },
     domainOption: {
       type: Array
     },
     icons: {
       type: Array
+    },
+    type: {
+      type:String,
     }
   },
   watch: {
-    btmType: {
+    type: {
       handler(newval, oldval) {
-        // console.log('鐩戝惉', newval, oldval)
+        // console.log('鐩戝惉', newval)
       },
       deep: true,
       immediate: true

--
Gitblit v1.9.3