|
@@ -14,11 +14,11 @@
|
|
|
<div class="d-l-con-icon">
|
|
|
<div class="icon-con" :class="{on:iconCurrentIndex==item.resourceTable}"
|
|
|
v-for="(item,index) in resourcesList"
|
|
|
- v-on:click="indentleftSetMarkers(item.resourceTable)">
|
|
|
+ v-on:click="indentleftSetMarkers(item.key)">
|
|
|
<div class="iconfont icon icon-normal" :class="item.icon"></div>
|
|
|
<div class="icon-text">
|
|
|
<h6>{{ item.count }}</h6>
|
|
|
- <h5>{{ item.resourceName }}</h5>
|
|
|
+ <h5>{{ item.name }}</h5>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -43,13 +43,12 @@
|
|
|
<div class="i-list-con h-73">
|
|
|
<div class="overflow-y" style="height: 39vh">
|
|
|
<div class="d-l-con" :class="{on:listCurrentIndex==item.deptId}"
|
|
|
- v-for="(item,index) in deptGroupList"
|
|
|
- v-on:click="indentleftByDeptIdSetMarkers(item.deptId)">
|
|
|
+ v-for="(item,index) in deptGroupList">
|
|
|
<div class="d-l-l-text">
|
|
|
<i class="i-small"></i>
|
|
|
<h4>{{ item.deptName }}</h4>
|
|
|
</div>
|
|
|
- <div class="d-l-l-count">{{ item.count }}</div>
|
|
|
+ <div class="d-l-l-count">{{ item.eventCount }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="overflow-y" style="height: 34vh;">
|
|
@@ -76,7 +75,8 @@
|
|
|
import {
|
|
|
getResource,
|
|
|
getResourcePoint,
|
|
|
- getResourcePointByDeptId
|
|
|
+ getResourcePointByDeptId,
|
|
|
+ getFindAllType
|
|
|
} from '@/api/datacenter'
|
|
|
|
|
|
import supermap from '@/components/supermap' //超图
|
|
@@ -103,7 +103,8 @@ export default {
|
|
|
/** ----------------------------------底部按钮公用组件结束------------------------------------- */
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.getResource()
|
|
|
+ this.getResource();
|
|
|
+ // this.dataChat();
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -119,6 +120,7 @@ export default {
|
|
|
resourceTable: '',
|
|
|
//左侧资源
|
|
|
resourcesList: [],
|
|
|
+ // resourcesMap: {},
|
|
|
//右侧资源
|
|
|
deptGroupList: [],
|
|
|
source: [],
|
|
@@ -296,166 +298,68 @@ export default {
|
|
|
let that = this
|
|
|
//获取左侧菜单列表
|
|
|
getResource().then(res => {
|
|
|
- that.resourcesList = res.data
|
|
|
- //截取data.resourceTable字段中“_”分隔符最后一个作为关键字,重新拼接成前端需要的图标:class,格式sj-icon-xxxx,将其set回原数组
|
|
|
- res.data.forEach(function(data, index) {
|
|
|
- that.$set(that.resourcesList[index], 'icon', 'sj' + '-' + 'icon' + '-' + data
|
|
|
- .resourceTable.split('_').slice(-1))
|
|
|
- })
|
|
|
- console.log(that.resourcesList)
|
|
|
-
|
|
|
+ const resourcesMap = res.data;
|
|
|
+ for(let key in resourcesMap){
|
|
|
+ const map = {};
|
|
|
+ if(key == 'buzhu'){map.name="补助次数";}
|
|
|
+ if(key == 'gengdi'){map.name="耕地面积";}
|
|
|
+ if(key == 'hezuoshe'){map.name="合作社数量";}//
|
|
|
+ if(key == 'huafei'){map.name="化肥库存";}
|
|
|
+ if(key == 'nongji'){map.name="农机站数量";}//
|
|
|
+ if(key == 'nongju'){map.name="农具站数量";}//
|
|
|
+ if(key == 'xubao'){map.name="畜保站数量";}//
|
|
|
+ if(key == 'yangzhi'){map.name="养殖及粪污处理点";}//
|
|
|
+ if(key == 'zhibao'){map.name="植保数量";}
|
|
|
+ if(key == 'zhongzhi'){map.name="种植产量";}
|
|
|
+ if(key == 'zhongzi'){map.name="种子库存";}
|
|
|
+ map.icon='sj-icon-'+key;
|
|
|
+ map.count=resourcesMap[key];
|
|
|
+ map.key=key;
|
|
|
+ that.resourcesList.push(map);
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
- indentleftSetMarkers(resourceTable) {
|
|
|
- this.iconCurrentIndex = resourceTable
|
|
|
+ indentleftSetMarkers(type) {
|
|
|
let that = this
|
|
|
- that.resourceTable = resourceTable
|
|
|
- that.markersList = []
|
|
|
- that.source = []
|
|
|
- //点击左侧地图落点
|
|
|
- getResourcePoint(resourceTable).then(res => {
|
|
|
- that.deptGroupList = res.data.deptGroupList
|
|
|
- if (res.data.deptGroupList != null && res.data.deptGroupList.length > 0) {
|
|
|
- for (let i = 0; i < res.data.deptGroupList.length; i++) {
|
|
|
- let aa = [res.data.deptGroupList[i].deptName, res.data.deptGroupList[i].count]
|
|
|
- that.source.push(aa)
|
|
|
+ getFindAllType(type).then(res => {
|
|
|
+ that.deptGroupList = res.data.dept;
|
|
|
+ that.source = [];
|
|
|
+ //点击左侧地图落点
|
|
|
+ if (res.data != null && res.data.dept.length > 0) {
|
|
|
+ for (let i = 0; i < res.data.dept.length; i++) {
|
|
|
+ let aa = [res.data.dept[i].deptName, res.data.dept[i].eventCount];
|
|
|
+ that.source.push(aa);
|
|
|
}
|
|
|
}
|
|
|
- if (res.data.resourceList != null && res.data.resourceList.length > 0) {
|
|
|
- for (let i = 0; i < res.data.resourceList.length; i++) {
|
|
|
+ this.dataChat();
|
|
|
+ if (res.data != null && res.data.list.length > 0) {
|
|
|
+ for (let i = 0; i < res.data.list.length; i++) {
|
|
|
let markersMap = {
|
|
|
lng: 124.59,
|
|
|
lat: 43.02,
|
|
|
+
|
|
|
icon: 'marker',
|
|
|
bindPopupHtml: '',
|
|
|
click: '',
|
|
|
keepBindPopup: false,
|
|
|
isAggregation: false
|
|
|
}
|
|
|
- if (resourceTable == 'centerdata_t_forest_weatherstation') { //气象站
|
|
|
- markersMap.icon = 'sj-icon-map-qxz'
|
|
|
- markersMap.lng = res.data.resourceList[i].longitude
|
|
|
- markersMap.lat = res.data.resourceList[i].latitude
|
|
|
- markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>经纬度:' + res.data.resourceList[i].longitude + ',' + res
|
|
|
- .data.resourceList[i].latitude + '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>地址:' + res.data.resourceList[i].weatherstationAddress +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>联系人:' + res.data.resourceList[i].weatherstationPerson +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>电话:' + res.data.resourceList[i].weatherstationTel +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span></div>'
|
|
|
- } else if (resourceTable == 'centerdata_t_forest_farm') { //林场
|
|
|
- markersMap.icon = 'sj-icon-map-lc'
|
|
|
- markersMap.lng = res.data.resourceList[i].longitude
|
|
|
- markersMap.lat = res.data.resourceList[i].latitude
|
|
|
- markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>经纬度:' + res.data.resourceList[i].longitude + ',' + res
|
|
|
- .data.resourceList[i].latitude + '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>林场名称:' + res.data.resourceList[i].farmName + '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>联系人:' + res.data.resourceList[i].farmPerson + '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>电话:' + res.data.resourceList[i].farmTel + '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span></div>'
|
|
|
- } else if (resourceTable == 'centerdata_t_forest_landing') { //起降点
|
|
|
- markersMap.icon = 'sj-icon-map-qjd'
|
|
|
- markersMap.lng = res.data.resourceList[i].longitude
|
|
|
- markersMap.lat = res.data.resourceList[i].latitude
|
|
|
- markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>经纬度:' + res.data.resourceList[i].longitude + ',' + res
|
|
|
- .data.resourceList[i].latitude + '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>起降点名称:' + res.data.resourceList[i].landingName +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>联系人:' + res.data.resourceList[i].landingPerson +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>电话:' + res.data.resourceList[i].landingTel + '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span></div>'
|
|
|
- } else if (resourceTable == 'centerdata_t_forest_channel') { //水源渠道
|
|
|
- markersMap.icon = 'sj-icon-map-syqd'
|
|
|
- markersMap.lng = res.data.resourceList[i].longitude
|
|
|
- markersMap.lat = res.data.resourceList[i].latitude
|
|
|
+ if(type=='hezuoshe'||type=='nongji'||type=='nongju'||type=='xubao'||type=='yangzhi'){
|
|
|
+ markersMap.icon = 'sj-icon-map-qxz';
|
|
|
+ markersMap.lng = res.data.list[i].longitude;
|
|
|
+ markersMap.lat = res.data.list[i].latitude;
|
|
|
markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
|
'<span>' +
|
|
|
' <div class="d-l-con">' +
|
|
|
' <div class="d-l-l-text">' +
|
|
|
- ' <h4>经纬度:' + res.data.resourceList[i].longitude + ',' + res
|
|
|
- .data.resourceList[i].latitude + '</h4>' +
|
|
|
+ ' <h4>经纬度:' + res.data.list[i].longitude + ',' + res.data.list[i].latitude + '</h4>' +
|
|
|
' </div>' +
|
|
|
' </div>' +
|
|
|
' </span>' +
|
|
|
'<span>' +
|
|
|
' <div class="d-l-con">' +
|
|
|
' <div class="d-l-l-text">' +
|
|
|
- ' <h4>渠道名称:' + res.data.resourceList[i].channelName +
|
|
|
+ ' <h4>地址:' + res.data.list[i].address +
|
|
|
'</h4>' +
|
|
|
' </div>' +
|
|
|
' </div>' +
|
|
@@ -463,228 +367,19 @@ export default {
|
|
|
'<span>' +
|
|
|
' <div class="d-l-con">' +
|
|
|
' <div class="d-l-l-text">' +
|
|
|
- ' <h4>联系人:' + res.data.resourceList[i].channelPerson +
|
|
|
+ ' <h4>名称:' + res.data.list[i].name +
|
|
|
'</h4>' +
|
|
|
' </div>' +
|
|
|
' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>电话:' + res.data.resourceList[i].channelTel + '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span></div>'
|
|
|
- } else if (resourceTable == 'centerdata_t_forest_checkpoint') { //防火检查站
|
|
|
- markersMap.icon = 'sj-icon-map-fhjcz'
|
|
|
- markersMap.lng = res.data.resourceList[i].longitude
|
|
|
- markersMap.lat = res.data.resourceList[i].latitude
|
|
|
- markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>经纬度:' + res.data.resourceList[i].longitude + ',' + res
|
|
|
- .data.resourceList[i].latitude + '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>检查站名称:' + res.data.resourceList[i].checkpointName +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>地址:' + res.data.resourceList[i].checkpointAddress +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>联系人:' + res.data.resourceList[i].checkpointPerson +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>电话:' + res.data.resourceList[i].checkpointTel +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span></div>'
|
|
|
- } else if (resourceTable == 'centerdata_t_forest_waterintake') { //取水口
|
|
|
- markersMap.icon = 'sj-icon-map-qsk'
|
|
|
- markersMap.lng = res.data.resourceList[i].longitude
|
|
|
- markersMap.lat = res.data.resourceList[i].latitude
|
|
|
- markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>经纬度:' + res.data.resourceList[i].longitude + ',' + res
|
|
|
- .data.resourceList[i].latitude + '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>取水口名称:' + res.data.resourceList[i].waterintakeName +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>联系人:' + res.data.resourceList[i].waterintakePerson +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>电话:' + res.data.resourceList[i].waterintakeTel +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span></div>'
|
|
|
- } else if (resourceTable == 'centerdata_t_forest_watercrane') { //水鹤
|
|
|
- markersMap.icon = 'sj-icon-map-sh'
|
|
|
- markersMap.lng = res.data.resourceList[i].longitude
|
|
|
- markersMap.lat = res.data.resourceList[i].latitude
|
|
|
- markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>经纬度:' + res.data.resourceList[i].longitude + ',' + res
|
|
|
- .data.resourceList[i].latitude + '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>水鹤名称:' + res.data.resourceList[i].watercraneName +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>联系人:' + res.data.resourceList[i].watercranePerson +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>电话:' + res.data.resourceList[i].watercraneTel +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span></div>'
|
|
|
- } else if (resourceTable == 'centerdata_t_forest_firehydrant') { //消火栓
|
|
|
- markersMap.icon = 'sj-icon-map-xhs'
|
|
|
- markersMap.lng = res.data.resourceList[i].longitude
|
|
|
- markersMap.lat = res.data.resourceList[i].latitude
|
|
|
- markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>经纬度:' + res.data.resourceList[i].longitude + ',' + res
|
|
|
- .data.resourceList[i].latitude + '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>消火栓名称:' + res.data.resourceList[i].firehydrantName +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>地址:' + res.data.resourceList[i].firehydrantAddress +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>联系人:' + res.data.resourceList[i].firehydrantPerson +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>电话:' + res.data.resourceList[i].firehydrantTel +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span></div>'
|
|
|
- } else if (resourceTable == 'centerdata_t_forest_fireteam') { //森林防火队
|
|
|
- markersMap.icon = 'sj-icon-map-slfh'
|
|
|
- markersMap.lng = res.data.resourceList[i].longitude
|
|
|
- markersMap.lat = res.data.resourceList[i].latitude
|
|
|
- markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>经纬度:' + res.data.resourceList[i].longitude + ',' + res
|
|
|
- .data.resourceList[i].latitude + '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>森林防火队名称:' + res.data.resourceList[i].fireteamName +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>联系人:' + res.data.resourceList[i].fireteamPerson +
|
|
|
- '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
- ' </span>' +
|
|
|
- '<span>' +
|
|
|
- ' <div class="d-l-con">' +
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
- ' <h4>电话:' + res.data.resourceList[i].fireteamTel + '</h4>' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>' +
|
|
|
' </span></div>'
|
|
|
}
|
|
|
- that.markersList.push(markersMap)
|
|
|
}
|
|
|
}
|
|
|
- this.dataChat()
|
|
|
- that.$refs.supermap.clearM(false)
|
|
|
- that.$refs.supermap.setMarkers(that.markersList)
|
|
|
- })
|
|
|
+ that.$refs.supermap.clearM(false);
|
|
|
+ that.$refs.supermap.setMarkers(that.markersList);
|
|
|
+ });
|
|
|
},
|
|
|
- indentleftByDeptIdSetMarkers(deptId) {
|
|
|
+ indentleftByDeptIdSetMarkers(deptId) {//暂时无用
|
|
|
this.listCurrentIndex = deptId
|
|
|
let that = this
|
|
|
//点击左侧地图落点
|