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' }) }