From f5b7cec75d47c5eedf96a1d10043bf7c51b849a1 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 16 十一月 2023 15:09:10 +0800 Subject: [PATCH] 属性码段-联动效果 --- Source/UBCS-WEB/src/components/FormTemplate/index.vue | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/Source/UBCS-WEB/src/components/FormTemplate/index.vue b/Source/UBCS-WEB/src/components/FormTemplate/index.vue index d129e12..fd884ed 100644 --- a/Source/UBCS-WEB/src/components/FormTemplate/index.vue +++ b/Source/UBCS-WEB/src/components/FormTemplate/index.vue @@ -41,6 +41,7 @@ :selfColumnConfig="selfColumnConfig" ref="CodeApply" @getFormData="getCodeApplyFormData" + @attrList="attrListForm" @referConfigDataUpdate="referConfigDataUpdate" ></FormTemplate> </el-tab-pane> @@ -131,6 +132,7 @@ }, data() { return { + attrList:[], eventList:[], //鐮佸�肩殑绗簩绉嶅彧璇婚殣钘忔儏鍐� codeValueApplyStatus:'', @@ -318,6 +320,17 @@ }, getFormData(form) { this.form = form; + if (this.attrList) { + this.attrList.forEach(item => { + if (this.form.hasOwnProperty(item.referAttributeId)) { + let oid = item.oid; // 澹版槑涓�涓彉閲忚褰曚笅涓�鑷寸殑item鐨刼id + this.codeApplyForm[oid] = this.form[item.referAttributeId] ; + } + }) + } + }, + attrListForm(attrListForm){ + this.attrList=attrListForm; }, getCodeApplyFormData(codeApplyForm) { this.codeApplyForm = codeApplyForm; -- Gitblit v1.9.3