Commit 4bffb473 by lixiaomin

修改用户状态

parent cc3409dc
...@@ -58,15 +58,15 @@ export function resetUserPwd(userId, password) { ...@@ -58,15 +58,15 @@ export function resetUserPwd(userId, password) {
} }
// 用户状态修改 // 用户状态修改
export function changeUserStatus(userId, status) { export function changeUserStatus(query) {
const data = { // const data = {
userId, // userId,
status // status
} // }
return request({ return request({
url: '/system/user/changeStatus', url: '/system/user/changeStatus',
method: 'put', method: 'get',
data: data params: query
}) })
} }
......
...@@ -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 updateUser({id:row.userId,status:sta}); return changeUserStatus({id: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