From c7dcb9fb7c644e764e4c50d948119c4c98b20509 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 25 一月 2024 10:00:56 +0800
Subject: [PATCH] 分类授权查询修改
---
Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue b/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue
index c2b4b6f..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="Object.keys(this.btmType).length !== 0 "></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>
@@ -199,12 +199,15 @@
},
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