فهرست منبع

数字资源 获取左侧人员列表

wangzhe 2 سال پیش
والد
کامیت
ba4ee2e214
2فایلهای تغییر یافته به همراه39 افزوده شده و 24 حذف شده
  1. 4 2
      src/api/leader.js
  2. 35 22
      src/views/leader.vue

+ 4 - 2
src/api/leader.js

@@ -9,9 +9,11 @@ export function getRy() {
 }
 
 // 获取左侧人员列表
-export function getForestLeader(linJob,linType) {
+// export function getForestLeader(linJob,linType) {
+export function getForestLeader() {
   return request({
-    url: '/center-resources/VisuForestLeaderController/getForestLeader?linJob='+linJob+"&linType="+linType,
+    // url: '/center-resources/VisuForestLeaderController/getForestLeader?linJob='+linJob+"&linType="+linType,
+    url: '/center-resources/VisuForestLeaderController/getForestLeader',
     method: 'get',
   })
 }

+ 35 - 22
src/views/leader.vue

@@ -15,24 +15,24 @@
             </div>
             <div class="i-list-con h-25">
               <div id="personnel-chart" style="width: 100%;height:12vh;"></div>
-              <div class="d-l-con-icon">
-                <div class="icon-con w-50" :class="{on:iconCurrentIndex1==item.jobValue}"
-                     v-for="(item,index) in visuForestCloudRYBO"
-                     @click="getForestLeader(item.jobValue,item.jobType)">
-                  <div class="icon icon-mid el-icon-user"></div>
-                  <div class="icon-text">
-                    <h5>{{ item.job }}</h5>
-                    <h6>{{ item.number }}</h6>
-                  </div>
-                </div>
-                <!-- <div class="icon-con w-50  m-btm-no" :class="{on:listCurrentIndex1==item.jobType}" v-for="(item,index) in visuForestCloudRYBO" v-if="index%2!=0" @click="getForestLeader(item.jobValue,item.jobType)">
-                <div class="icon icon-mid el-icon-user"></div>
-                <div class="icon-text">
-                  <h5>{{item.job}}</h5>
-                  <h6>{{item.number}}</h6>
-                </div>
-              </div> -->
-              </div>
+              <!--<div class="d-l-con-icon">-->
+                <!--<div class="icon-con w-50" :class="{on:iconCurrentIndex1==item.jobValue}"-->
+                     <!--v-for="(item,index) in visuForestCloudRYBO"-->
+                     <!--@click="getForestLeader(item.jobValue,item.jobType)">-->
+                  <!--<div class="icon icon-mid el-icon-user"></div>-->
+                  <!--<div class="icon-text">-->
+                    <!--<h5>{{ item.job }}</h5>-->
+                    <!--<h6>{{ item.number }}</h6>-->
+                  <!--</div>-->
+                <!--</div>-->
+                <!--&lt;!&ndash; <div class="icon-con w-50  m-btm-no" :class="{on:listCurrentIndex1==item.jobType}" v-for="(item,index) in visuForestCloudRYBO" v-if="index%2!=0" @click="getForestLeader(item.jobValue,item.jobType)">-->
+                <!--<div class="icon icon-mid el-icon-user"></div>-->
+                <!--<div class="icon-text">-->
+                  <!--<h5>{{item.job}}</h5>-->
+                  <!--<h6>{{item.number}}</h6>-->
+                <!--</div>-->
+              <!--</div> &ndash;&gt;-->
+              <!--</div>-->
             </div>
           </dv-border-box-13>
         </div>
@@ -68,7 +68,7 @@
           <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)" style="padding-bottom: 1rem;">
             <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;"/>
             <div class="this-title">
-              <span>巡林计划</span>
+              <span>巡查时段</span>
               <dv-decoration-3 style="width:150px;height:15px;margin-right: 1rem;"/>
             </div>
             <div class="i-list-con h-73">
@@ -229,9 +229,16 @@ export default {
         this.personnelChart()
       })
       //获取巡林计划
-      getPlanList().then(res => {
-        this.xunLinListOne = res.data
+      // getPlanList().then(res => {
+      //   this.xunLinListOne = res.data
+      // })
+      // 获取人员列表
+      // getForestLeader(linJob, linType).then(res => {
+      getForestLeader().then(res => {
+        this.peopleList = res.data;
       })
+      this.connectList = []
+      this.$refs.supermap.clearC()
     },
     //获取左侧人员列表
     getForestLeader(linJob, linType) {
@@ -240,7 +247,7 @@ export default {
       this.iconCurrentIndex1 = linJob
       this.peopleList = []
       getForestLeader(linJob, linType).then(res => {
-        this.peopleList = res.data
+        this.peopleList = res.data;
       })
       this.connectList = []
       this.$refs.supermap.clearC()
@@ -251,6 +258,12 @@ export default {
       let that = this
       this.connectList = []
       getLeaderTrack(userId).then(res => {
+        // this.xunLinListOne = res.data;
+        // 获取右侧轨迹列表
+        // getPlanList().then(res => {
+        //   this.xunLinListOne = res.data
+        // })
+
         if (res.data != null && res.data.length > 0) {
           for (let i = 0; i < res.data.length; i++) {
             let latlng = {