Commit a8e05f88 by lixiaomin

修改用户启用状态

parent adb113c1
...@@ -58,15 +58,15 @@ export function resetUserPwd(userId, password) { ...@@ -58,15 +58,15 @@ export function resetUserPwd(userId, password) {
} }
// 用户状态修改 // 用户状态修改
export function changeUserStatus(query) { export function changeUserStatus(data) {
// const data = { // const data = {
// userId, // userId,
// status // status
// } // }
return request({ return request({
url: '/system/user/changeStatus', url: '/system/user/changeStatus',
method: 'get', method: 'put',
params: query data: data
}) })
} }
......
...@@ -243,7 +243,7 @@ export default { ...@@ -243,7 +243,7 @@ export default {
this.$modal this.$modal
.confirm('是否确认' + mess + '该数据项?') .confirm('是否确认' + mess + '该数据项?')
.then(function () { .then(function () {
return changeUserStatus({id:row.userId,status:sta}); return changeUserStatus({userId:row.userId,status:sta});
}) })
.then((response) => { .then((response) => {
if(response.code="200"){ if(response.code="200"){
......
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