|
@@ -2086,6 +2086,7 @@ import {
|
|
|
eventExamine,
|
|
|
eventHandling,
|
|
|
initByCameras,
|
|
|
+ getSelectNearHorn
|
|
|
} from "@/api/forest";
|
|
|
import { joinConferences } from "@/api/meeting";
|
|
|
import { treeselectAll as deptTreeselect } from "@/api/system/dept";
|
|
@@ -2412,6 +2413,13 @@ export default {
|
|
|
icon: "sj-icon-jkzx",
|
|
|
bg: "#f5ad1b",
|
|
|
});
|
|
|
+ _this.resourcesList1.push({
|
|
|
+ resourceName: "云广播",
|
|
|
+ type: "ygb",
|
|
|
+ count: "1",
|
|
|
+ icon: "sj-icon-labaguangbo",
|
|
|
+ bg: "#0f0773",
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
/************************************责任制-开始****************************************/
|
|
@@ -2734,7 +2742,7 @@ export default {
|
|
|
type: type,
|
|
|
radius: this.radius,
|
|
|
};
|
|
|
- if (type != "sxt") {
|
|
|
+ if (type != "sxt" && type != 'ygb') {
|
|
|
fireControlViewPoint(param).then((res) => {
|
|
|
if (res.data != null && res.data.pointList.length > 0) {
|
|
|
this.resourcesListCheck.push(type);
|
|
@@ -2831,11 +2839,57 @@ export default {
|
|
|
this.$message.warning("当前点位附近无资源数据");
|
|
|
}
|
|
|
});
|
|
|
- } else {
|
|
|
+ } else if (type == 'sxt') {
|
|
|
this.listResourceByWz(type);
|
|
|
+ } else if (type == 'ygb'){
|
|
|
+ this.getSelectNearHorn('ygb')
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ // 地图功能 云广播类型资源
|
|
|
+ async getSelectNearHorn(type){
|
|
|
+ let params = {
|
|
|
+ longitude: this.longitude,
|
|
|
+ latitude: this.latitude,
|
|
|
+ type:1,
|
|
|
+ distance: this.radius
|
|
|
+ }
|
|
|
+ let res = await getSelectNearHorn(params)
|
|
|
+ var markersList = []
|
|
|
+ for (let i = 0; i < res.data.length; i++) {
|
|
|
+ let markersMap = {
|
|
|
+ lng: 124.59,
|
|
|
+ lat: 43.02,
|
|
|
+ icon: 'marker',
|
|
|
+ bindPopupHtml: '',
|
|
|
+ click: '',
|
|
|
+ parameter: '',
|
|
|
+ keepBindPopup: false,
|
|
|
+ isAggregation: true
|
|
|
+ }
|
|
|
+ if(res.data[i].broadcastUse == '1'){
|
|
|
+ markersMap.icon = 'big-horn-emergency'
|
|
|
+ }else if (res.data[i].broadcastUse == '2') {
|
|
|
+ markersMap.icon = 'big-horn'
|
|
|
+ }
|
|
|
+ markersMap.lng = res.data[i].longitude
|
|
|
+ markersMap.lat = res.data[i].latitude
|
|
|
+ markersMap.bindPopupHtml = '<div class="map-tip">' +
|
|
|
+ '<span>' +
|
|
|
+ ' <div class="d-l-con">' +
|
|
|
+ ' <div class="d-l-l-text">' +
|
|
|
+ ' <h4>资源名称:' + res.data[i].cameraName + '</h4>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </span>' +
|
|
|
+ '</div>'
|
|
|
+ markersList.push(markersMap)
|
|
|
+ }
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.supermapDialog1.setMarkersByType(markersList, type)
|
|
|
+ }, 1000)
|
|
|
+ console.log('云广播资源',res)
|
|
|
+ },
|
|
|
listResourceByWz(type) {
|
|
|
if (this.resourcesListCheck.indexOf(type) > -1) {
|
|
|
this.resourcesListCheck.splice(
|