彭宇 2 år sedan
förälder
incheckning
7ea0e3bbc5
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. 2 2
      src/api/leader.js
  2. 1 1
      src/views/leader.vue

+ 2 - 2
src/api/leader.js

@@ -32,9 +32,9 @@ export function getPlanList(userId) {
 }
 
 // 巡林记录
-export function getRecordList(taskId) {
+export function getRecordList(taskId,userId) {
   return request({
-    url: '/center-data/record/list?taskId='+taskId,
+    url: '/center-data/record/list?taskId='+taskId+'&userId='+userId,
     method: 'get',
   })
 }

+ 1 - 1
src/views/leader.vue

@@ -368,7 +368,7 @@
       getRecordList(id, patrolTrajectory) {
         this.showNothing = false;
         this.recordList = [];
-        getRecordList(id).then(res => {
+        getRecordList(id,this.personId).then(res => {
           this.recordList = res.data;
         })
         this.$refs.supermap.clearC();