From eedc3076a011525f5b7e3ec0577f118eed19c68a Mon Sep 17 00:00:00 2001 From: junjie Date: Wed, 26 May 2021 15:36:41 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BB=AA=E8=A1=A8=E7=9B=98):=E5=88=86?= =?UTF-8?q?=E4=BA=ABfilter=E5=88=87=E6=8D=A2=E4=BF=9D=E7=95=99=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E5=B7=B2=E5=88=86=E4=BA=AB=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/GrantAuth/role/index.vue | 7 +++++-- frontend/src/views/panel/GrantAuth/user/index.vue | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/panel/GrantAuth/role/index.vue b/frontend/src/views/panel/GrantAuth/role/index.vue index 1af7f475d3..3167339bda 100644 --- a/frontend/src/views/panel/GrantAuth/role/index.vue +++ b/frontend/src/views/panel/GrantAuth/role/index.vue @@ -71,9 +71,12 @@ export default { const arr = obj[this.fieldName] if (arr.length === 0) { this.initColumnLabel() - return + } else { + this.columnLabel = this.filter_options[arr[0]].text } - this.columnLabel = this.filter_options[arr[0]].text + this.$nextTick(() => { + this.setCheckNodes() + }) }, save() { const rows = this.$refs.table.store.states.selection diff --git a/frontend/src/views/panel/GrantAuth/user/index.vue b/frontend/src/views/panel/GrantAuth/user/index.vue index a4296b02e0..7ee56ffa87 100644 --- a/frontend/src/views/panel/GrantAuth/user/index.vue +++ b/frontend/src/views/panel/GrantAuth/user/index.vue @@ -78,9 +78,12 @@ export default { const arr = obj[this.fieldName] if (arr.length === 0) { this.initColumnLabel() - return + } else { + this.columnLabel = this.filter_options[arr[0]].text } - this.columnLabel = this.filter_options[arr[0]].text + this.$nextTick(() => { + this.setCheckNodes() + }) }, save() {