8 changed files with 54 additions and 441 deletions
@ -1,72 +0,0 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询部门列表
|
|||
export function listDept(query) { |
|||
return request({ |
|||
url: '/system/dept/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询部门列表(排除节点)
|
|||
export function listDeptExcludeChild(deptId) { |
|||
return request({ |
|||
url: '/system/dept/list/exclude/' + deptId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 查询部门详细
|
|||
export function getDept(deptId) { |
|||
return request({ |
|||
url: '/system/dept/' + deptId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增部门
|
|||
export function addDept(data) { |
|||
return request({ |
|||
url: '/system/dept', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改部门
|
|||
export function updateDept(data) { |
|||
return request({ |
|||
url: '/system/dept/edit', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除部门
|
|||
export function delDept(deptId) { |
|||
return request({ |
|||
url: "/mz/apartment/delete/" + deptId, |
|||
method: "post", |
|||
}); |
|||
} |
|||
|
|||
// 上传部门图片
|
|||
export function uploadDeptImages(data) { |
|||
return request({ |
|||
url: '/system/dept/upload', |
|||
method: 'post', |
|||
data: data, |
|||
headers: { |
|||
'Content-Type': 'multipart/form-data' |
|||
} |
|||
}) |
|||
} |
|||
|
|||
// 房屋专属左侧组织树
|
|||
export function getdeptList() { |
|||
return request({ |
|||
url: '/mz/building/getdeptList', |
|||
method: 'get' |
|||
}) |
|||
} |
@ -1,44 +0,0 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询公告列表
|
|||
export function listNotice(query) { |
|||
return request({ |
|||
url: '/system/notice/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询公告详细
|
|||
export function getNotice(noticeId) { |
|||
return request({ |
|||
url: '/system/notice/' + noticeId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增公告
|
|||
export function addNotice(data) { |
|||
return request({ |
|||
url: '/system/notice', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改公告
|
|||
export function updateNotice(data) { |
|||
return request({ |
|||
url: '/system/notice', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除公告
|
|||
export function delNotice(noticeId) { |
|||
return request({ |
|||
url: '/system/notice/' + noticeId, |
|||
method: 'delete' |
|||
}) |
|||
} |
@ -1,44 +0,0 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询岗位列表
|
|||
export function listPost(query) { |
|||
return request({ |
|||
url: '/system/post/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询岗位详细
|
|||
export function getPost(postId) { |
|||
return request({ |
|||
url: '/system/post/' + postId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增岗位
|
|||
export function addPost(data) { |
|||
return request({ |
|||
url: '/system/post', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改岗位
|
|||
export function updatePost(data) { |
|||
return request({ |
|||
url: '/system/post', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除岗位
|
|||
export function delPost(postId) { |
|||
return request({ |
|||
url: '/system/post/' + postId, |
|||
method: 'delete' |
|||
}) |
|||
} |
@ -1,119 +0,0 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询角色列表
|
|||
export function listRole(query) { |
|||
return request({ |
|||
url: '/system/role/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询角色详细
|
|||
export function getRole(roleId) { |
|||
return request({ |
|||
url: '/system/role/' + roleId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增角色
|
|||
export function addRole(data) { |
|||
return request({ |
|||
url: '/system/role', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改角色
|
|||
export function updateRole(data) { |
|||
return request({ |
|||
url: '/system/role/update', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 角色数据权限
|
|||
export function dataScope(data) { |
|||
return request({ |
|||
url: '/system/role/dataScope', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 角色状态修改
|
|||
export function changeRoleStatus(roleId, status) { |
|||
const data = { |
|||
roleId, |
|||
status |
|||
} |
|||
return request({ |
|||
url: '/system/role/changeStatus', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除角色
|
|||
export function delRole(roleId) { |
|||
return request({ |
|||
url: '/system/role/delete/' + roleId, |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
// 查询角色已授权用户列表
|
|||
export function allocatedUserList(query) { |
|||
return request({ |
|||
url: '/system/role/authUser/allocatedList', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询角色未授权用户列表
|
|||
export function unallocatedUserList(query) { |
|||
return request({ |
|||
url: '/system/role/authUser/unallocatedList', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 取消用户授权角色
|
|||
export function authUserCancel(data) { |
|||
return request({ |
|||
url: '/system/role/authUser/cancel', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 批量取消用户授权角色
|
|||
export function authUserCancelAll(data) { |
|||
return request({ |
|||
url: '/system/role/authUser/cancelAll', |
|||
method: 'post', |
|||
params: data |
|||
}) |
|||
} |
|||
|
|||
// 授权用户选择
|
|||
export function authUserSelectAll(data) { |
|||
return request({ |
|||
url: '/system/role/authUser/selectAll', |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
} |
|||
|
|||
// 根据角色ID查询部门树结构
|
|||
export function deptTreeSelect(roleId) { |
|||
return request({ |
|||
url: '/system/role/deptTree/' + roleId, |
|||
method: 'get' |
|||
}) |
|||
} |
@ -1,136 +0,0 @@ |
|||
import request from '@/utils/request' |
|||
import { parseStrEmpty } from "@/utils/ruoyi"; |
|||
|
|||
// 查询用户列表
|
|||
export function listUser(query) { |
|||
return request({ |
|||
url: '/system/user/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询用户详细
|
|||
export function getUser(userId) { |
|||
return request({ |
|||
url: '/system/user/' + parseStrEmpty(userId), |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增用户
|
|||
export function addUser(data) { |
|||
return request({ |
|||
url: '/system/user', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改用户
|
|||
export function updateUser(data) { |
|||
return request({ |
|||
url: '/system/user/update', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除用户
|
|||
export function delUser(userId) { |
|||
return request({ |
|||
url: '/system/user/delete/' + userId, |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
// 用户密码重置
|
|||
export function resetUserPwd(userId, password) { |
|||
const data = { |
|||
userId, |
|||
password |
|||
} |
|||
return request({ |
|||
url: '/system/user/resetPwd', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 用户状态修改
|
|||
export function changeUserStatus(userId, status) { |
|||
const data = { |
|||
userId, |
|||
status |
|||
} |
|||
return request({ |
|||
url: '/system/user/changeStatus', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 查询用户个人信息
|
|||
export function getUserProfile() { |
|||
return request({ |
|||
url: '/system/user/profile', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 修改用户个人信息
|
|||
export function updateUserProfile(data) { |
|||
return request({ |
|||
url: '/system/user/profile', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 用户密码重置
|
|||
export function updateUserPwd(oldPassword, newPassword) { |
|||
const data = { |
|||
oldPassword, |
|||
newPassword |
|||
} |
|||
return request({ |
|||
url: '/system/user/profile/updatePwd', |
|||
method: 'put', |
|||
params: data |
|||
}) |
|||
} |
|||
|
|||
// 用户头像上传
|
|||
export function uploadAvatar(data) { |
|||
return request({ |
|||
url: '/system/user/profile/avatar', |
|||
method: 'post', |
|||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 查询授权角色
|
|||
export function getAuthRole(userId) { |
|||
return request({ |
|||
url: '/system/user/authRole/' + userId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 保存授权角色
|
|||
export function updateAuthRole(data) { |
|||
return request({ |
|||
url: '/system/user/authRole', |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
} |
|||
|
|||
// 查询部门下拉树结构
|
|||
export function deptTreeSelect() { |
|||
return request({ |
|||
url: '/system/user/deptTree', |
|||
method: 'get' |
|||
}) |
|||
} |
After Width: | Height: | Size: 4.8 KiB |
Loading…
Reference in new issue