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