jhprjv2/ruoyi-ui/src/api/publics.js

48 lines
866 B
JavaScript
Raw Normal View History

2023-08-10 21:09:49 +08:00
import request from '@/utils/request'
// 获取部门
2023-08-12 12:18:27 +08:00
const getMyDeptList = () => {
2023-08-10 21:09:49 +08:00
return request({
2023-08-12 12:18:27 +08:00
url: '/publics/deptList',
2023-08-10 21:09:49 +08:00
method: 'get'
})
}
// 查询部门下拉树结构
2023-08-12 12:18:27 +08:00
const getDeptTree = () => {
2023-08-10 21:09:49 +08:00
return request({
url: '/publics/deptTree',
method: 'get'
})
}
2023-08-12 12:18:27 +08:00
// 查询子公司列表
const getZgsDeptList = () => {
return request({
url: '/publics/queryZgsDeptList',
method: 'get'
})
}
2023-08-10 21:09:49 +08:00
// 获取项目
2023-08-12 12:18:27 +08:00
const getMyProjectList = () => {
2023-08-10 21:09:49 +08:00
return request({
url: '/publics/projectList',
method: 'get'
})
}
// 获取人员
2023-08-12 12:18:27 +08:00
const getUserList = (data) => {
2023-08-10 21:09:49 +08:00
return request({
url: '/publics/userList',
method: 'get',
params: data
})
}
2023-08-12 12:18:27 +08:00
export default{
getMyDeptList,
getDeptTree,
getZgsDeptList,
getMyProjectList,
getUserList
}