From 9f9f7637f0cfd99497d2a5457089c7e92951a426 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期五, 24 十一月 2023 14:46:34 +0800
Subject: [PATCH] 本地日志文件下载工具类中的方法修改,sql拼接错误修改

---
 Source/UBCS-WEB/src/components/FormTemplate/index.vue |   21 +++++++++++++++++++++
 1 files changed, 21 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..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:'',
@@ -226,6 +228,13 @@
       },
     },
   },
+  watch:{
+    codeApplyForm:{
+      handler(newval,oldval){
+        // console.log('newval',newval)
+      }
+    }
+  },
   methods: {
     openDialog() {
       this.getFormTemplate();
@@ -311,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;

--
Gitblit v1.9.3