提交 | 用户 | 时间
|
ebc552
|
1 |
import request from '@/config/axios' |
L |
2 |
|
|
3 |
export interface MmPredictAlarmConfigVO { |
|
4 |
id: string |
|
5 |
title: string, |
|
6 |
alarmObj: string, |
|
7 |
itemId: string, |
|
8 |
outId: string, |
|
9 |
compLength: number, |
|
10 |
upperLimit: number, |
|
11 |
lowerLimit: number, |
|
12 |
unit: string, |
|
13 |
coefficient: number, |
|
14 |
scheduleId: string, |
|
15 |
isEnable: number, |
|
16 |
creator: string, |
|
17 |
createTime: Date, |
|
18 |
updater: string, |
|
19 |
updateTime: Date, |
|
20 |
} |
|
21 |
|
|
22 |
export interface MmPredictAlarmConfigPageReqVO extends PageParam { |
|
23 |
title?: string |
|
24 |
} |
|
25 |
|
|
26 |
// 查询MmPredictAlarmConfig列表 |
|
27 |
export const getMmPredictAlarmConfigPage = (params: MmPredictAlarmConfigPageReqVO) => { |
|
28 |
return request.get({ url: '/model/pre/alarm-config/page', params }) |
|
29 |
} |
|
30 |
|
|
31 |
// 查询MmPredictAlarmConfig详情 |
|
32 |
export const getMmPredictAlarmConfig = (id: number) => { |
|
33 |
return request.get({ url: `/model/pre/alarm-config/get/${id}`}) |
|
34 |
} |
|
35 |
|
|
36 |
// 新增MmPredictAlarmConfig |
|
37 |
export const createMmPredictAlarmConfig = (data: MmPredictAlarmConfigVO) => { |
|
38 |
return request.post({ url: '/model/pre/alarm-config/create', data }) |
|
39 |
} |
|
40 |
|
|
41 |
// 修改MmPredictAlarmConfig |
|
42 |
export const updateMmPredictAlarmConfig = (data: MmPredictAlarmConfigVO) => { |
|
43 |
return request.put({ url: '/model/pre/alarm-config/update', data }) |
|
44 |
} |
|
45 |
|
|
46 |
// 删除MmPredictAlarmConfig |
|
47 |
export const deleteMmPredictAlarmConfig = (id: number) => { |
|
48 |
return request.delete({ url: '/model/pre/alarm-config/delete?id=' + id }) |
|
49 |
} |
|
50 |
|
|
51 |
|
|
52 |
// 查询getPredictAlarmConfigList详情 |
|
53 |
export const getPredictAlarmConfigList = () => { |
|
54 |
return request.get({ url: `/model/pre/alarm-config/list`}) |
|
55 |
} |