From 7d7b42822d9a11f8fa107fc3bbbbd518f0a7ef91 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期六, 09 十一月 2024 01:17:28 +0800 Subject: [PATCH] 1、修复系统功能模块-》管理功能模块修改是否有效功能修改无效问题。 2、Action管理,Action分类删除报错问题修改。 --- 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