修改前端的验证码和登录相关的接口
This commit is contained in:
@ -382,14 +382,14 @@ export default {
|
||||
/** 根据角色ID查询菜单树结构 */
|
||||
getRoleMenuTreeselect(roleId) {
|
||||
return roleMenuTreeselect(roleId).then(response => {
|
||||
this.menuOptions = response.menus
|
||||
this.menuOptions = response.data.menus
|
||||
return response
|
||||
})
|
||||
},
|
||||
/** 根据角色ID查询部门树结构 */
|
||||
getDeptTree(roleId) {
|
||||
return deptTreeSelect(roleId).then(response => {
|
||||
this.deptOptions = response.depts
|
||||
this.deptOptions = response.data.depts
|
||||
return response
|
||||
})
|
||||
},
|
||||
|
@ -439,9 +439,12 @@ export default {
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset()
|
||||
console.log("userId:"+1111111)
|
||||
getUser().then(response => {
|
||||
this.postOptions = response.posts
|
||||
this.roleOptions = response.roles
|
||||
console.log(response)
|
||||
this.postOptions = response.data.posts
|
||||
console.log(this.postOptions)
|
||||
this.roleOptions = response.data.roles
|
||||
this.open = true
|
||||
this.title = "添加用户"
|
||||
this.form.password = this.initPassword
|
||||
@ -451,10 +454,11 @@ export default {
|
||||
handleUpdate(row) {
|
||||
this.reset()
|
||||
const userId = row.userId || this.ids
|
||||
console.log("userId:"+userId)
|
||||
getUser(userId).then(response => {
|
||||
this.form = response.data
|
||||
this.postOptions = response.posts
|
||||
this.roleOptions = response.roles
|
||||
this.form = response.data.user
|
||||
this.postOptions = response.data.posts
|
||||
this.roleOptions = response.data.roles
|
||||
this.$set(this.form, "postIds", response.postIds)
|
||||
this.$set(this.form, "roleIds", response.roleIds)
|
||||
this.open = true
|
||||
|
Reference in New Issue
Block a user