|
@@ -30,8 +30,8 @@ export function addUser(data) {
|
|
// 修改用户
|
|
// 修改用户
|
|
export function updateUser(data) {
|
|
export function updateUser(data) {
|
|
return request({
|
|
return request({
|
|
- url: '/system/user',
|
|
|
|
- method: 'put',
|
|
|
|
|
|
+ url: '/system/user/put',
|
|
|
|
+ method: 'post',
|
|
data: data
|
|
data: data
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -39,8 +39,16 @@ export function updateUser(data) {
|
|
// 删除用户
|
|
// 删除用户
|
|
export function delUser(userId) {
|
|
export function delUser(userId) {
|
|
return request({
|
|
return request({
|
|
- url: '/system/user/' + userId,
|
|
|
|
- method: 'delete'
|
|
|
|
|
|
+ url: '/system/user/delete/' + userId,
|
|
|
|
+ method: 'get'
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+export function delUsers(query) {
|
|
|
|
+ return request({
|
|
|
|
+ url: '/system/user/applyFor',
|
|
|
|
+ method: 'get',
|
|
|
|
+ params: query
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -51,8 +59,8 @@ export function resetUserPwd(userId, password) {
|
|
password
|
|
password
|
|
}
|
|
}
|
|
return request({
|
|
return request({
|
|
- url: '/system/user/resetPwd',
|
|
|
|
- method: 'put',
|
|
|
|
|
|
+ url: '/system/user/resetPwd/put',
|
|
|
|
+ method: 'post',
|
|
data: data
|
|
data: data
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -64,8 +72,8 @@ export function changeUserStatus(userId, status) {
|
|
status
|
|
status
|
|
}
|
|
}
|
|
return request({
|
|
return request({
|
|
- url: '/system/user/changeStatus',
|
|
|
|
- method: 'put',
|
|
|
|
|
|
+ url: '/system/user/changeStatus/put',
|
|
|
|
+ method: 'post',
|
|
data: data
|
|
data: data
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -81,8 +89,8 @@ export function getUserProfile() {
|
|
// 修改用户个人信息
|
|
// 修改用户个人信息
|
|
export function updateUserProfile(data) {
|
|
export function updateUserProfile(data) {
|
|
return request({
|
|
return request({
|
|
- url: '/system/user/profile',
|
|
|
|
- method: 'put',
|
|
|
|
|
|
+ url: '/system/user/profile/put',
|
|
|
|
+ method: 'post',
|
|
data: data
|
|
data: data
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -95,7 +103,7 @@ export function updateUserPwd(oldPassword, newPassword) {
|
|
}
|
|
}
|
|
return request({
|
|
return request({
|
|
url: '/system/user/profile/updatePwd',
|
|
url: '/system/user/profile/updatePwd',
|
|
- method: 'put',
|
|
|
|
|
|
+ method: 'post',
|
|
params: data
|
|
params: data
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -120,12 +128,27 @@ export function getAuthRole(userId) {
|
|
// 保存授权角色
|
|
// 保存授权角色
|
|
export function updateAuthRole(data) {
|
|
export function updateAuthRole(data) {
|
|
return request({
|
|
return request({
|
|
- url: '/system/user/authRole',
|
|
|
|
- method: 'put',
|
|
|
|
|
|
+ url: '/system/user/authRole/put',
|
|
|
|
+ method: 'post',
|
|
|
|
+ params: data
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// 登录页面用户密码重置
|
|
|
|
+export function updateUserPwds(oldPassword, newPassword,userName) {
|
|
|
|
+ const data = {
|
|
|
|
+ oldPassword,
|
|
|
|
+ newPassword,
|
|
|
|
+ userName
|
|
|
|
+ }
|
|
|
|
+ return request({
|
|
|
|
+ url: '/system/user/profile/resetPwdLogin',
|
|
|
|
+ method: 'post',
|
|
params: data
|
|
params: data
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
// 查询部门下拉树结构
|
|
// 查询部门下拉树结构
|
|
export function deptTreeSelect() {
|
|
export function deptTreeSelect() {
|
|
return request({
|
|
return request({
|