From 1d8522499d6052e3d389667db1aae46a23208831 Mon Sep 17 00:00:00 2001
From: cy <1664593601@qq.com>
Date: 星期四, 14 十二月 2023 13:05:01 +0800
Subject: [PATCH] feat: 去掉按钮权限
---
admin-web/src/components/myTable/myTableV2.vue | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/admin-web/src/components/myTable/myTableV2.vue b/admin-web/src/components/myTable/myTableV2.vue
index be5cf3f..fe8f738 100644
--- a/admin-web/src/components/myTable/myTableV2.vue
+++ b/admin-web/src/components/myTable/myTableV2.vue
@@ -198,6 +198,7 @@
import mySwitch from '@/components/mySwitch/mySwitch'
import request from '@/utils/request'
import * as valid from '@/utils/validate'
+
export default {
components: { myButton, mySwitch },
props: {
@@ -251,6 +252,7 @@
myTable: {
url: '',
params: {},
+ autoLoad: true,
border: false,
showIndex: true, // 鏄惁鏄剧ず搴忓彿
expand: true, // 鏄惁鏄剧ず璇︽儏鏁版嵁
@@ -347,9 +349,11 @@
total: 0
})
}
- this.$nextTick(() => {
- this.search({ pageNum: 1 })
- })
+ if (this.myTable.autoLoad) {
+ this.$nextTick(() => {
+ this.search({pageNum: 1})
+ })
+ }
this.myTable.columns.forEach((column, idx) => {
if (!column.hidden) {
this.checkColumns.push(idx)
--
Gitblit v1.9.1