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