trafficManagement.js
606 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
import request from './request'
const path = 'fims.traffic.'
const methods = {
Add: `${path}add`,
Edit: `${path}edit`
}
function getListApi(data) {
data.method = `${path}list`
return request(data)
}
function editApi(data) {
// data.method = `${path}edit`
data.refreshTable = true
return request(data)
}
function removeApi(data) {
data.refreshTable = true
data.method = `${path}remove`
return request(data)
}
function isTrafficExistApi(data) {
data.method = `${path}detail`
return request(data)
}
export {
getListApi,
methods,
editApi,
removeApi,
isTrafficExistApi
}