zhitong.yu
8 天以前 378d781e6f35f89652aa36e079a8b7fc44cea77e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { ResPage, User } from "@/api/interface/index";
import http from "@/api";
 
/**
 * @name 部门管理模块
 */
// 获取部门列表信息
export const getDepartmentList = (params: User.ReqUserParams) => {
  return http.post<ResPage<User.ResUserList>>(`/Department/FindDepartmentInfo`, params);
};
 
// 新增部门
export const addDepartment = (params: { id: string }) => {
  return http.post(`/Department/add`, params);
};
 
// 编辑部门
export const editDepartment = (params: { id: string }) => {
  return http.post(`/Department/update`, params);
};
 
// 删除部门
export const deleteDepartment = (params: { id: string[] }) => {
  return http.post(`/Department/delete`, params);
};
 
// 部门下拉列表
export const DepartmentAutocomplete = (params: { companyid: any }) => {
  return http.post(`/Department/DepartmentAutocomplete`, params);
};
 
// 获取部门详细信息
export const FindOneDepartMent = (params: User.ReqUserParams) => {
  return http.post<ResPage<User.ResUserList>>(`/Department/FindOneDepartMent`, params);
};