diff --git a/src/api/system/user.js b/src/api/system/user.js index 057ace8c..e3226a36 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -88,6 +88,18 @@ export function changeUserStatus(id, status) { data: data }) } +// 用户白名单修改 +export function changeUserWhiteList(id, whiteList) { + const data = { + id, + whiteList + } + return request({ + url: '/system/user/update-whiteList', + method: 'put', + data: data + }) +} // 查询用户个人信息 export function getUserProfile() { diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 0ee1457d..3bcc4a7b 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -193,11 +193,29 @@ /> + + + +