123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- import request from '@/utils/request'
- // 获取左侧动态感知设备
- export function selectDeviceType(param) {
- return request({
- url: '/sooka-middlevisualization/visuMiddleVisualizationController/selectDeviceType',
- method: 'post',
- data:param
- })
- }
- // 根据设备类型查看列表
- export function selectCameraByDeptId(deptId) {
- return request({
- url: '/center-monitor/camera/selectCameraByDeptId',
- method: 'post',
- data:{"deptId":deptId,
- cameraUse: "1,2,3,4,5,7",
- type:18}
- })
- }
- // 查看摄像头详情
- export function selectByCameraId(id) {
- return request({
- url: `/center-monitor/camera/s/${id}`,
- method: 'get',
- })
- }
- // 查看传感器详情
- export function selectByDeviceId(id) {
- return request({
- url: `/center-monitor/device/selectByDeviceId/${id}`,
- method: 'get',
- })
- }
- // 查看云广播详情
- export function selectByBroadcastId(id) {
- return request({
- url: `/center-monitor/broadcast/selectByBroadcastId/${id}`,
- method: 'get',
- })
- }
- // 获取重点区域列表
- export function selectKeyAreaList() {
- return request({
- url: '/center-data/importarea/listImportareaFegin',
- method: 'post',
- data:{
- areaType:1
- }
- })
- }
- // 获取重点区域
- export function getRegionalFlag(id) {
- return request({
- url: '/center-data/importarea/getRegionalFlagFeign/' + id,
- method: 'get',
- })
- }
- // // 查询部门经纬度在摄像头半径范围内的摄像头列表(暂时不用 但不要删除)
- // export function findCameraByDept(deptId) {
- // return request({
- // url: '/center-fire/VisuForestEventCenterController/findCameraByDept',
- // method: 'post',
- // data: {deptId:deptId,type:'1'}
- // })
- // }
- //获取点位周边摄像头
- export function findCameraByEventCoordinate(longitude,latitude) {
- // longitude = '124.41986560818533';
- // latitude = '43.08817137032747';
- return request({
- url: '/center-fire/VisuForestMonitorCenterController/findCameraByEventCoordinate?longitude='+longitude+"&latitude="+latitude+"&type=18",
- method: 'get',
- })
- }
- //转到固定点位
- export function rotation(lng,lat,list) {
- // lng = '124.41986560818533';
- // lat = '43.08817137032747';
- return request({
- url: '/center-monitor/DahuaController/rotation?lng='+lng+'&lat='+lat+'&list='+list,
- method: 'get'
- // data:{
- // lng:lng,
- // lat:lat,
- // list:list
- // }
- })
- }
- //根据部门ID获取具有查看权限的摄像头
- export function getCamerasByDeptId(deptId,cameraUse) {
- return request({
- url: '/center-monitor/TVWallController/getCamerasByDeptId?deptId=' + deptId+'&cameraUse=' + cameraUse+'&deptProtype=2'+'&type=18',
- method: 'get',
- })
- }
- //根据部门id查询部门及部门以下的数据,没有则默认查询所有
- export function getSensorListByDeptId(deptId) {
- return request({
- url: '/center-monitor/device/getSensorListByDeptId?deptId=' +deptId +'&type=18',
- method: 'get',
- })
- }
- // //根据部门id查询部门及部门以下的数据,没有则默认查询所有
- // export function getDlblistBydeptId(deptId) {
- // return request({
- // url: '/center-firecontrol/VisuForestMonitorCenterController/getDlblistBydeptId?deptId=' + deptId,
- // method: 'get',
- // })
- // }
- //
- // //根据部门id查询部门及部门以下的数据,没有则默认查询所有
- // export function getMonitorDeviceAndDataList(deptId) {
- // return request({
- // url: '/center-monitor/device/getMonitorDeviceAndDataList?deptId=' + deptId,
- // method: 'get',
- // })
- // }
- //根据部门id查询部门及部门以下的数据,没有则默认查询所有
- export function getDlblistBydeptId(deptId) {
- let url = "";
- if(deptId!=null){
- url= '/center-monitor/broadcast/getDlblistBydeptId?deptId=' + deptId+"&type=18";
- }else{
- url= '/center-monitor/broadcast/getDlblistBydeptId?type=18';
- }
- return request({
- url: url,
- method: 'get',
- })
- }
- //根据部门id查询部门及部门以下的数据,没有则默认查询所有
- export function getMonitorDeviceAndDataList(deptId) {
- let url = "";
- if(deptId!=null){
- url= '/center-monitor/device/getMonitorDeviceAndDataList?deptId=' + deptId+"&type=18";
- }else{
- url= '/center-monitor/device/getMonitorDeviceAndDataList?type=18';
- }
- return request({
- url: url,
- method: 'get',
- })
- }
- //根据部门id查询部门及部门以下的数据,没有则默认查询所有
- export function selectRecorderByDeptId(param) {
- return request({
- url: '/center-monitor/camera/selectCameraByDeptId',
- method: 'post',
- data:param
- })
- }
- // 查询摄像头、传感器、执法设备数量
- export function selectCreamedAndDeviceCount() {
- return request({
- url: '/center-unobtrusive/unobtrusive/enterprise/selectCreamedAndDeviceCount',
- method: 'get'
- })
- }
|