diff --git a/dist.rar b/dist.rar
index dabd233..df7c820 100644
Binary files a/dist.rar and b/dist.rar differ
diff --git a/src/api/system/role.js b/src/api/system/role.js
index f13e6f4..e9f35db 100644
--- a/src/api/system/role.js
+++ b/src/api/system/role.js
@@ -8,6 +8,22 @@ export function listRole(query) {
params: query
})
}
+// 获取角色选择框列表
+export function optionselect(query) {
+ return request({
+ url: '/system/role/optionselect',
+ method: 'get',
+ params: query
+ })
+}
+
+// 获取菜单角色
+export function getMenu(roleId) {
+ return request({
+ url: '/system/role/getMenu/' + roleId,
+ method: 'get'
+ })
+}
// 查询角色详细
export function getRole(roleId) {
@@ -97,7 +113,15 @@ export function authUserCancelAll(data) {
return request({
url: '/system/role/authUser/cancelAll',
method: 'put',
- params: data
+ data: data
+ })
+}
+// 批量清除关联账号
+export function authRolecancelAll(data) {
+ return request({
+ url: '/system/role/authRole/cancelAll',
+ method: 'put',
+ data: data
})
}
@@ -106,7 +130,7 @@ export function authUserSelectAll(data) {
return request({
url: '/system/role/authUser/selectAll',
method: 'put',
- params: data
+ data: data
})
}
diff --git a/src/api/system/user.js b/src/api/system/user.js
index 0085784..6b9fa1a 100644
--- a/src/api/system/user.js
+++ b/src/api/system/user.js
@@ -43,13 +43,36 @@ export function delUser(userId) {
method: 'delete'
})
}
+//删除账户/批量删除
+export function deleteUserSystem(data) {
+ return request({
+ url: '/system/user/delete',
+ method: 'delete',
+ data: data
+ })
+}
+//冻结账户
+export function changeStatus(data) {
+ return request({
+ url: '/system/user/changeStatus',
+ method: 'put',
+ data: data
+ })
+}
+//清空角色
+export function resetRole(data) {
+ return request({
+ url: '/system/user/resetRole',
+ method: 'put',
+ data: data
+ })
+}
// 用户密码重置
-export function resetUserPwd(userId, password,codeGoogle) {
+export function resetUserPwd(userId,inputGoogleCode) {
const data = {
userId,
- password,
- codeGoogle
+ inputGoogleCode
}
return request({
url: '/system/user/resetPwd',
@@ -58,6 +81,20 @@ export function resetUserPwd(userId, password,codeGoogle) {
})
}
+// 用户重置谷歌验证码
+export function resetGoogle(userId,inputGoogleCode) {
+ const data = {
+ userId,
+ inputGoogleCode
+ }
+ return request({
+ url: '/system/user/resetGoogle',
+ method: 'put',
+ data: data
+ })
+}
+
+
// 用户状态修改
export function changeUserStatus(userId, status) {
const data = {
@@ -89,10 +126,11 @@ export function updateUserProfile(data) {
}
// 用户密码重置
-export function updateUserPwd(oldPassword, newPassword) {
+export function updateUserPwd(oldPassword, newPassword,codeGoogle) {
const data = {
oldPassword,
- newPassword
+ newPassword,
+ codeGoogle
}
return request({
url: '/system/user/profile/updatePwd',
@@ -101,6 +139,15 @@ export function updateUserPwd(oldPassword, newPassword) {
})
}
+// 修改密码
+export function updateUserPassword(data) {
+ return request({
+ url: '/system/user/profile/change/password',
+ method: 'put',
+ data: data
+ })
+}
+
// 用户头像上传
export function uploadAvatar(data) {
return request({
@@ -136,11 +183,10 @@ export function deptTreeSelect() {
})
}
-// 修改密码
-export function updateUserPassword(data) {
+// 用户名称检查
+export function getSystemUserCheck(userName) {
return request({
- url: '/resetPwd',
- method: 'post',
- data: data
+ url: '/system/user/check/' + userName,
+ method: 'get'
})
}
diff --git a/src/components/TableBatchOperate/index.vue b/src/components/TableBatchOperate/index.vue
new file mode 100644
index 0000000..26f6095
--- /dev/null
+++ b/src/components/TableBatchOperate/index.vue
@@ -0,0 +1,68 @@
+
+
+