24 lines
615 B
TypeScript
24 lines
615 B
TypeScript
|
import request from '@/utils/request';
|
||
|
//获取所有角色
|
||
|
export function getAlarm (queryParams:any){
|
||
|
return request({
|
||
|
url: '/basedata/substation-device/getAlarmThresholdPage' ,
|
||
|
method: 'get',
|
||
|
params:queryParams
|
||
|
});
|
||
|
}
|
||
|
//获取所有角色
|
||
|
export function getSubstation (){
|
||
|
return request({
|
||
|
url: '/basedata/substation/getSubstationTree' ,
|
||
|
method: 'get',
|
||
|
});
|
||
|
}
|
||
|
//批量修改警告阈值
|
||
|
export function updateAlarm(params:any){
|
||
|
return request({
|
||
|
url: 'basedata/substation-device/updateBatchDevice' ,
|
||
|
method: 'post',
|
||
|
data:params
|
||
|
});
|
||
|
}
|