Browse Source

监控中心(有一个没动)

qinhouyu 1 year ago
parent
commit
c5bbbe59cc
2 changed files with 48 additions and 6 deletions
  1. 38 1
      src/api/monitor.js
  2. 10 5
      src/views/monitor.vue

+ 38 - 1
src/api/monitor.js

@@ -16,6 +16,16 @@ export function selectCameraByDeptId(deptId) {
     data:{"deptId":deptId}
   })
 }
+
+export function selectCameraByDeptId_direct(deptId) {
+  return request({
+    url: '/center-monitor/camera/selectCameraByDeptId',
+    method: 'post',
+    data: {
+      "deptId": deptId
+    }
+  })
+}
 // 获取重点区域列表
 export function selectKeyAreaList() {
   return request({
@@ -23,6 +33,15 @@ export function selectKeyAreaList() {
     method: 'get',
   })
 }
+export function selectKeyAreaList_direct() {
+  return request({
+    url: '/center-data/importarea/listImportareaFegin',
+    method: 'post',
+    data:{
+      areaType:5
+    }
+  })
+}
 // 获取重点区域
 export function getRegionalFlag(id) {
   return request({
@@ -37,7 +56,12 @@ export function getCamerasByDeptId(deptId) {
     method: 'get',
   })
 }
-
+export function getCamerasByDeptId_direct(deptId,deptProtype) {
+  return request({
+    url: `/center-monitor/TVWallController/getCamerasByDeptId?deptId=${deptId}&deptProtype=${deptProtype}`,
+    method: 'get',
+  })
+}
 //根据部门id查询部门及部门以下的数据,没有则默认查询所有
 export function getSensorListByDeptId(deptId) {
   return request({
@@ -74,6 +98,19 @@ export function getDlblistBydeptId(deptId) {
   })
 }
 
+export function getDlblistBydeptId_direct(deptId) {
+  let url = "";
+  if(deptId!=null){
+    url= '/center-monitor/broadcast/getDlblistBydeptId?deptId=' + deptId+'&type=5';
+  }else{
+    url= '/center-monitor/broadcast/getDlblistBydeptId/getDlblistBydeptId?type=5';
+  }
+  return request({
+    url: url,
+    method: 'get',
+  })
+}
+
 //根据部门id查询部门及部门以下的数据,没有则默认查询所有
 export function getMonitorDeviceAndDataList(deptId) {
   let url = "";

+ 10 - 5
src/views/monitor.vue

@@ -124,6 +124,10 @@
     selectCameraByDeptId,
     getSensorListByDeptId,
     getDlblistBydeptId,
+    getCamerasByDeptId_direct,
+    getDlblistBydeptId_direct,
+    selectCameraByDeptId_direct,
+    selectKeyAreaList_direct,
     selectKeyAreaList,
     getRegionalFlag,
     getCamerasByDeptId,
@@ -411,7 +415,8 @@
         // this.findCameraByDept(data.id)
         if (that.localMark == 'she') {
           that.selectCameraByDeptId(data.id);
-          getCamerasByDeptId(data.id).then(res => {
+          let deptProtype = null;
+          getCamerasByDeptId_direct(data.id,deptProtype).then((res) => {
             that.$refs.TVWalls.showTVWall(res.data, {
               longitude: data.deptLongitude,
               latitude: data.deptLatitude
@@ -461,7 +466,7 @@
       getDlblistBydeptId(deptId) {
         let that = this;
         let markersList = [];
-        getDlblistBydeptId(that.deptId).then(function(res) {
+        getDlblistBydeptId_direct(that.deptId).then(function(res) {
             // that.loudspeakerNum = res.data.length
             that.visuForestCloudCameraBOListSearch = []
             that.tempList = []
@@ -553,7 +558,7 @@
       getDlblistBydeptIds() {
         let that = this;
 
-        getDlblistBydeptId(that.deptId).then(function(res) {
+        getDlblistBydeptId_direct(that.deptId).then(function(res) {
             that.loudspeakerNum = res.data.length
           })
           .catch(function(error) {
@@ -1050,7 +1055,7 @@
         this.keyAreaList = []
         //获取重点区域列表
         let that = this
-        selectKeyAreaList().then(res => {
+        selectKeyAreaList_direct().then(res => {
           that.keyAreaList = res.data
         })
       },
@@ -1312,7 +1317,7 @@
         let that = this
         that.cameraMarkersList = []
         that.visuForestCloudCameraBOList = []
-        selectCameraByDeptId(depId).then(res => {
+        selectCameraByDeptId_direct(depId).then((res) => {
           //根据设备类型查看列表
           that.visuForestCloudCameraBOList = res.data
           that.visuForestCloudCameraBOListSearch = res.data