Commit 07077c94 authored by shen_yan_pu's avatar shen_yan_pu

完善功能

parent 97af6d6c
......@@ -60,16 +60,6 @@ export function delUser(userId) {
})
}
// 导出用户
export function exportUser(query) {
return request({
url: '/system/user/export',
method: 'get',
params: query,
responseType: 'blob'
})
}
// 用户密码重置
export function resetUserPwd(businessId, password) {
const data = {
......@@ -79,7 +69,7 @@ export function resetUserPwd(businessId, password) {
return request({
url: '/system/user/resetPassword',
method: 'put',
data: data
params: data
})
}
......@@ -92,7 +82,7 @@ export function changeUserStatus(businessId, status) {
return request({
url: '/system/user/changeStatus',
method: 'put',
data: data
params: data
})
}
......@@ -122,6 +112,16 @@ export function updateUserPwd(data) {
})
}
// 导出用户
export function exportUser(query) {
return request({
url: '/system/user/export',
method: 'get',
params: query,
responseType: 'blob'
})
}
// 用户头像上传
export function uploadAvatar(data) {
return request({
......
......@@ -735,7 +735,7 @@ export default {
}).then(({ value }) => {
resetUserPwd(this.businessId, value).then(response => {
this.$message({
message: '修改成功,新密码是:' + 'value'
message: '修改成功,新密码是:' + value
})
})
}).catch(() => {})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment