提交 | 用户 | 时间
|
2f0aa4
|
1 |
import request from '@/config/axios' |
潘 |
2 |
|
|
3 |
export interface ScheduleModelVO { |
|
4 |
id: string |
|
5 |
modelCode: string |
|
6 |
modelName: string |
|
7 |
modelType: string |
|
8 |
className: string |
|
9 |
methodName: string |
|
10 |
portLength: number |
|
11 |
paramStructure: string |
|
12 |
modelPath: string |
|
13 |
resultStrId: string |
|
14 |
invocation: string |
|
15 |
status: number, |
|
16 |
paramList: null, |
|
17 |
settingList: null |
|
18 |
} |
|
19 |
|
|
20 |
export interface ModelParamVO { |
|
21 |
modelparamportorder: number |
|
22 |
modelparamorder: number |
|
23 |
modelparamtype: string |
|
24 |
modelparamid: string |
|
25 |
datalength: number |
|
26 |
} |
|
27 |
|
cd9f11
|
28 |
export interface WorkPrecessParamVO { |
L |
29 |
processType: string |
|
30 |
} |
|
31 |
|
2f0aa4
|
32 |
export interface ScheduleModelPageReqVO extends PageParam { |
潘 |
33 |
modelCode?: string |
|
34 |
modelName?: string |
|
35 |
} |
|
36 |
|
|
37 |
// 查询ScheduleModel列表 |
|
38 |
export const getScheduleModelPage = (params: ScheduleModelPageReqVO) => { |
|
39 |
return request.get({ url: '/model/sche/model/page', params }) |
|
40 |
} |
|
41 |
|
|
42 |
// 查询ScheduleModel详情 |
|
43 |
export const getScheduleModel = (id: number) => { |
6badb7
|
44 |
return request.get({ url: '/model/sche/model/get?id=' + id}) |
2f0aa4
|
45 |
} |
潘 |
46 |
|
|
47 |
// 新增ScheduleModel |
|
48 |
export const createScheduleModel = (data: ScheduleModelVO) => { |
6badb7
|
49 |
return request.post({ url: '/model/sche/model/create', data }) |
2f0aa4
|
50 |
} |
潘 |
51 |
|
|
52 |
// 修改ScheduleModel |
|
53 |
export const updateScheduleModel = (data: ScheduleModelVO) => { |
|
54 |
return request.put({ url: '/model/sche/model/update', data }) |
|
55 |
} |
|
56 |
|
|
57 |
// 删除ScheduleModel |
|
58 |
export const deleteScheduleModel = (id: number) => { |
|
59 |
return request.delete({ url: '/model/sche/model/delete?id=' + id }) |
|
60 |
} |
|
61 |
|
6badb7
|
62 |
// 查询ScheduleModel列表 |
潘 |
63 |
export const getScheduleModelList = () => { |
|
64 |
return request.get({ url: '/model/sche/model/list'}) |
|
65 |
} |
|
66 |
|
2f0aa4
|
67 |
// 查询模型参数列表 |
8ea580
|
68 |
export const getModelParamList = (modelparamListMap) => { |
潘 |
69 |
modelparamListMap['point'] = [] |
2f0aa4
|
70 |
} |
cd9f11
|
71 |
|
L |
72 |
// 查询getScheduleWorkPrecessList列表 |
|
73 |
export const getScheduleWorkPrecessList = (data: WorkPrecessParamVO) => { |
|
74 |
return request.get({ url: '/model/sche/model/work-process/list/all'},data) |
|
75 |
} |