From a5a27e231cb2aa2c2a045df11ad90e5eda547ae9 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期二, 05 十一月 2024 18:11:59 +0800 Subject: [PATCH] 密级传参问题,以及同步整合代码 --- Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue index 8591918..f1650ee 100644 --- a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue +++ b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue @@ -121,6 +121,7 @@ Object.assign(this.form, this.initValue); } }, + deep:true, immediate: true, }, formData: { @@ -185,13 +186,14 @@ initItem(item){ const type=this.columnType[item.type] || item.type; item.text=item.text || item.label; - const col= { + let col= { + ...item, label: item.text, prop: item.field, showProp:item.showField, type: type, labelWidth: this.labelWidth || (item.text.length >= 6 ? 115 : 90), - disabled: !this.isEdit || item.readOnly || this.disabled, + disabled: item.readOnly || this.disabled, span: item.span ? item.span : item.type === "textarea" @@ -221,11 +223,11 @@ required: item.required|| false, message: `璇疯緭鍏�${item.text}!`, trigger: "submit" - }]):[], - ...item + }]):[] }; if(!this.isEdit){ col.placeholder=col.label; + col.disabled=true; } if(col.type === 'richText'){ this.subitemName = col.field; -- Gitblit v1.9.3