瀏覽代碼

环保人员轨迹

彭宇 2 年之前
父節點
當前提交
70effd98bd
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. 1 1
      src/api/leader.js
  2. 5 5
      src/views/leader.vue

+ 1 - 1
src/api/leader.js

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

+ 5 - 5
src/views/leader.vue

@@ -18,14 +18,14 @@
 							<div class="d-l-con-icon">
 								<div class="icon-con w-50" :class="{on:iconCurrentIndex1==item.jobValue}"
 									v-for="(item,index) in visuForestCloudRYBO"
-									@click="getTrafficLeader(item.jobValue,item.jobType)">
+									@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="getTrafficLeader(item.jobValue,item.jobType)">
+								<!-- <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>
@@ -137,7 +137,7 @@
 
 <script>
 	import {
-		getTrafficLeader,
+		getForestLeader,
 		getPlanList,
 		getRecordList,
 		getPointList,
@@ -279,12 +279,12 @@
 				})
 			},
 			//获取左侧人员列表
-			getTrafficLeader(linJob, linType) {
+			getForestLeader(linJob, linType) {
 				this.listCurrentIndex1 = ''
 				this.listCurrentIndex2 = ''
 				this.iconCurrentIndex1 = linJob
 				this.peopleList = []
-				getTrafficLeader(linJob, linType).then(res => {
+				getForestLeader(linJob, linType).then(res => {
 					this.peopleList = res.data
 				})
 				this.connectList = []