提交 | 用户 | 时间
|
24d32b
|
1 |
import request from '@/config/axios' |
潘 |
2 |
|
|
3 |
export interface OpcdaTagVO { |
|
4 |
id: string |
|
5 |
serverId: string |
|
6 |
tagName: string |
|
7 |
dataType: string |
|
8 |
enabled: boolean |
|
9 |
itemId: string |
|
10 |
} |
|
11 |
|
|
12 |
export interface OpcdaTagPageReqVO extends PageParam { |
|
13 |
serverId?: string |
|
14 |
tagName?: string |
|
15 |
} |
|
16 |
|
|
17 |
// 查询OpcdaTag列表 |
|
18 |
export const getOpcdaTagPage = (params: OpcdaTagPageReqVO) => { |
|
19 |
return request.get({ url: '/data/channel/opcda/tag/page', params }) |
|
20 |
} |
|
21 |
|
|
22 |
// 查询OpcdaTag详情 |
|
23 |
export const getOpcdaTag = (id: number) => { |
|
24 |
return request.get({ url: `/data/channel/opcda/tag/info/${id}`}) |
|
25 |
} |
|
26 |
|
|
27 |
// 新增OpcdaTag |
|
28 |
export const createOpcdaTag = (data: OpcdaTagVO) => { |
|
29 |
return request.post({ url: '/data/channel/opcda/tag/create', data }) |
|
30 |
} |
|
31 |
|
|
32 |
// 修改OpcdaTag |
|
33 |
export const updateOpcdaTag = (data: OpcdaTagVO) => { |
|
34 |
return request.put({ url: '/data/channel/opcda/tag/update', data }) |
|
35 |
} |
|
36 |
|
|
37 |
// 删除OpcdaTag |
|
38 |
export const deleteOpcdaTag = (id: number) => { |
|
39 |
return request.delete({ url: '/data/channel/opcda/tag/delete?id=' + id }) |
|
40 |
} |
d23859
|
41 |
|
J |
42 |
//导出OpcdaTag |
|
43 |
export const exportOpcDaTag = (params) => { |
|
44 |
return request.download({ url: '/data/channel/opcda/tag/export', params }) |
|
45 |
} |
|
46 |
|
|
47 |
// 下载用户导入模板 |
|
48 |
export const importOpcDaTagTemplate = () => { |
|
49 |
return request.download({ url: '/data/channel/opcda/tag/get-import-template' }) |
|
50 |
} |