Commit b603c16d by caoyanzhi

接口联调

parent 858c630b
......@@ -66,6 +66,7 @@ export default {
// 角色列表
roleList: [],
activeRoleId: '',
enterpriseId: '',
adminList: [],
search: '',
pager: {
......@@ -103,6 +104,7 @@ export default {
this.roleList.some(el => {
if (el.roleList.length > 0) {
this.activeRoleId= el.roleList[0].roleId;
this.enterpriseId = el.roleList[0].enterpriseId;
}
return el.roleList.length > 0;
})
......@@ -116,6 +118,7 @@ export default {
getAdminList() {
const params = {
roleId: this.activeRoleId,
enterpriseId: this.enterpriseId,
search: this.search,
pageNum: this.pager.currentPage,
pageSize: this.pager.pageSize
......@@ -128,8 +131,12 @@ export default {
},
// 切换角色菜单
onChangeRole(roleData) {
const { roleId } = roleData;
const { roleId, enterpriseId } = roleData;
this.activeRoleId = roleId;
this.enterpriseId = enterpriseId;
this.search = '';
this.pager.currentPage = 1;
this.getAdminList();
},
// 编辑角色菜单
onEditRole(roleData) {
......
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