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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import { ResPage, User } from "@/api/interface/index";
import http from "@/api";
 
/**
 * @name 人员管理模块
 */
// 获取人员列表信息
export const getPersonList = (params: User.ReqUserParams) => {
  return http.post<ResPage<User.ResUserList>>(`/Person/FindPersonInfo`, params);
};
// 获取车辆列表信息
export const getCarList = (params: User.ReqUserParams) => {
  return http.post<ResPage<User.ResUserList>>(`/Person/FindCarInfo`, params);
};
// 获取物资列表信息
export const getMaterialsList = (params: User.ReqUserParams) => {
  return http.post<ResPage<User.ResUserList>>(`/Person/FindMaterialsInfo`, params);
};
 
// 新增人员
export const addPerson = (params: { id: string }) => {
  return http.post(`/Person/add`, params);
};
//录入固定人脸
export const AddFacePerson = (params: { id: string }) => {
  return http.post(`http://10.8.4.7:8081/hxzkuwb/AddGuDingFacePerson`, params);
};
//录入访客人脸
export const AddSuiJiFacePerson = (params: { id: string }) => {
  return http.post(`http://10.8.4.7:8081/hxzkuwb/AddSuiJiFacePerson`, params);
};
// 删除人脸照片
export const ShouDongShanChu = (params: { id: string }) => {
  return http.post(`http://10.8.4.7:8081/hxzkuwb/ShouDongShanChu`, params);
};
// 编辑人员
export const editPerson = (params: { id: string }) => {
  return http.post(`/Person/update`, params);
};
 
// 删除人员
export const deletePerson = (params: { id: string[] }) => {
  return http.post(`/Person/delete`, params);
};
 
// 定位的人员
export const PersonPosition = () => {
  return http.post(`/Person/PersonPosition`, { loading: false });
};
 
// 实时位置人员信息
export const RealPosition = () => {
  return http.post(`/Person/RealPosition`, { loading: false });
};
 
// 实时位置人员信息
export const RealPosition2D = () => {
  return http.post(`/Person/RealPosition2D`, { loading: false });
};
 
//根据人员名称或者编号查询详细信息
export const FindOnePersonInfo = (params: { ptagid: string }) => {
  return http.post(`/Person/FindOnePersonInfo`, params);
};
 
// 人员名称自动补全
export const PersonNameAutocomplete = () => {
  return http.post(`/Person/PersonNameAutocomplete`);
};