소스 검색

水利人员轨迹

彭宇 2 년 전
부모
커밋
39a4acf7ea
1개의 변경된 파일6개의 추가작업 그리고 7개의 파일을 삭제
  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',