From 744819bfd6accd29a80a3494567cc2093cf3affa Mon Sep 17 00:00:00 2001 From: dangsn <dangsn@chicecm.com> Date: 星期四, 14 十一月 2024 15:27:46 +0800 Subject: [PATCH] 1、jar包更新 2、UI测试接口。获取产品和获取ebom --- Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 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..5131082 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 @@ -1,6 +1,6 @@ <template> <!--鍔ㄦ�佹ā鏉�--> - <avue-form ref="form" :option="option" v-model="form"> + <avue-form ref="form" :option="option" v-model="form" v-loading="loading"> <template v-for="item in allColumn" :slot="item.prop+ ''"> <vciWebRefer v-if="item.type === 'refer'" @@ -83,6 +83,7 @@ }, data() { return { + loading:false, form: this.formData, option: { menuBtn:false, @@ -121,6 +122,7 @@ Object.assign(this.form, this.initValue); } }, + deep:true, immediate: true, }, formData: { @@ -185,13 +187,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 +224,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