From ac8e8998235f247365280d1a1632115c43b10037 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期五, 17 十一月 2023 02:24:30 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/components/FormTemplate/index.vue | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Source/UBCS-WEB/src/components/FormTemplate/index.vue b/Source/UBCS-WEB/src/components/FormTemplate/index.vue index 6b59ceb..fb3a61b 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,18 @@ }, getFormData(form) { this.form = form; + //灞炴�х爜娈佃祴鍊� + if (this.attrList) { + this.attrList.forEach(item => { + if (this.form.hasOwnProperty(item.referAttributeId)) { + this.codeApplyForm[item.oid] = this.form[item.referAttributeId]; + } + }) + } + }, + //灞炴�х爜娈佃祴鍊� + attrListForm(attrListForm){ + this.attrList=attrListForm; }, getCodeApplyFormData(codeApplyForm) { this.codeApplyForm = codeApplyForm; @@ -421,8 +435,6 @@ resForm.codeClassifyOid = this.codeClassifyOid; resForm.codeRuleOid = this.codeRuleOid; resForm.templateOid = this.templateOid; - // console.log('formValue',formValue) - // console.log('resForm',resForm) this.$emit("submit", resForm); }, getDefaultValueAndFormValues(form) { -- Gitblit v1.9.3