提交 | 用户 | 时间
|
7462da
|
1 |
import request from '@/config/axios' |
L |
2 |
|
|
3 |
export interface MmPredictItemVO { |
|
4 |
id: string |
|
5 |
itemno: string, |
|
6 |
itemname: string, |
|
7 |
itemtypeid: string, |
|
8 |
itemtypename: string, |
|
9 |
granularity: number, |
|
10 |
isfuse: number, |
|
11 |
workchecked: number, |
|
12 |
moduleid: string, |
|
13 |
itemorder: number, |
|
14 |
status: number, |
|
15 |
categoryid: string, |
|
16 |
pointid: string, |
|
17 |
tagname: string, |
|
18 |
resulttableid: string, |
|
19 |
tablename: string, |
|
20 |
} |
|
21 |
|
|
22 |
export interface MmPredictItemPageReqVO extends PageParam { |
|
23 |
itemno?: string, |
|
24 |
itemname?: string, |
|
25 |
} |
|
26 |
|
|
27 |
// 查询MmPredictItem列表 |
|
28 |
export const getMmPredictItemPage = (params: MmPredictItemPageReqVO) => { |
550970
|
29 |
return request.get({ url: '/pre/result-table/page', params }) |
7462da
|
30 |
} |
L |
31 |
|
|
32 |
// 查询MmPredictItem详情 |
|
33 |
export const getMmPredictItem = (id: number) => { |
550970
|
34 |
return request.get({ url: `/pre/result-table/get/${id}`}) |
7462da
|
35 |
} |
L |
36 |
|
|
37 |
// 新增MmPredictItem |
|
38 |
export const createMmPredictItem = (data: MmPredictItemVO) => { |
550970
|
39 |
return request.post({ url: '/pre/result-table/create', data }) |
7462da
|
40 |
} |
L |
41 |
|
|
42 |
// 修改MmPredictItem |
|
43 |
export const updateMmPredictItem = (data: MmPredictItemVO) => { |
550970
|
44 |
return request.put({ url: '/pre/result-table/update', data }) |
7462da
|
45 |
} |
L |
46 |
|
|
47 |
// 删除MmPredictItem |
|
48 |
export const deleteMmPredictItem = (id: number) => { |
550970
|
49 |
return request.delete({ url: '/pre/result-table/delete?id=' + id }) |
7462da
|
50 |
} |