diff --git a/src/api/waring/index.ts b/src/api/waring/index.ts new file mode 100644 index 0000000..b6b0ca2 --- /dev/null +++ b/src/api/waring/index.ts @@ -0,0 +1,27 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { waringVo } from './types'; + +/** + * 获取报警列表 + * + * @param params status状态 + */ +export function getWarList(params: number): AxiosPromise { + return request({ + url: '/dc/dcBusiAlertJob/list/'+params, + method: 'get' + }); +} + +/** + * 获取报警列表确认 + * + * @param params id + */ +export function process(id: string) { + return request({ + url: '/dc/dcBusiAlertJob/process/' + id, + method: 'post', + }); +} diff --git a/src/api/waring/types.ts b/src/api/waring/types.ts new file mode 100644 index 0000000..b5be01c --- /dev/null +++ b/src/api/waring/types.ts @@ -0,0 +1,19 @@ +/** + * 设备列表 + */ +export interface waringVo { + alertFirstTime: string; + alertLastTime: string; + alertLevel: number; + alertName: string; + alertTime:string + alertReadTime: string; + deviceName: string; + deviceUuid: string; + id: number; + paramCode: string; + paramName: string; + processStatus: number; + processUserId: number; + totalCounts: number; +} diff --git a/src/assets/iconfont/demo_index.html b/src/assets/iconfont/demo_index.html index 93760d0..6b7300d 100644 --- a/src/assets/iconfont/demo_index.html +++ b/src/assets/iconfont/demo_index.html @@ -54,6 +54,18 @@