screenFront/src/http/electronicControl/index.ts

23 lines
618 B
TypeScript
Raw Normal View History

2023-05-18 06:57:42 +00:00
/*
* @Author: hzz hzz
* @Date: 2023-05-12 16:37:42
* @LastEditors: hzz hzz
* @LastEditTime: 2023-05-18 09:08:30
* @FilePath: \screenFront\src\http\electronicControl\index.ts
* @Description:
*
* Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
*/
2023-05-12 08:41:33 +00:00
import {get,post} from "@/utils/http"
//获取电控分厂数据
export function getElectronDevice(){
2023-08-03 03:37:01 +00:00
return get('/screen/device/electronDevice')
2023-05-12 08:41:33 +00:00
}
//通过depId 获取设备状态
2023-05-18 06:57:42 +00:00
export function getElectronDeviceStatus(deptId:string,alarmType:string = 'offline'){
2023-08-03 03:37:01 +00:00
return get('/screen/alarm/getAlarmListByDeptId',{deptId,alarmType})
2023-05-12 08:41:33 +00:00
}