Browse Source

水利人员轨迹

彭宇 2 years ago
parent
commit
39a4acf7ea
1 changed files with 6 additions and 7 deletions
  1. 6 7
      src/api/leader.js

+ 6 - 7
src/api/leader.js

@@ -9,24 +9,23 @@ export function getRy() {
 }
 
 // 获取左侧人员列表
-export function getTrafficLeader(linJob,linType) {
+export function getForestLeader(linJob,linType) {
   return request({
-    url: '/center-water/WaterController/getTrafficLeader?linJob='+linJob+"&linType="+linType,
+    url: '/center-water/VisuForestLeaderController/getForestLeader?linJob='+linJob+"&linType="+linType,
     method: 'get',
   })
 }
-
 // 巡林任务
-export function getPlanList(userId) {
+export function getWaterPlan(userId) {
   return request({
     url: '/center-data/task/getPlanList',
     method: 'post',
-    data: {userId:userId,type:'2'}
+    data: {userId:userId,type:'1'}
   })
 }
 
 // 巡林记录
-export function getRecordList(taskId) {
+export function getWaterRecord(taskId) {
   return request({
     url: '/center-data/record/list?taskId='+taskId,
     method: 'get',
@@ -34,7 +33,7 @@ export function getRecordList(taskId) {
 }
 
 // 巡林轨迹
-export function getPointList(recordId) {
+export function getWaterPoint(recordId) {
   return request({
     url: '/center-data/track/getTrack/'+recordId.toString(),
     method: 'get',