飞天云平台-国产化
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.3 KiB

2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
2 months ago
1 month ago
  1. import request from '@/utils/request'
  2. import qs from 'qs'
  3. export function add(data) {
  4. return request({
  5. url: 'api/person/editPersonInfo',
  6. method: 'post',
  7. data
  8. })
  9. }
  10. export function edit(data) {
  11. return request({
  12. url: 'api/person/editPersonInfo',
  13. method: 'post',
  14. data
  15. })
  16. }
  17. export function del(data) {
  18. return request({
  19. url: 'api/person/deletePersonInfos',
  20. method: 'post',
  21. data
  22. })
  23. }
  24. // 根据id查看人员详细信息
  25. export function FetchPersonInfoById(params) {
  26. return request({
  27. url: 'api/person/getPersonInfoById' + '?' + qs.stringify(params, { indices: false }),
  28. method: 'get'
  29. })
  30. }
  31. // 更改人员类型
  32. export function FetchChangePersonInfo(data) {
  33. return request({
  34. url: 'api/person/changePersonInfo',
  35. method: 'post',
  36. data
  37. })
  38. }
  39. // 人脸查询
  40. export function FetchFindPersonFace(data) {
  41. return request({
  42. url: 'api/person/findPersonFace',
  43. method: 'post',
  44. data
  45. })
  46. }
  47. // 批量上传人员
  48. export function FetchBatchSavePersonInfos(data) {
  49. return request({
  50. url: 'api/person/batchSavePersonInfos',
  51. method: 'post',
  52. data
  53. })
  54. }
  55. export default {
  56. add,
  57. edit,
  58. del,
  59. FetchPersonInfoById,
  60. FetchChangePersonInfo,
  61. FetchFindPersonFace,
  62. FetchBatchSavePersonInfos
  63. }