From 7e5b6e8497a4575395aaa44a175dacdefaa5c166 Mon Sep 17 00:00:00 2001 From: futian.liu <liufutianyoo@163.com> Date: 星期二, 19 十二月 2023 09:19:02 +0800 Subject: [PATCH] 过滤仓库管理员角色显示 --- admin-web/src/components/myTable/myTableV2.vue | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/admin-web/src/components/myTable/myTableV2.vue b/admin-web/src/components/myTable/myTableV2.vue index 7932ddc..fe8f738 100644 --- a/admin-web/src/components/myTable/myTableV2.vue +++ b/admin-web/src/components/myTable/myTableV2.vue @@ -252,6 +252,7 @@ myTable: { url: '', params: {}, + autoLoad: true, border: false, showIndex: true, // 鏄惁鏄剧ず搴忓彿 expand: true, // 鏄惁鏄剧ず璇︽儏鏁版嵁 @@ -348,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