From 4b42ec4cf0fd085752b563b146aed696098b3d3a Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期一, 03 七月 2023 19:13:17 +0800
Subject: [PATCH] 修改referDataGrid方法

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

diff --git a/Source/UBCS-WEB/src/components/FormTemplate/index.vue b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
index 57cfa45..45f318e 100644
--- a/Source/UBCS-WEB/src/components/FormTemplate/index.vue
+++ b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
@@ -11,14 +11,12 @@
   >
     <FormTemplate
       v-bind="$attrs"
-      :visible="visible"
       :type="type"
       :rowOid="rowOid"
       :templateOid="templateOid"
       ref="FormTemplate"
       @getFormData="getFormData"
     ></FormTemplate>
-
     <div
       class="tab_box"
       v-if="
@@ -127,8 +125,8 @@
       form: {},
       codeApplyForm: {},
       activeName: "codeApply",
-      showCodeApply: true,
-      showResembleQuery: true,
+      showCodeApply: false,
+      showResembleQuery: false,
       selfColumnType: {
         codefixedsec: "combox",
         codeclassifysec: "refer",
@@ -233,7 +231,9 @@
               this.activeName = "resembleQuery";
               this.showResembleQuery = true;
             }
-            this.$refs.FormTemplate.templateRender(res.data.formDefineVO.items);
+            this.$nextTick(() => {
+              this.$refs.FormTemplate.templateRender(res.data.formDefineVO.items);
+            })
           }
         })
         .catch(() => {
@@ -253,15 +253,15 @@
           this.secVOList = (res.data.data.secVOList || []).filter((item) =>
             typeList.includes(item.secType)
           );
-          this.$nextTick(() => {
             if (this.secVOList.length > 0 && this.type === "add") {
               this.showCodeApply = true;
               this.activeName = "codeApply";
-              this.$refs.CodeApply.templateRender(this.secVOList);
+              this.$nextTick(() => {
+                this.$refs.CodeApply.templateRender(this.secVOList);
+              })
             } else {
               this.showCodeApply = false;
             }
-          });
         }
       });
     },

--
Gitblit v1.9.3