|
@@ -2100,6 +2100,7 @@ import { getDahuaVideoServer } from "@/api/dahua/dahua";
|
|
import DHWs from "@/dahua/lib/DHWs";
|
|
import DHWs from "@/dahua/lib/DHWs";
|
|
import { selectConfigKey } from "@/api/system/config";
|
|
import { selectConfigKey } from "@/api/system/config";
|
|
import Cookies from "js-cookie";
|
|
import Cookies from "js-cookie";
|
|
|
|
+import {getBroadcast} from "@/api/datacenter";
|
|
export default {
|
|
export default {
|
|
dicts: ["task_source"],
|
|
dicts: ["task_source"],
|
|
watch: {
|
|
watch: {
|
|
@@ -2387,7 +2388,6 @@ export default {
|
|
},
|
|
},
|
|
// 获取消防左侧菜单列表
|
|
// 获取消防左侧菜单列表
|
|
fireControlViewList() {
|
|
fireControlViewList() {
|
|
- console.log(11111)
|
|
|
|
this.resourcesList = [];
|
|
this.resourcesList = [];
|
|
let _this = this;
|
|
let _this = this;
|
|
fireControlViewList("xiaofang").then(function (res) {
|
|
fireControlViewList("xiaofang").then(function (res) {
|
|
@@ -2418,6 +2418,13 @@ export default {
|
|
icon: "sj-icon-jkzx",
|
|
icon: "sj-icon-jkzx",
|
|
bg: "#f5ad1b",
|
|
bg: "#f5ad1b",
|
|
});
|
|
});
|
|
|
|
+ _this.resourcesList.push({
|
|
|
|
+ resourceName: "云广播",
|
|
|
|
+ type: "broadcast",
|
|
|
|
+ count: "1",
|
|
|
|
+ icon: "sj-icon-labaguangbo",
|
|
|
|
+ bg: "#0f0773",
|
|
|
|
+ });
|
|
});
|
|
});
|
|
},
|
|
},
|
|
/************************************责任制-开始****************************************/
|
|
/************************************责任制-开始****************************************/
|
|
@@ -2723,7 +2730,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
fireControlViewPoint(type) {
|
|
fireControlViewPoint(type) {
|
|
- // alert(type)
|
|
|
|
if (this.resourcesListCheck.indexOf(type) > -1) {
|
|
if (this.resourcesListCheck.indexOf(type) > -1) {
|
|
this.resourcesListCheck.splice(
|
|
this.resourcesListCheck.splice(
|
|
this.resourcesListCheck.indexOf(type),
|
|
this.resourcesListCheck.indexOf(type),
|
|
@@ -2740,7 +2746,7 @@ export default {
|
|
type: type,
|
|
type: type,
|
|
radius: this.radius,
|
|
radius: this.radius,
|
|
};
|
|
};
|
|
- if (type != "sxt") {
|
|
|
|
|
|
+ if (type != "sxt"&&type!="broadcast") {
|
|
fireControlViewPoint(param).then((res) => {
|
|
fireControlViewPoint(param).then((res) => {
|
|
if (res.data != null && res.data.pointList.length > 0) {
|
|
if (res.data != null && res.data.pointList.length > 0) {
|
|
this.resourcesListCheck.push(type);
|
|
this.resourcesListCheck.push(type);
|
|
@@ -2836,9 +2842,13 @@ export default {
|
|
this.$message.warning("当前点位附近无资源数据");
|
|
this.$message.warning("当前点位附近无资源数据");
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- } else {
|
|
|
|
|
|
+ }
|
|
|
|
+ else if(type=="sxt"){
|
|
this.listResourceByWz(type);
|
|
this.listResourceByWz(type);
|
|
}
|
|
}
|
|
|
|
+ else if(type=="broadcast"){
|
|
|
|
+ this.listResourceBybroadcast(type);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//设置联动部门不可选择本部门
|
|
//设置联动部门不可选择本部门
|
|
@@ -2987,6 +2997,139 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ listResourceBybroadcast(type) {
|
|
|
|
+ if (this.resourcesListCheck.indexOf(type) > -1) {
|
|
|
|
+ this.resourcesListCheck.splice(
|
|
|
|
+ this.resourcesListCheck.indexOf(type),
|
|
|
|
+ 1
|
|
|
|
+ );
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.$refs.supermapDialog.clearMByType(type);
|
|
|
|
+ }, 1000);
|
|
|
|
+ } else {
|
|
|
|
+ //搜索物资
|
|
|
|
+ let param = {
|
|
|
|
+ longitude: this.longitude,
|
|
|
|
+ latitude: this.latitude,
|
|
|
|
+ type: 5,
|
|
|
|
+ distance: this.radius,
|
|
|
|
+ };
|
|
|
|
+ getBroadcast(param).then(res => {
|
|
|
|
+ if(res.data!=null&&res.data.length==0){
|
|
|
|
+ this.$message.warning("设定范围内无该资源信息!")
|
|
|
|
+ }
|
|
|
|
+ if (res.data != null && res.data.length > 0) {
|
|
|
|
+ this.resourcesListCheck.push(type);
|
|
|
|
+ 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 (type == "qsk") {
|
|
|
|
+ markersMap.icon = "sj-icon-centerdata-t-forest-waterintake";
|
|
|
|
+ } else if (type == "sh") {
|
|
|
|
+ markersMap.icon = "sj-icon-centerdata-t-forest-watercrane";
|
|
|
|
+ } else if (type == "xfs") {
|
|
|
|
+ markersMap.icon = "sj-icon-centerdata-t-forest-firehydrant";
|
|
|
|
+ } else if (type == "qjd") {
|
|
|
|
+ markersMap.icon = "sj-icon-landing";
|
|
|
|
+ } else if (type == "jcz") {
|
|
|
|
+ markersMap.icon = "sj-icon-checkpoint";
|
|
|
|
+ } else if (type == "fhd") {
|
|
|
|
+ markersMap.icon = "sj-icon-fireteam";
|
|
|
|
+ } else if (type == "zdqy") {
|
|
|
|
+ markersMap.icon = "sj-icon-keyAreas";
|
|
|
|
+ } else if (type == "broadcast") {
|
|
|
|
+ markersMap.icon = "big-horn";
|
|
|
|
+ }
|
|
|
|
+ else if (type == "sxt") {
|
|
|
|
+ if (res.data[i].cameraUse == 1) {
|
|
|
|
+ if (res.data[i].workingStatus == '0') {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-centerdata-slmonitor'
|
|
|
|
+ markersMap.click='preview'
|
|
|
|
+ } else {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-not-centerdata-slmonitor'
|
|
|
|
+ markersMap.click=''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ else if (res.data[i].cameraUse == 2) {
|
|
|
|
+ if (res.data[i].workingStatus == '0') {
|
|
|
|
+ markersMap.icon = 'camera'
|
|
|
|
+ markersMap.click='preview'
|
|
|
|
+ } else {
|
|
|
|
+ markersMap.icon = 'camera-not'
|
|
|
|
+ markersMap.click=''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ else if (res.data[i].cameraUse == 3) {
|
|
|
|
+ if (res.data[i].workingStatus == '0') {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-centerdata-slmonitor-traffic'
|
|
|
|
+ markersMap.click='preview'
|
|
|
|
+ } else {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-not-centerdata-slmonitor-traffic'
|
|
|
|
+ markersMap.click=''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ else if (res.data[i].cameraUse == 5) {
|
|
|
|
+ if (res.data[i].workingStatus == '0') {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-centerdata-river_camera'
|
|
|
|
+ markersMap.click='preview'
|
|
|
|
+ } else {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-not-centerdata-river_camera'
|
|
|
|
+ markersMap.click=''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ else if (res.data[i].cameraUse == 4) {
|
|
|
|
+ if (res.data[i].workingStatus == '0') {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-centerdata-sand-quarry-camera'
|
|
|
|
+ markersMap.click='preview'
|
|
|
|
+ } else {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-not-centerdata-sand-quarry-camera'
|
|
|
|
+ markersMap.click=''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (res.data[i].cameraCode != null) {
|
|
|
|
+ // markersMap.click = "preview";
|
|
|
|
+ // markersMap.parameter = res.data[i].cameraCode
|
|
|
|
+ markersMap.parameter = {
|
|
|
|
+ code: res.data[i].cameraCode,
|
|
|
|
+ type: res.data[i].cameraFactory
|
|
|
|
+ ? res.data[i].cameraFactory
|
|
|
|
+ : 1,
|
|
|
|
+ name: res.data[i].cameraName,
|
|
|
|
+ };
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ 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);
|
|
|
|
+ }
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.$refs.supermapDialog.setMarkersByType(markersList, type);
|
|
|
|
+ }, 1000);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
// 返回图片列表
|
|
// 返回图片列表
|
|
assetTypeAnImage(filePath) {
|
|
assetTypeAnImage(filePath) {
|
|
let imageList = [];
|
|
let imageList = [];
|