import request from '@/utils/request' // 获取左侧动态感知设备 export function selectDeviceType() { return request({ url: '/center-agriculture/monitor/selectDeviceType', method: 'post', }) } // 根据设备类型查看列表 export function selectCameraByDeptId(deptId) { return request({ url: '/center-agriculture/monitor/selectCameraByDeptId', method: 'post', data: { "deptId": deptId } }) } // 获取重点区域 export function selectKeyAreaList() { return request({ url: '/center-data/importarea/listImportareaFegin', method: 'post', data: { areaType: "6" } }) } //获取点位周边摄像头 export function findCameraByEventCoordinate(longitude, latitude) { // longitude = '124.41986560821533'; // latitude = '43.08817137032747'; return request({ url: '/center-traffic/traffic/findCameraByEventCoordinate?longitude=' + longitude + "&latitude=" + latitude + "&type=1", method: 'get', }) } //根据部门ID获取具有查看权限的摄像头 export function getCamerasByDeptId(deptId) { return request({ url: '/center-traffic/traffic/getCamerasByDeptId?deptId=' + deptId, method: 'get', }) } //转到固定点位 export function rotation(lng, lat, list) { // lng = '124.41986560821533'; // lat = '43.08817137032747'; return request({ url: '/center-traffic/traffic/rotation', method: 'post', data: { lng: lng, lat: lat, list: list } }) } // 获取重点区域 export function getRegionalFlag(id) { return request({ url: '/center-fire/VisuForestCloudMapController/getRegionalFlag/' + id, method: 'get', }) } //根据部门id查询部门及部门以下的数据,没有则默认查询所有 export function getSensorListByDeptId(deptId) { return request({ url: '/center-fire/VisuForestMonitorCenterController/getSensorListByDeptId?deptId=' + deptId, method: 'get', }) } //根据部门id查询部门及部门以下的数据,没有则默认查询所有 export function getDlblistBydeptId(deptId) { let url = ""; if(deptId!=null){ url= '/center-fire/VisuForestMonitorCenterController/getDlblistBydeptId?deptId=' + deptId; }else{ url= '/center-fire/VisuForestMonitorCenterController/getDlblistBydeptId'; } return request({ url: url, method: 'get', }) } //根据部门id查询部门及部门以下的数据,没有则默认查询所有 export function getMonitorDeviceAndDataList(deptId) { let url = ""; if(deptId!=null){ url= '/center-monitor/device/getMonitorDeviceAndDataList?deptId=' + deptId+"&type=7"; }else{ url= '/center-monitor/device/getMonitorDeviceAndDataList'+"&type=7"; } return request({ url: url, method: 'get', }) }