123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- import request from '@/utils/request'
- // 获取左侧动态感知设备
- export function selectDeviceType(deptId) {
- return request({
- url: '/center-resources/VisuForestMonitorCenterController/selectDeviceType',
- method: 'post',
- data:{"deptId":deptId}
- })
- }
- // 根据设备类型查看列表
- export function selectCameraByDeptId(deptId) {
- return request({
- url: '/center-resources/VisuForestMonitorCenterController/selectCameraByDeptId',
- method: 'post',
- data:{"deptId":deptId}
- })
- }
- // 获取重点区域列表
- export function selectKeyAreaList() {
- return request({
- url: '/center-resources/VisuForestCloudMapController/importarealistFegin',
- method: 'get',
- })
- }
- // 获取重点区域
- export function getRegionalFlag(id) {
- return request({
- url: '/center-data/importarea/getRegionalFlagFeign/' + id,
- method: 'get',
- })
- }
- //获取点位周边摄像头
- export function findCameraByEventCoordinate(longitude,latitude) {
- // longitude = '124.41986560821533';
- // latitude = '43.08817137032747';
- return request({
- url: '/center-resources/VisuForestMonitorCenterController/findCameraByEventCoordinate?longitude='+longitude+"&latitude="+latitude+"&type=1",
- method: 'get',
- })
- }
- //转到固定点位
- export function rotation(lng,lat,list) {
- // lng = '124.41986560821533';
- // lat = '43.08817137032747';
- return request({
- url: '/center-resources/VisuForestMonitorCenterController/rotation',
- method: 'post',
- data:{
- lng:lng,
- lat:lat,
- list:list
- }
- })
- }
- //根据部门ID获取具有查看权限的摄像头
- export function getCamerasByDeptId(deptId) {
- return request({
- url: '/center-resources/VisuForestMonitorCenterController/getCamerasByDeptId?deptId=' + deptId,
- method: 'get',
- })
- }
- //根据部门id查询部门及部门以下的数据,没有则默认查询所有
- export function getSensorListByDeptId(deptId) {
- return request({
- url: '/center-resources/VisuForestMonitorCenterController/getSensorListByDeptId?deptId=' + deptId,
- method: 'get',
- })
- }
- //根据部门id查询部门及部门以下的数据,没有则默认查询所有
- export function getDlblistBydeptId(deptId) {
- let url = "";
- if(deptId!=null){
- url= '/center-firecontrol/VisuForestMonitorCenterController/getDlblistBydeptId?deptId=' + deptId+'&type=7';
- }else{
- url= '/center-firecontrol/VisuForestMonitorCenterController/getDlblistBydeptId?type=7';
- }
- 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',
- })
- }
- //未覆盖区域
- export function notCoverPlaces(deptId) {
- return request({
- url: `/center-data/camera/getList?deptId=${deptId}`,
- method: 'get',
- })
- }
|