提交 | 用户 | 时间
|
1c14d6
|
1 |
import request from '@/config/axios' |
L |
2 |
|
|
3 |
export interface DaPointVO { |
|
4 |
id: string |
|
5 |
pointNo: string, |
|
6 |
pointName: string, |
|
7 |
pointType: string, |
|
8 |
dataType: string, |
|
9 |
valueType: string, |
|
10 |
storeType: string, |
|
11 |
unit: string, |
|
12 |
unittransfactor: number, |
|
13 |
defaultValue: number, |
|
14 |
maxValue: number, |
|
15 |
minValue: number, |
|
16 |
minfreqid: string, |
|
17 |
remark: string, |
|
18 |
isEnable: number, |
|
19 |
} |
|
20 |
|
|
21 |
export interface DaPointPageReqVO extends PageParam { |
|
22 |
pointNo?: string, |
|
23 |
pointName?: string |
|
24 |
} |
|
25 |
|
|
26 |
// 查询DaPoint列表 |
|
27 |
export const getDaPointPage = (params: DaPointPageReqVO) => { |
|
28 |
return request.get({ url: '/data/da/point/page', params }) |
|
29 |
} |
|
30 |
|
cd9f11
|
31 |
// 查询DaPoint列表 |
L |
32 |
export const getPointList = (params: DaPointPageReqVO) => { |
|
33 |
return request.get({ url: '/data/da/point/list', params }) |
|
34 |
} |
|
35 |
|
1c14d6
|
36 |
// 查询DaPoint详情 |
L |
37 |
export const getDaPoint = (id: number) => { |
|
38 |
return request.get({ url: `/data/da/point/info/${id}`}) |
|
39 |
} |
|
40 |
|
|
41 |
// 新增DaPoint |
|
42 |
export const createDaPoint = (data: DaPointVO) => { |
660c92
|
43 |
return request.post({ url: '/data/da/point/create', data }) |
1c14d6
|
44 |
} |
L |
45 |
|
|
46 |
// 修改DaPoint |
|
47 |
export const updateDaPoint = (data: DaPointVO) => { |
|
48 |
return request.put({ url: '/data/da/point/update', data }) |
|
49 |
} |
|
50 |
|
|
51 |
// 删除DaPoint |
|
52 |
export const deleteDaPoint = (id: number) => { |
|
53 |
return request.delete({ url: '/data/da/point/delete?id=' + id }) |
|
54 |
} |
031c25
|
55 |
|
D |
56 |
//导出DaPointList |
|
57 |
export const exportDaPoint = (params) => { |
|
58 |
return request.download({ url: '/data/da/point/export', params }) |
|
59 |
} |
|
60 |
|
|
61 |
// 下载用户导入模板 |
|
62 |
export const importPointTemplate = () => { |
|
63 |
return request.download({ url: '/data/da/point/get-import-template' }) |
|
64 |
} |