station.js
717 Bytes
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
import request from '@/utils/request'
//查询站台
export function queryList(station) {
return request({
url: '/config/station',
method: 'get',
params: station
})
}
//增加站台
export function add(station) {
return request({
url: '/config/station',
method: 'post',
data: station
})
}
//修改站台
export function edit(station) {
return request({
url: '/config/station',
method: 'put',
data: station
})
}
//删除站台
export function remove(ids) {
return request({
url: '/config/station'+ids,
method: 'delete'
})
}
//根据id查询站台
export function findById(id) {
return request({
url:'/config/station/'+id,
method: 'get'
})
}