|
@@ -240,6 +240,7 @@
|
|
|
:isSideBySide="false"
|
|
|
:isdynamicPlotting="true"
|
|
|
@preview="preview"
|
|
|
+ @jump="jump"
|
|
|
:mapToolShowBH="mapToolShowBH"
|
|
|
/>
|
|
|
<!-- <supermapDialog ref="supermapDialog" -->
|
|
@@ -2027,6 +2028,7 @@ import { getIconBg } from "@/api/components/sookaMapIcon"; //资源底色控制
|
|
|
import request from "@/utils/request";
|
|
|
|
|
|
import {
|
|
|
+ fireControlViewPoint_ygb,
|
|
|
fireControlViewPoint,
|
|
|
fireControlViewList,
|
|
|
getEventDetail,
|
|
@@ -2313,6 +2315,10 @@ export default {
|
|
|
/** ----------------------------------摄像头预览结束------------------------------------- */
|
|
|
},
|
|
|
methods: {
|
|
|
+ jump() {
|
|
|
+ // 跳转云广播页面
|
|
|
+ window.open("https://sts.sty1818.com");
|
|
|
+ },
|
|
|
closedEventDiaTool() {
|
|
|
document.addEventListener("click", (e) => {
|
|
|
let b = document.getElementById("eventMapToolOnly");
|
|
@@ -2375,6 +2381,13 @@ export default {
|
|
|
icon: "sj-icon-jkzx",
|
|
|
bg: "#f5ad1b",
|
|
|
});
|
|
|
+ _this.resourcesList.push({
|
|
|
+ resourceName: "云广播",
|
|
|
+ type: "ygb",
|
|
|
+ count: "1",
|
|
|
+ icon: "sj-icon-labaguangbo",
|
|
|
+ bg: "#841bf5",
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
/************************************责任制-开始****************************************/
|
|
@@ -2697,7 +2710,54 @@ export default {
|
|
|
type: type,
|
|
|
radius: this.radius,
|
|
|
};
|
|
|
- if (type != "sxt") {
|
|
|
+ if (type == "sxt"){
|
|
|
+ this.listResourceByWz(type);
|
|
|
+ }else if(type == "ygb"){
|
|
|
+ let params = {
|
|
|
+ longitude: this.longitude,
|
|
|
+ latitude: this.latitude,
|
|
|
+ type:7,
|
|
|
+ // distance: 500000000000000000
|
|
|
+ distance: this.radius
|
|
|
+ }
|
|
|
+ fireControlViewPoint_ygb(params).then(res => {
|
|
|
+ console.log('云广播=',res)
|
|
|
+ let markersList = []
|
|
|
+ for (let i = 0; i < res.data.length; i++) {
|
|
|
+ let markersMap = {
|
|
|
+ lng: 124.59,
|
|
|
+ lat: 43.02,
|
|
|
+ icon: 'big-horn',
|
|
|
+ bindPopupHtml: '',
|
|
|
+ click: 'jump',
|
|
|
+ parameter: '',
|
|
|
+ keepBindPopup: false,
|
|
|
+ isAggregation: false
|
|
|
+ }
|
|
|
+ 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].name + '</h4>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </div>' +
|
|
|
+ ' </span>' +
|
|
|
+ '</div>'
|
|
|
+ markersList.push(markersMap)
|
|
|
+ console.log("markersMap=", markersMap)
|
|
|
+ }
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.supermapDialog1.setMarkersByType(markersList, type)
|
|
|
+ }, 1000)
|
|
|
+ })
|
|
|
+ } else {
|
|
|
fireControlViewPoint(param).then((res) => {
|
|
|
if (res.data != null && res.data.pointList.length > 0) {
|
|
|
this.resourcesListCheck.push(type);
|
|
@@ -2793,8 +2853,6 @@ export default {
|
|
|
this.$message.warning("当前点位附近无资源数据");
|
|
|
}
|
|
|
});
|
|
|
- } else {
|
|
|
- this.listResourceByWz(type);
|
|
|
}
|
|
|
}
|
|
|
},
|