wujian
2024-02-22 268beb4ebc1e5b8d4ad715b71cd64a0944073a87
提交 | 用户 | 时间
268beb 1 import request from '@/utils/request'
W 2
3 // 查询工位终端配置列表
4 export function listStationConf(query) {
5   return request({
6     url: '/sc/stationConf/list',
7     method: 'get',
8     params: query
9   })
10 }
11
12 // 查询IP
13 export function getIpv4() {
14   return request({
15     url: '/sc/stationConf/getIpv4',
16     method: 'get',
17   })
18 }
19
20 // 查询工位终端配置详细
21 export function getStationConf(id) {
22   return request({
23     url: '/sc/stationConf/' + id,
24     method: 'get'
25   })
26 }
27
28 // 新增工位终端配置
29 export function addStationConf(data) {
30   return request({
31     url: '/sc/stationConf',
32     method: 'post',
33     data: data
34   })
35 }
36
37 // 修改工位终端配置
38 export function updateStationConf(data) {
39   return request({
40     url: '/sc/stationConf',
41     method: 'put',
42     data: data
43   })
44 }
45
46 // 删除工位终端配置
47 export function delStationConf(id) {
48   return request({
49     url: '/sc/stationConf/' + id,
50     method: 'delete'
51   })
52 }