From 5455dd4cd7c27d14bc7f98f110ae14163dbaacc1 Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期三, 16 二月 2022 15:30:10 +0800
Subject: [PATCH] 对比库新增跳到最末
---
src/pages/library/components/carList.vue | 1 +
src/pages/library/index/App.vue | 6 +-----
src/pages/library/components/baseList.vue | 29 +++++++++++++++++++----------
src/pages/library/components/addBase.vue | 1 -
src/pages/library/components/personList.vue | 2 ++
5 files changed, 23 insertions(+), 16 deletions(-)
diff --git a/src/pages/library/components/addBase.vue b/src/pages/library/components/addBase.vue
index 5a1b3d8..ff18fa7 100644
--- a/src/pages/library/components/addBase.vue
+++ b/src/pages/library/components/addBase.vue
@@ -286,7 +286,6 @@
},
methods: {
onSubmit(formName) {
- debugger
if (this.form.id) {
// id涓嶄负绌猴紝淇敼搴曞簱
this.$refs[formName].validate(async (valid) => {
diff --git a/src/pages/library/components/baseList.vue b/src/pages/library/components/baseList.vue
index 4c8d585..3062d4d 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.clickLast(typ);
+ } else {
+ this.defaultShow();
+ }
await this.BaseManageData.queryLocalTables();
this.localTableList = this.BaseManageData.localTables;
- this.defaultShow();
+ if (typ) {
+ this.clickLast(typ);
+ } 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;
diff --git a/src/pages/library/components/carList.vue b/src/pages/library/components/carList.vue
index 2696cc7..bb239de 100644
--- a/src/pages/library/components/carList.vue
+++ b/src/pages/library/components/carList.vue
@@ -861,6 +861,7 @@
message: "搴曞簱鍒犻櫎鎴愬姛锛�",
});
}
+ this.askDeleteShow=false
this.$emit("onDelete");
})
.catch((err) => {
diff --git a/src/pages/library/components/personList.vue b/src/pages/library/components/personList.vue
index 5fbd37e..6511bbb 100644
--- a/src/pages/library/components/personList.vue
+++ b/src/pages/library/components/personList.vue
@@ -1142,6 +1142,8 @@
message: "搴曞簱鍒犻櫎鎴愬姛锛�",
});
}
+ this.askDeleteShow=false
+
this.$emit("onDelete");
})
.catch((err) => {
diff --git a/src/pages/library/index/App.vue b/src/pages/library/index/App.vue
index 7cc2173..29a1271 100644
--- a/src/pages/library/index/App.vue
+++ b/src/pages/library/index/App.vue
@@ -119,9 +119,6 @@
} else {
this.baseForEdit = {};
this.breeadCrumb[1].name = "娣诲姞搴曞簱";
- // this.$nextTick(() => {
- // this.$refs.baseSync.clickLast(type)
- // })
}
this.syncType = type;
this.showList = false;
@@ -136,8 +133,7 @@
},
closeAdd() {
this.showList = true;
- this.$refs.baseSync.clickLast(this.syncType)
-
+ this.$refs.baseSync.init(this.syncType);
},
},
props: {
--
Gitblit v1.8.0