Commit 9ad3843f authored by Hagsn3's avatar Hagsn3

加入非分页查询全部接口

parent 65be1b8e
......@@ -6,9 +6,10 @@ import Qs from 'qs'
* 2.删除部门
* 3.修改部门
* 4.修改部门状态
* 5.查询部门列表
* 6.查询部门列表(排除节点)
* 7.查询部门详细
* 5.分页查询部门列表
* 6.查询部门列表
* 7.查询部门列表(排除节点)
* 8.查询部门详细
* -----------------
* 10.查询部门下拉树结构
* 11.查询子部门
......@@ -62,7 +63,7 @@ export function statusChange(data) {
})
}
// 5.查询部门列表
// 5.分页查询部门列表
export function listDept(query) {
return request({
url: '/system/dept/list',
......@@ -70,8 +71,15 @@ export function listDept(query) {
params: query
})
}
// 6.查询部门列表
export function getListDept() {
return request({
url: 'system/role/listAll',
method: 'get'
})
}
// 6.查询部门列表(排除节点)
// 7.查询部门列表(排除节点)
export function listDeptExcludeChild(deptId) {
return request({
url: '/system/dept/list/exclude/' + deptId,
......@@ -79,7 +87,7 @@ export function listDeptExcludeChild(deptId) {
})
}
// 7.查询部门详细
// 8.查询部门详细
export function getDept(deptId) {
return request({
url: '/system/dept/detail/' + deptId,
......@@ -147,3 +155,4 @@ export function transformDept(data) {
})
}
......@@ -6,19 +6,20 @@ import Qs from 'qs'
* 1.新增用户
* 2.修改用户
* 3.删除用户
* 4.查询用户列表
* 5.导入用户信息
* 6.导出用户
* 7.下载用户导入模板
* 4.分页查询用户列表
* 5.查询用户列表
* 6.导入用户信息
* 7.导出用户
* 8.下载用户导入模板
* -----------------------------
* 8.查询用户详细
* 9.用户密码重置
* 10.用户状态修改
* 11.查询用户个人信息
* 12.修改用户个人信息
* 13.用户密码修改
* 14.用户头像上传
* 15.下载错误文件
* 9.查询用户详细
* 10.用户密码重置
* 11.用户状态修改
* 12.查询用户个人信息
* 13.修改用户个人信息
* 14.用户密码修改
* 15.用户头像上传
* 16.下载错误文件
* */
// 1.新增用户
......@@ -49,7 +50,7 @@ export function delUser(userId) {
method: 'delete'
})
}
// 4.查询用户列表
// 4.分页查询用户列表
export function listUser(query) {
return request({
url: '/system/user/list',
......@@ -57,8 +58,15 @@ export function listUser(query) {
params: query
})
}
// 5.查询用户列表
export function getListUser() {
return request({
url: 'system/role/listAll',
method: 'get'
})
}
// 5.导入用户信息
// 6.导入用户信息
export function importExcel(data) {
return request({
url: '/system/user/importExcel',
......@@ -73,7 +81,7 @@ export function importExcel(data) {
})
}
// 6.导出用户
// 7.导出用户
export function exportUser(query) {
return request({
url: '/system/user/export',
......@@ -82,7 +90,7 @@ export function exportUser(query) {
responseType: 'blob'
})
}
// 7.下载用户导入模板
// 8.下载用户导入模板
export function importTemplate(params) {
return request({
url: '/system/user/importTemplate',
......@@ -92,7 +100,7 @@ export function importTemplate(params) {
})
}
// 8.查询用户详细
// 9.查询用户详细
export function getUser(userId) {
return request({
url: '/system/user/' + praseStrEmpty(userId),
......@@ -100,7 +108,7 @@ export function getUser(userId) {
})
}
// 9.用户密码重置
// 10.用户密码重置
export function resetUserPwd(businessId, password) {
const data = {
businessId,
......@@ -113,7 +121,7 @@ export function resetUserPwd(businessId, password) {
})
}
// 10.用户状态修改
// 11.用户状态修改
export function changeUserStatus(businessId, flag) {
const data = {
businessId,
......@@ -126,7 +134,7 @@ export function changeUserStatus(businessId, flag) {
})
}
// 11.查询用户个人信息
// 12.查询用户个人信息
export function getUserProfile() {
return request({
url: '/system/user/profile',
......@@ -134,7 +142,7 @@ export function getUserProfile() {
})
}
// 12.修改用户个人信息
// 13.修改用户个人信息
export function updateUserProfile(data) {
return request({
url: 'system/user/profile',
......@@ -143,7 +151,7 @@ export function updateUserProfile(data) {
})
}
// 13.用户密码修改
// 14.用户密码修改
export function updateUserPwd(data) {
return request({
url: '/system/user/updatePwd',
......@@ -152,7 +160,7 @@ export function updateUserPwd(data) {
})
}
// 14.用户头像上传
// 15.用户头像上传
export function uploadAvatar(data) {
return request({
url: '/system/user/profile/avatar',
......@@ -161,7 +169,7 @@ export function uploadAvatar(data) {
})
}
// 15.下载错误文件
// 16.下载错误文件
export function uploadFalseFile(params) {
params = Qs.stringify(params)
return request({
......
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