|
@@ -5,6 +5,7 @@ export function selectDeviceType() {
|
|
|
return request({
|
|
|
url: '/center-resources/VisuForestMonitorCenterController/selectDeviceType',
|
|
|
method: 'post',
|
|
|
+ data:{type:6}
|
|
|
})
|
|
|
}
|
|
|
// 根据设备类型查看列表
|
|
@@ -70,15 +71,28 @@ export function getSensorListByDeptId(deptId) {
|
|
|
}
|
|
|
//根据部门id查询部门及部门以下的数据,没有则默认查询所有
|
|
|
export function getDlblistBydeptId(deptId) {
|
|
|
+ let url = "";
|
|
|
+ if(deptId!=null){
|
|
|
+ url= '/center-firecontrol/VisuForestMonitorCenterController/getDlblistBydeptId?deptId=' + deptId+'&type=6';
|
|
|
+ }else{
|
|
|
+ url= '/center-firecontrol/VisuForestMonitorCenterController/getDlblistBydeptId?type=6';
|
|
|
+ }
|
|
|
return request({
|
|
|
- url: '/center-resources/VisuForestMonitorCenterController/getDlblistBydeptId?deptId=' + deptId,
|
|
|
+ url: url,
|
|
|
method: 'get',
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
//根据部门id查询部门及部门以下的数据,没有则默认查询所有
|
|
|
export function getMonitorDeviceAndDataList(deptId) {
|
|
|
+ let url = "";
|
|
|
+ if(deptId!=null){
|
|
|
+ url= '/center-monitor/device/getMonitorDeviceAndDataList?deptId=' + deptId+'&type=6';
|
|
|
+ }else{
|
|
|
+ url= '/center-monitor/device/getMonitorDeviceAndDataList?type=6';
|
|
|
+ }
|
|
|
return request({
|
|
|
- url: '/center-monitor/device/getMonitorDeviceAndDataList?deptId='+ deptId,
|
|
|
+ url: url,
|
|
|
method: 'get',
|
|
|
})
|
|
|
}
|