From eb6970d08b8e2974194d5aa24872fce19c5c11a0 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期五, 18 八月 2023 12:00:49 +0800 Subject: [PATCH] 用户管理 树切换默认bug --- Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue b/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue index 3023328..e7fe577 100644 --- a/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue +++ b/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue @@ -5,6 +5,7 @@ <avue-form v-model="form" :option="option" + v-loading="loading" ref="form" :style="{ minHeight: loading ? '300px' : '' }" :key="updateIndex" @@ -49,7 +50,7 @@ // 榛樿绂佺敤鍏冪礌 disabledProp: { type: Array, - default: () => ["id"], + default: () => ["id","lcstatus"], }, templateOid: { type: String, @@ -522,13 +523,17 @@ if ( formItem.type === "combox" && formItem.comboxKey && - (!Array.isArray(formItem.dicData) || formItem.dicData.length === 0) + (!Array.isArray(formItem.dicData) || formItem.dicData.length === 0) &&(!Array.isArray(formItem.data) || formItem.data.length === 0) ) { dictKeys.push({ dictKey: formItem.comboxKey, field: formItem.field }); } // 绂佺敤閮ㄥ垎灞炴�э紙澶栭儴浼犲�肩鐢ㄥ拰鍙傜収绂佺敤锛� if (this.disabledProp.includes(formItem.field)) { formItem.readOnly = true; + } + if(formItem.field=='lcstatus'){ + formItem.field=formItem.field+'_text'; + formItem.readOnly=true; } // 璁剧疆琛ㄥ崟鏍¢獙鐨勮鍒欙紝鏂囨湰 let message = "璇烽�夋嫨"; @@ -557,11 +562,12 @@ value: formItem.defaultValue, placeholder: formItem.inputTip, comboxKey: formItem.comboxKey, + tip: formItem.tooltips, display: !formItem.hidden, maxlength: formItem.maxlength, filterable: true, referConfig: - formItem.type == "refer" + formItem.type == "refer" ? { title: formItem.text, showField: formItem.showField || formItem.field, @@ -603,7 +609,7 @@ if (this.type === "add") { this.loading = false; } - + this.geDictData(dictKeys); this.getFormDetail(); }, -- Gitblit v1.9.3