From 8a5950c9be089f9f762f6f92b1f376e08f2c7a40 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 16 十一月 2023 16:40:56 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/UBCS-WEB/src/components/FormTemplate/index.vue |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/FormTemplate/index.vue b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
index 6e36920..f6a23b6 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:'',
@@ -226,6 +228,13 @@
       },
     },
   },
+  watch:{
+    codeApplyForm:{
+      handler(newval,oldval){
+        // console.log('newval',newval)
+      }
+    }
+  },
   methods: {
     openDialog() {
       this.getFormTemplate();
@@ -311,6 +320,16 @@
     },
     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;

--
Gitblit v1.9.3