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