diff --git a/ruoyi-ui/src/views/system/user/index.vue b/ruoyi-ui/src/views/system/user/index.vue index 7f2b43b..40ad718 100644 --- a/ruoyi-ui/src/views/system/user/index.vue +++ b/ruoyi-ui/src/views/system/user/index.vue @@ -16,10 +16,17 @@ - + + + + + + + @@ -287,6 +294,7 @@ export default { userName: undefined, phonenumber: undefined, status: undefined, + roleId: undefined, deptId: undefined }, // 列信息 @@ -344,6 +352,7 @@ export default { this.getList() this.getDeptTree() + this.getRolels() this.getConfigKey("sys.user.initPassword").then(response => { this.initPassword = response.msg }) @@ -565,6 +574,11 @@ export default { // 提交上传文件 submitFileForm() { this.$refs.upload.submit() + }, + getRolels(){ + getUser().then(response => { + this.roleOptions = response.roles + }) } } }