| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- import request from '@/utils/request'
- // 查询人员管理列表
- export function listPeople(query) {
- return request({
- url: '/peopleManage/people/list',
- method: 'get',
- params: query
- })
- }
- // 查询人员管理详细
- export function getPeople(id) {
- return request({
- url: '/peopleManage/people/' + id,
- method: 'get'
- })
- }
- // 新增人员管理
- export function addPeople(data) {
- return request({
- url: '/peopleManage/people',
- method: 'post',
- data: data
- })
- }
- // 修改人员管理
- export function updatePeople(data) {
- return request({
- url: '/peopleManage/people',
- method: 'put',
- data: data
- })
- }
- // 删除人员管理
- export function delPeople(id) {
- return request({
- url: '/peopleManage/people/' + id,
- method: 'delete'
- })
- }
- // 导出人员管理
- export function exportPeople(query) {
- return request({
- url: '/peopleManage/people/export',
- method: 'get',
- params: query
- })
- }
- // 查询部门
- export function getDept(query) {
- return request({
- url: '/system/dept/list',
- method: 'get',
- params: query
- })
- }
- // 查询部门下拉树结构
- export function treeselect() {
- return request({
- url: '/system/dept/treeselect',
- method: 'get'
- })
- }
|