Commit 1f55ab06 by maxiaohan

用户和用户组切换,数据渲染有误问题。

parent f2f8ee0c
......@@ -74,6 +74,7 @@
style="width: 100%;"
highlight-current-row
ref="multipleTable"
:key="key1"
:data="userTableData"
class="table"
>
......@@ -244,6 +245,7 @@
highlight-current-row
ref="multipleTable"
:data="groupTableData"
:key="key2"
class="table"
>
<el-table-column
......@@ -393,6 +395,8 @@ export default {
},
data() {
return {
key1: 1,
key2: 0,
isUser: false,
isGroup: false,
userTableData: [],
......@@ -470,12 +474,14 @@ export default {
this.isGroup = false;
this.userClear();
this.searchUser();
this.key1 += 1;
},
getGroup() {
this.isUser = false;
this.isGroup = true;
this.groupClear();
this.searchGroup();
this.key2 += 1;
},
// 用户清空
userClear() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment