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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
| import request from '@/config/axios'
|
| export interface MmPredictItemVO {
| id: string,
| itemtypename: string,
| mmPredictItem: {
| id: string,
| itemno: string,
| itemname: string,
| caltypeid: string,
| itemtypeid: string,
| predictlength: string,
| granularity: number,
| status: string,
| isfuse: number,
| predictphase: string,
| workchecked: number,
| unittransfactor: string,
| saveindex: string
| },
| dmModuleItem: {
| id: string,
| moduleid: string,
| itemid: string,
| itemorder: number,
| status: number,
| categoryid: string
| },
| mmItemOutput: {
| id: string,
| itemid: string,
| pointid: string,
| resulttableid: string,
| tagname: string,
| outputorder: number
| },
| mmPredictModel: {
| id: string,
| modelno: string,
| modelname: string,
| itemid: string,
| arithid: string,
| trainsamplength: string,
| predictsamplength: string,
| isonlinetrain: string,
| modelpath: string,
| isnormal: string,
| normalmax: string,
| normalmin: string,
| status: number,
| classname: string,
| methodname: string,
| modelparamstructure: string,
| resultstrid: string,
| settingmap: string
| },
| mmPredictMergeItem: {
| id: string,
| itemid: string,
| expression: string,
| num: string
| },
| modelparamtypeList: [],
| mmModelArithSettingsList: [],
| mmModelParamList: []
| }
|
| export interface MmPredictItemPageReqVO extends PageParam {
| itemno?: string,
| itemname?: string,
| }
|
| // 查询MmPredictItem列表
| export const getMmPredictItemPage = (params: MmPredictItemPageReqVO) => {
| return request.get({ url: '/model/pre/predict-item/page', params })
| }
|
| // 查询MmPredictItem详情
| export const getMmPredictItem = (id: number) => {
| return request.get({ url: `/model/pre/predict-item/get/${id}`})
| }
|
| // 新增MmPredictItem
| export const createMmPredictItem = (data: MmPredictItemVO) => {
| return request.post({ url: '/model/pre/predict-item/create', data })
| }
|
| // 修改MmPredictItem
| export const updateMmPredictItem = (data: MmPredictItemVO) => {
| return request.put({ url: '/model/pre/predict-item/update', data })
| }
|
| // 删除MmPredictItem
| export const deleteMmPredictItem = (id: number) => {
| return request.delete({ url: '/model/pre/predict-item/delete?id=' + id })
| }
|
| // 查询getMmPredictItemList详情
| export const getMmPredictItemList = () => {
| return request.get({ url: `/model/pre/predict-item/list`})
| }
|
|