Explorar el Código

数字水利 轨迹落点

wangzhe hace 2 años
padre
commit
78169c13c6
Se han modificado 2 ficheros con 14 adiciones y 9 borrados
  1. 2 2
      src/api/leader.js
  2. 12 7
      src/views/leader.vue

+ 2 - 2
src/api/leader.js

@@ -38,9 +38,9 @@ export function getWaterRecord(id, reiverLengthId) {
   })
 }
 // 点击右巡查监测点记录获取 巡查轨迹落点
-export function getWaterPoint(planId, reiverLengthId) {
+export function getWaterPoint(recordId) {
   return request({
-    url: '/center-water/VisuForestLeaderController/getWaterPoint?planId='+planId+'&reiverLengthId='+reiverLengthId,
+    url: '/center-water/VisuForestLeaderController/getWaterPoint?id='+recordId,
     method: 'get',
   })
 }

+ 12 - 7
src/views/leader.vue

@@ -85,13 +85,13 @@
                         <div class="d-l-l-count">({{ item.recordCount }}-{{ item.planCount }})</div>
                       </div>
                     </template>
-                    <div class="d-l-con this-child sj-collapse" @click="getWaterPoint(child.id, child.reiverLengthId)" v-for="(child,index) in recordList" >
+                    <div class="d-l-con this-child sj-collapse" @click="getWaterPoint(child.id)" v-for="(child,index) in recordList" >
                       <div class="d-l-l-text" >
                         <h4>{{child.beginTime}} - {{child.endTime}}</h4>
                       </div>
                       <!--<div class="d-l-l-count">{{index}}</div>-->
                     </div>
-                    <div class="d-l-con this-child sj-collapse" v-if="recordList == null || recordList == '' || recordList == []">
+                    <div class="d-l-con this-child sj-collapse" v-if="showNothing && (recordList == null || recordList == '' || recordList == [])">
                       <div class="d-l-l-text" >
                         <h4 class="text-gray">暂无信息</h4>
                       </div>
@@ -166,6 +166,7 @@ export default {
       connectList: [], //画线
       xunLinListOne: [], //巡林计划
       recordList: [], //巡林记录
+      showNothing: false, //暂无信息
       zrs: 0, //总人数
       zxrs: 0 //在线人数
     }
@@ -277,25 +278,29 @@ export default {
     },
     //点击左侧人员列表获取 巡查监测点计划
     getWaterPlan(reiverLengthId) {
+      this.showNothing = false;
       this.recordList = [];
       getWaterPlan(reiverLengthId).then(res => {
         console.log("计划",res.data);
         this.xunLinListOne = res.data;
       })
+      this.$refs.supermap.clearC()
     },
     //点击左侧巡查监测点计划获取 巡查记录
     getWaterRecord(id, reiverLengthId) {
+      this.showNothing = true;
       getWaterRecord(id, reiverLengthId).then(res => {
         console.log(id+"=id, 记录 reiverLengthId="+reiverLengthId);
         console.log("记录",res.data);
         this.recordList = res.data;
       })
+      this.$refs.supermap.clearC()
     },
-    //点击左侧巡查监测点计划获取 巡查记录
-    getWaterPoint(id, reiverLengthId) {
-      console.log(id+"=id, 落点 reiverLengthId="+reiverLengthId);
-      getWaterPoint(id, reiverLengthId).then(res => {
-        console.log("落点",res.data);
+    //点击左侧巡查监测点计划获取 轨迹落点
+    getWaterPoint(id) {
+      // console.log(id+"=id, 落点");
+      getWaterPoint(id).then(res => {
+        // console.log("落点",res.data);
         this.getPointList(res);
         // this.pointList = res.data;
       })