people.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import request from '@/utils/request'
  2. // 获取区域地址
  3. export function getTree(data) {
  4. return request({
  5. url: '/system/web/position/findChongqingArea',
  6. method: 'post',
  7. data: data
  8. })
  9. }
  10. //归属人管理列表
  11. export function listPeople(data) {
  12. return request({
  13. url: '/system/web/farmer/searchByPage',
  14. method: 'post',
  15. data: data
  16. })
  17. }
  18. //归属人删除
  19. export function delPerson(data) {
  20. return request({
  21. url: '/system/web/farmer/delete',
  22. method: 'post',
  23. data: data
  24. })
  25. }
  26. //查询归属区域
  27. export function listArea(datas) {
  28. return request({
  29. url: '/system/web/area/searchByPage',
  30. method: 'post',
  31. data: datas
  32. })
  33. }
  34. //归属人保存
  35. export function saverAreaPeople(datas) {
  36. return request({
  37. url: '/system/web/farmer/save',
  38. method: 'post',
  39. data: datas
  40. })
  41. }
  42. //归属人跟新
  43. export function updateAreaPeople(datas) {
  44. return request({
  45. url: '/system/web/farmer/update',
  46. method: 'post',
  47. data: datas
  48. })
  49. }