Commit 4ecc357a by 胡悦

修改用户管理的角色列表接口

1 parent 93c7528e
...@@ -366,7 +366,7 @@ export default { ...@@ -366,7 +366,7 @@ export default {
methods: { methods: {
init() { init() {
this.getTreeOrg(); this.getTreeOrg();
this.getRoleList(); // this.getRoleList();
this.getPosti(); this.getPosti();
this.getSex(); this.getSex();
}, },
...@@ -458,6 +458,7 @@ export default { ...@@ -458,6 +458,7 @@ export default {
if (this.sexList.length > 0) { if (this.sexList.length > 0) {
gender = this.sexList[0].dictValue; gender = this.sexList[0].dictValue;
} }
this.getRoleList();
// this.userForm.gender = this.sexList.length > 0 ? this.sexList[0].dictValue + '' : '' // this.userForm.gender = this.sexList.length > 0 ? this.sexList[0].dictValue + '' : ''
this.$set(this.userForm, "gender", gender); this.$set(this.userForm, "gender", gender);
this.userData.map(item => { this.userData.map(item => {
...@@ -473,6 +474,7 @@ export default { ...@@ -473,6 +474,7 @@ export default {
if (this.userRules.password) { if (this.userRules.password) {
this.$set(this.userRules, "password", null); this.$set(this.userRules, "password", null);
} }
this.getRoleList({ userId: scope.id });
this.editEvent(scope); this.editEvent(scope);
break; break;
case "delete": case "delete":
...@@ -601,8 +603,8 @@ export default { ...@@ -601,8 +603,8 @@ export default {
}); });
}, },
// 角色下拉列表 // 角色下拉列表
getRoleList() { getRoleList(params = {}) {
roleList().then(res => { roleList(params).then(res => {
this.roleList = res.data; this.roleList = res.data;
this.userData[5].options = res.data; this.userData[5].options = res.data;
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!