提交 | 用户 | 时间
|
7462da
|
1 |
import request from '@/config/axios' |
L |
2 |
|
|
3 |
export interface MmPredictItemVO { |
cd9f11
|
4 |
id: string, |
7462da
|
5 |
itemtypename: string, |
cd9f11
|
6 |
mmPredictItem: { |
L |
7 |
id: string, |
|
8 |
itemno: string, |
|
9 |
itemname: string, |
|
10 |
caltypeid: string, |
|
11 |
itemtypeid: string, |
|
12 |
predictlength: string, |
|
13 |
granularity: number, |
|
14 |
status: string, |
|
15 |
isfuse: number, |
|
16 |
predictphase: string, |
|
17 |
workchecked: number, |
|
18 |
unittransfactor: string, |
|
19 |
saveindex: string |
|
20 |
}, |
|
21 |
dmModuleItem: { |
|
22 |
id: string, |
|
23 |
moduleid: string, |
|
24 |
itemid: string, |
|
25 |
itemorder: number, |
|
26 |
status: number, |
|
27 |
categoryid: string |
|
28 |
}, |
|
29 |
mmItemOutput: { |
|
30 |
id: string, |
|
31 |
itemid: string, |
|
32 |
pointid: string, |
|
33 |
resulttableid: string, |
|
34 |
tagname: string, |
|
35 |
outputorder: number |
|
36 |
}, |
|
37 |
mmPredictModel: { |
|
38 |
id: string, |
|
39 |
modelno: string, |
|
40 |
modelname: string, |
|
41 |
itemid: string, |
|
42 |
arithid: string, |
|
43 |
trainsamplength: string, |
|
44 |
predictsamplength: string, |
|
45 |
isonlinetrain: string, |
|
46 |
modelpath: string, |
|
47 |
isnormal: string, |
|
48 |
normalmax: string, |
|
49 |
normalmin: string, |
|
50 |
status: number, |
|
51 |
classname: string, |
|
52 |
methodname: string, |
|
53 |
modelparamstructure: string, |
|
54 |
resultstrid: string, |
|
55 |
settingmap: string |
|
56 |
}, |
|
57 |
mmPredictMergeItem: { |
|
58 |
id: string, |
|
59 |
itemid: string, |
|
60 |
expression: string, |
|
61 |
num: string |
|
62 |
}, |
|
63 |
modelparamtypeList: [], |
|
64 |
mmModelArithSettingsList: [], |
|
65 |
mmModelParamList: [] |
7462da
|
66 |
} |
L |
67 |
|
|
68 |
export interface MmPredictItemPageReqVO extends PageParam { |
|
69 |
itemno?: string, |
|
70 |
itemname?: string, |
|
71 |
} |
|
72 |
|
|
73 |
// 查询MmPredictItem列表 |
|
74 |
export const getMmPredictItemPage = (params: MmPredictItemPageReqVO) => { |
cd9f11
|
75 |
return request.get({ url: '/model/pre/predict-item/page', params }) |
7462da
|
76 |
} |
L |
77 |
|
|
78 |
// 查询MmPredictItem详情 |
|
79 |
export const getMmPredictItem = (id: number) => { |
cd9f11
|
80 |
return request.get({ url: `/model/pre/predict-item/get/${id}`}) |
7462da
|
81 |
} |
L |
82 |
|
|
83 |
// 新增MmPredictItem |
|
84 |
export const createMmPredictItem = (data: MmPredictItemVO) => { |
cd9f11
|
85 |
return request.post({ url: '/model/pre/predict-item/create', data }) |
7462da
|
86 |
} |
L |
87 |
|
|
88 |
// 修改MmPredictItem |
|
89 |
export const updateMmPredictItem = (data: MmPredictItemVO) => { |
cd9f11
|
90 |
return request.put({ url: '/model/pre/predict-item/update', data }) |
7462da
|
91 |
} |
L |
92 |
|
|
93 |
// 删除MmPredictItem |
|
94 |
export const deleteMmPredictItem = (id: number) => { |
cd9f11
|
95 |
return request.delete({ url: '/model/pre/predict-item/delete?id=' + id }) |
L |
96 |
} |
|
97 |
|
|
98 |
// 查询getMmPredictItemList详情 |
|
99 |
export const getMmPredictItemList = () => { |
|
100 |
return request.get({ url: `/model/pre/predict-item/list`}) |
7462da
|
101 |
} |