提交 | 用户 | 时间
|
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 |
|
616b13
|
26 |
|
1c14d6
|
27 |
// 查询DaPoint列表 |
L |
28 |
export const getDaPointPage = (params: DaPointPageReqVO) => { |
|
29 |
return request.get({ url: '/data/da/point/page', params }) |
|
30 |
} |
|
31 |
|
cd9f11
|
32 |
// 查询DaPoint列表 |
L |
33 |
export const getPointList = (params: DaPointPageReqVO) => { |
|
34 |
return request.get({ url: '/data/da/point/list', params }) |
|
35 |
} |
|
36 |
|
1c14d6
|
37 |
// 查询DaPoint详情 |
L |
38 |
export const getDaPoint = (id: number) => { |
|
39 |
return request.get({ url: `/data/da/point/info/${id}`}) |
|
40 |
} |
|
41 |
|
|
42 |
// 新增DaPoint |
|
43 |
export const createDaPoint = (data: DaPointVO) => { |
660c92
|
44 |
return request.post({ url: '/data/da/point/create', data }) |
1c14d6
|
45 |
} |
L |
46 |
|
|
47 |
// 修改DaPoint |
|
48 |
export const updateDaPoint = (data: DaPointVO) => { |
|
49 |
return request.put({ url: '/data/da/point/update', data }) |
|
50 |
} |
|
51 |
|
|
52 |
// 删除DaPoint |
|
53 |
export const deleteDaPoint = (id: number) => { |
|
54 |
return request.delete({ url: '/data/da/point/delete?id=' + id }) |
|
55 |
} |
031c25
|
56 |
|
D |
57 |
//导出DaPointList |
|
58 |
export const exportDaPoint = (params) => { |
|
59 |
return request.download({ url: '/data/da/point/export', params }) |
|
60 |
} |
|
61 |
|
|
62 |
// 下载用户导入模板 |
|
63 |
export const importPointTemplate = () => { |
|
64 |
return request.download({ url: '/data/da/point/get-import-template' }) |
|
65 |
} |
616b13
|
66 |
|
J |
67 |
// 启用 |
|
68 |
export const enable = (ids) => { |
|
69 |
const data = ids |
|
70 |
return request.put({ url: '/data/da/point/enable', data }) |
|
71 |
} |
|
72 |
|
|
73 |
// 禁用 |
|
74 |
export const disable = (ids) => { |
|
75 |
const data = ids |
|
76 |
return request.put({ url: '/data/da/point/disable', data }) |
|
77 |
} |