From 9dc1ad7f68270735b5a11b69375e7571bf4e821b Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 25 一月 2024 14:35:20 +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