diff --git a/src/api/xq/user.js b/src/api/xq/user.js index eafe99a..f32ae7f 100644 --- a/src/api/xq/user.js +++ b/src/api/xq/user.js @@ -82,6 +82,22 @@ export function userResetNickname(id) { }) } +export function userLock(id) { + return request({ + url: '/xq/user/lock', + method: 'post', + data: {id} + }) +} + +export function userUnlock(id) { + return request({ + url: '/xq/user/unlock', + method: 'post', + data: {id} + }) +} + // 查询用户管理详细 export function getUser(id) { return request({ diff --git a/src/views/xq/user/index.vue b/src/views/xq/user/index.vue index bb9c9b7..fdd0b5b 100644 --- a/src/views/xq/user/index.vue +++ b/src/views/xq/user/index.vue @@ -66,7 +66,6 @@ - @@ -87,50 +86,35 @@ - - - - - - - - - - - - - - - - + + + + - +