leader.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import request from '@/utils/request'
  2. // 获取左侧
  3. export function getRy() {
  4. return request({
  5. url: '/center-firecontrol/VisuForestCloudMapController/getRy',
  6. method: 'post',
  7. })
  8. }
  9. // 获取左侧人员列表
  10. export function getForestLeader(linJob,linType) {
  11. return request({
  12. url: '/center-firecontrol/VisuForestLeaderController/getPersonList?linJob='+linJob+"&linType="+linType,
  13. method: 'get',
  14. })
  15. }
  16. // 点击左侧人员列表获取轨迹
  17. export function getLeaderTrack(trackById) {
  18. return request({
  19. url: '/center-firecontrol/VisuForestLeaderController/getLeaderTrack?trackById=' + trackById,
  20. method: 'get',
  21. })
  22. }
  23. // 巡林任务
  24. export function getPlanList(userId) {
  25. return request({
  26. url: '/center-data/task/getPlanList',
  27. method: 'post',
  28. data: {userId:userId,type:'5'}
  29. })
  30. }
  31. // 巡林记录
  32. export function getRecordList(taskId) {
  33. return request({
  34. url: '/center-data/record/list?taskId='+taskId,
  35. method: 'get',
  36. })
  37. }
  38. // 巡林轨迹
  39. export function getPointList(recordId) {
  40. return request({
  41. url: '/center-data/track/getTrack/'+recordId.toString(),
  42. method: 'get',
  43. })
  44. }