|
@@ -3,7 +3,7 @@ import request from '@/utils/request'
|
|
// 获取左侧动态感知设备
|
|
// 获取左侧动态感知设备
|
|
export function selectDeviceType(deptId) {
|
|
export function selectDeviceType(deptId) {
|
|
return request({
|
|
return request({
|
|
- url: '/center-resources/VisuForestMonitorCenterController/selectDeviceType',
|
|
|
|
|
|
+ url: '/center-resources/VisuForestMonitorCenterController/selectDeviceType',//有逻辑
|
|
method: 'post',
|
|
method: 'post',
|
|
data:{"deptId":deptId}
|
|
data:{"deptId":deptId}
|
|
})
|
|
})
|
|
@@ -11,16 +11,24 @@ export function selectDeviceType(deptId) {
|
|
// 根据设备类型查看列表
|
|
// 根据设备类型查看列表
|
|
export function selectCameraByDeptId(deptId) {
|
|
export function selectCameraByDeptId(deptId) {
|
|
return request({
|
|
return request({
|
|
- url: '/center-resources/VisuForestMonitorCenterController/selectCameraByDeptId',
|
|
|
|
|
|
+ // url: '/center-resources/VisuForestMonitorCenterController/selectCameraByDeptId',
|
|
|
|
+ url: '/center-monitor/camera/selectCameraByDeptId',//无逻辑
|
|
method: 'post',
|
|
method: 'post',
|
|
- data:{"deptId":deptId}
|
|
|
|
|
|
+ // data:{"deptId":deptId}
|
|
|
|
+ data:{
|
|
|
|
+ "deptId":deptId,
|
|
|
|
+ "type":7,
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
// 获取重点区域列表
|
|
// 获取重点区域列表
|
|
export function selectKeyAreaList() {
|
|
export function selectKeyAreaList() {
|
|
return request({
|
|
return request({
|
|
- url: '/center-resources/VisuForestCloudMapController/importarealistFegin',
|
|
|
|
- method: 'get',
|
|
|
|
|
|
+ // url: '/center-resources/VisuForestCloudMapController/importarealistFegin',
|
|
|
|
+ url: '/center-data/importarea/listImportareaFegin',//无逻辑
|
|
|
|
+ // method: 'get',
|
|
|
|
+ method: 'post',
|
|
|
|
+ data:{"areaType":7}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
// 获取重点区域
|
|
// 获取重点区域
|
|
@@ -35,7 +43,7 @@ export function findCameraByEventCoordinate(longitude,latitude) {
|
|
// longitude = '124.41986560821533';
|
|
// longitude = '124.41986560821533';
|
|
// latitude = '43.08817137032747';
|
|
// latitude = '43.08817137032747';
|
|
return request({
|
|
return request({
|
|
- url: '/center-resources/VisuForestMonitorCenterController/findCameraByEventCoordinate?longitude='+longitude+"&latitude="+latitude+"&type=1",
|
|
|
|
|
|
+ url: '/center-resources/VisuForestMonitorCenterController/findCameraByEventCoordinate?longitude='+longitude+"&latitude="+latitude+"&type=1",//有逻辑
|
|
method: 'get',
|
|
method: 'get',
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -45,8 +53,10 @@ export function rotation(lng,lat,list) {
|
|
// lng = '124.41986560821533';
|
|
// lng = '124.41986560821533';
|
|
// lat = '43.08817137032747';
|
|
// lat = '43.08817137032747';
|
|
return request({
|
|
return request({
|
|
- url: '/center-resources/VisuForestMonitorCenterController/rotation',
|
|
|
|
- method: 'post',
|
|
|
|
|
|
+ // url: '/center-resources/VisuForestMonitorCenterController/rotation',
|
|
|
|
+ url: '/center-monitor/VisuForestMonitorCenterController/rotation',//无逻辑
|
|
|
|
+ // method: 'post',
|
|
|
|
+ method: 'get',
|
|
data:{
|
|
data:{
|
|
lng:lng,
|
|
lng:lng,
|
|
lat:lat,
|
|
lat:lat,
|
|
@@ -57,16 +67,25 @@ export function rotation(lng,lat,list) {
|
|
//根据部门ID获取具有查看权限的摄像头
|
|
//根据部门ID获取具有查看权限的摄像头
|
|
export function getCamerasByDeptId(deptId) {
|
|
export function getCamerasByDeptId(deptId) {
|
|
return request({
|
|
return request({
|
|
- url: '/center-resources/VisuForestMonitorCenterController/getCamerasByDeptId?deptId=' + deptId,
|
|
|
|
|
|
+ // url: '/center-resources/VisuForestMonitorCenterController/getCamerasByDeptId?deptId=' + deptId,
|
|
|
|
+ url: '/center-monitor/TVWallController/getCamerasByDeptId',//无逻辑
|
|
method: 'get',
|
|
method: 'get',
|
|
|
|
+ data:{
|
|
|
|
+ deptId:deptId,
|
|
|
|
+ deptProtype:2
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
//根据部门id查询部门及部门以下的数据,没有则默认查询所有
|
|
//根据部门id查询部门及部门以下的数据,没有则默认查询所有
|
|
export function getSensorListByDeptId(deptId) {
|
|
export function getSensorListByDeptId(deptId) {
|
|
return request({
|
|
return request({
|
|
- url: '/center-resources/VisuForestMonitorCenterController/getSensorListByDeptId?deptId=' + deptId,
|
|
|
|
|
|
+ // url: '/center-resources/VisuForestMonitorCenterController/getSensorListByDeptId?deptId=' + deptId,
|
|
|
|
+ url: '/center-monitor/device/getSensorListByDeptId',//无逻辑
|
|
method: 'get',
|
|
method: 'get',
|
|
|
|
+ data:{
|
|
|
|
+ deptId:deptId
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
//根据部门id查询部门及部门以下的数据,没有则默认查询所有
|
|
//根据部门id查询部门及部门以下的数据,没有则默认查询所有
|