deviceManagement.js
780 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 './request'
const path = 'fims.device.'
function getListApi(data) {
data.method = `${path}list`
return request(data)
}
function editApi(data) {
data.refreshTable = true
data.method = `${path}edit`
return request(data)
}
function removeApi(data) {
data.refreshTable = true
data.method = `${path}remove`
return request(data)
}
// function importApi (data, noSignAttr) {
// console.log(data)
// data.method = `${path}import`
// return request(data, 'post', noSignAttr)
// }
function exportApi(data) {
data.method = `${path}export`
return request(data)
}
function isExistApi(data) {
data.method = `${path}detail`
return request(data)
}
export {
getListApi,
editApi,
removeApi,
// importApi,
exportApi,
isExistApi
}