|
@@ -223,6 +223,10 @@ import {
|
|
|
getRegionalFlag,
|
|
|
getCamerasByDeptId,
|
|
|
getMonitorDeviceAndDataList,
|
|
|
+ getCamerasByDeptId_direct,
|
|
|
+ getDlblistBydeptId_direct,
|
|
|
+ selectKeyAreaList_direct,
|
|
|
+ selectCameraByDeptId_direct,
|
|
|
} from "@/api/monitor";
|
|
|
import { treeselect } from "@/api/system/dept";
|
|
|
import supermap from "@/components/supermap-2.5d"; //超图
|
|
@@ -802,36 +806,6 @@ export default {
|
|
|
this.$refs.supermap.setMarkers(markersList);
|
|
|
}, 2000);
|
|
|
},
|
|
|
-
|
|
|
- // setcgqValue: function() {
|
|
|
- // let that = this
|
|
|
- // for (let i = 0; i < that.visuForestCloudCameraBOListSearch.length; i++) {
|
|
|
- // var color = "green";
|
|
|
- // var value = Math.random();
|
|
|
- // var up = "▲";
|
|
|
- // var down = "▼";
|
|
|
- // if (value > 0.5) {
|
|
|
- // color = "red";
|
|
|
- // value = value + "" + up;
|
|
|
- // } else {
|
|
|
- // value = value + "" + down;
|
|
|
- // }
|
|
|
- // that.cgqData.push("<span style='color:" + color + "'>" + value + "</span>")
|
|
|
- // }
|
|
|
- // setInterval(function() {
|
|
|
- // var color = "green";
|
|
|
- // var value = Math.random();
|
|
|
- // var up = "▲";
|
|
|
- // var down = "▼";
|
|
|
- // if (value > 0.5) {
|
|
|
- // color = "red";
|
|
|
- // value = value + "" + up;
|
|
|
- // } else {
|
|
|
- // value = value + "" + down;
|
|
|
- // }
|
|
|
- // that.cgqData = "<span style='color:" + color + "'>" + value + "</span>";
|
|
|
- // }, 1000)
|
|
|
- // },
|
|
|
/* 电视墙替换开始 */
|
|
|
showTVWall(channelCode, channelName,type) {
|
|
|
let tvListJson = [
|
|
@@ -902,7 +876,8 @@ export default {
|
|
|
// this.findCameraByDept(data.id)
|
|
|
if (that.localMark == "she") {
|
|
|
that.selectCameraByDeptId(data.id);
|
|
|
- getCamerasByDeptId(data.id).then((res) => {
|
|
|
+ let deptProtype = '2';
|
|
|
+ getCamerasByDeptId_direct(data.id,deptProtype).then((res) => {
|
|
|
that.$refs.TVWalls.showTVWall(res.data, {
|
|
|
longitude: data.deptLongitude,
|
|
|
latitude: data.deptLatitude,
|
|
@@ -960,7 +935,7 @@ export default {
|
|
|
getDlblistBydeptId(deptId) {
|
|
|
let that = this;
|
|
|
let markersList = [];
|
|
|
- getDlblistBydeptId(deptId)
|
|
|
+ getDlblistBydeptId_direct(deptId)
|
|
|
.then(function (res) {
|
|
|
that.loudspeakerNum = res.data.length;
|
|
|
that.visuForestCloudCameraBOListSearch = [];
|
|
@@ -1058,7 +1033,7 @@ export default {
|
|
|
getDlblistBydeptIds(deptId) {
|
|
|
let that = this;
|
|
|
|
|
|
- getDlblistBydeptId(deptId)
|
|
|
+ getDlblistBydeptId_direct(deptId)
|
|
|
.then(function (res) {
|
|
|
that.loudspeakerNum = res.data.length;
|
|
|
})
|
|
@@ -1150,7 +1125,7 @@ export default {
|
|
|
this.keyAreaList = [];
|
|
|
//获取重点区域列表
|
|
|
let that = this;
|
|
|
- selectKeyAreaList().then((res) => {
|
|
|
+ selectKeyAreaList_direct().then((res) => {
|
|
|
that.keyAreaList = res.data;
|
|
|
});
|
|
|
},
|
|
@@ -1447,7 +1422,7 @@ export default {
|
|
|
let that = this;
|
|
|
that.cameraMarkersList = [];
|
|
|
that.visuForestCloudCameraBOList = [];
|
|
|
- selectCameraByDeptId(depId).then((res) => {
|
|
|
+ selectCameraByDeptId_direct(depId).then((res) => {
|
|
|
//根据设备类型查看列表
|
|
|
that.visuForestCloudCameraBOList = res.data;
|
|
|
that.visuForestCloudCameraBOListSearch = res.data;
|