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