From 4a800a8fc83c6bd1f86a8e847b079a51a7532c09 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期三, 20 七月 2022 15:05:58 +0800
Subject: [PATCH] 修复国标配置的bug

---
 src/pages/library/components/baseList.vue |   29 +++++++++++++++++++----------
 1 files changed, 19 insertions(+), 10 deletions(-)

diff --git a/src/pages/library/components/baseList.vue b/src/pages/library/components/baseList.vue
index 4c8d585..9a70af5 100644
--- a/src/pages/library/components/baseList.vue
+++ b/src/pages/library/components/baseList.vue
@@ -193,25 +193,34 @@
         this.isAdmin || this.buttonAuthority.indexOf("," + authority + ",") > -1
       );
     },
-    async init() {
+    async init(typ) {
       await this.BaseManageData.querySyncTables();
       this.syncTableList = this.BaseManageData.syncTables;
-      this.defaultShow();
+      if (typ) {
+        this.$emit("getList");
+      } else {
+        this.defaultShow();
+      }
       await this.BaseManageData.queryLocalTables();
       this.localTableList = this.BaseManageData.localTables;
-      this.defaultShow();
+      if (typ) {
+        this.$emit("getList");
+      } else {
+        this.defaultShow();
+      }
     },
     add(type) {
       this.$emit("changeShow", null, type);
     },
     clickLast(type) {
-      this.$nextTick(() => {
-        this.clickCategory(
-          this.syncTableList.length - 1,
-          type,
-          this.syncTableList[this.syncTableList.length - 1]
-        );
-      });
+      // this.$nextTick(() => {
+
+      // });
+      this.clickCategory(
+        this.syncTableList.length - 1,
+        type,
+        this.syncTableList[this.syncTableList.length - 1]
+      );
     },
     clickCategory(index, type, item) {
       this.categoryIndex = type + index;

--
Gitblit v1.8.0