seatonwan9
2025-08-28 bfbb1ea3c6bb2dd7db064fb189290a1bfcf6c9cd
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
import createAxios from '@/utils/axios'
 
// 终端管理模块
const url: string = '/admin/deviceTerminalInfo'
const urlDy: string = '/admin/deviceTerminalParameter'
const urlMapp: string = '/admin/deviceTerminalBind'
 
const terminalService = {
    // 获取列表  左侧树形
    treeListLeftTreeListURL(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/treeList`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 获取列表  右侧列表数据
    terminalRightListURL(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/list`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 获取弹出页面-协议类型
    terminalProtocolSelectDataURL(data: object = {}): ApiPromise {
        return createAxios({
            url: `/admin/deviceCommunicationProtocol/list`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 联网方式字典
    networkTypeURL(data: object = {}): ApiPromise {
        return createAxios({
            url: `/admin/sysDict/subListByCode`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 新增基础信息
    addNewDataInformation(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/add`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 编辑信息分类参数 根据ID查询
    queryInformationDetail(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/detail`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 编辑更新
    updataDataURL(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/update`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 删除
    deleteRightDataInformation(data: object = {}): ApiPromise {
        return createAxios({
            url: `${url}/delete`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 动态参数-参数列表
    dynamicListDataURL(data: object = {}): ApiPromise {
        return createAxios({
            url: `${urlDy}/list`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 动态参数-未选参数列表
    dynamicNotSelectedListDataURL(data: object = {}): ApiPromise {
        return createAxios({
            url: `${urlDy}/listNotSelected`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 删除动态参数页面-参数列表
    deleteDynamicListDataURL(data: object = {}): ApiPromise {
        return createAxios({
            url: `${urlDy}/delete`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
 
    // 动态参数-保存按钮
    savaDynamicURL(data: object = {}): ApiPromise {
        return createAxios({
            url: `${urlDy}/add`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 动态参数-编辑保存
    updateDynamicURL(data: object = {}): ApiPromise {
        return createAxios({
            url: `${urlDy}/update`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
    // 设备映射
    mapperListDataURL(data: object = {}): ApiPromise {
        return createAxios({
            url: `${urlMapp}/listByTerminalCode`,
            headers: {
                'Content-Type': 'application/json;charset=UTF-8'
            },
            data: data
        }) as ApiPromise
    },
 
}
 
export default terminalService