Commit 4ecc357a by 胡悦

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

1 parent 93c7528e
......@@ -366,7 +366,7 @@ export default {
methods: {
init() {
this.getTreeOrg();
this.getRoleList();
// this.getRoleList();
this.getPosti();
this.getSex();
},
......@@ -458,6 +458,7 @@ export default {
if (this.sexList.length > 0) {
gender = this.sexList[0].dictValue;
}
this.getRoleList();
// this.userForm.gender = this.sexList.length > 0 ? this.sexList[0].dictValue + '' : ''
this.$set(this.userForm, "gender", gender);
this.userData.map(item => {
......@@ -473,6 +474,7 @@ export default {
if (this.userRules.password) {
this.$set(this.userRules, "password", null);
}
this.getRoleList({ userId: scope.id });
this.editEvent(scope);
break;
case "delete":
......@@ -601,8 +603,8 @@ export default {
});
},
// 角色下拉列表
getRoleList() {
roleList().then(res => {
getRoleList(params = {}) {
roleList(params).then(res => {
this.roleList = 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!