Commit dd42fe5a by 胡悦

修改角色编辑问题

1 parent 4ecc357a
......@@ -304,9 +304,9 @@ export default {
};
},
mounted() {
this.getTenantList();
// this.getTenantList();
this.getVisibility();
this.getPermission();
// this.getPermission();
},
methods: {
// 重置搜索条件
......@@ -375,10 +375,15 @@ export default {
menuIdList: []
};
this.getMenuTree();
this.getTenantList();
this.getPermission();
this.handleClose();
break;
case "edit":
this.roleDialogTitle = "编辑角色";
const params = { roleId: scope.id };
this.getTenantList(params);
this.getPermission(params);
this.editEvent(scope);
break;
case "delete":
......@@ -456,14 +461,14 @@ export default {
});
},
// 获取数据权限租户列表
getPermission() {
getPermission().then(res => {
getPermission(params) {
getPermission(params).then(res => {
this.permissionList = res.data;
});
},
// 获取租户列表
getTenantList() {
getTenantList().then(res => {
getTenantList(params) {
getTenantList(params).then(res => {
this.tenantList = res.data;
});
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!