index.js
958 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 api from "../index";
import urls from "./urls";
export default {
tableList(params) {
return api.get(urls.tableList, params);
},
detailImg(params, id) {
return api.get(urls.detailImg + id, params);
},
detailImgBatch(params) {
return api.post(urls.detailImgBatch, params);
},
detailVideo(params, id) {
return api.get(urls.detailvideo + id, params);
},
delVehicle(params, id) {
// return出去了一个promise
return api.delete(urls.delVehicle + id, params);
},
patchdel(params, id) {
// return出去了一个promise
return api.delete(urls.patchdel, params);
},
eventTypes(params, id) {
return api.get(urls.eventTypes, params);
},
eventTableList(params, id) {
return api.get(urls.eventTableList, params);
},
traficflow(params, id) {
return api.get(urls.traficflow, params);
},
delEvents(params, id) {
return api.delete(urls.eventTableList + "/" + id, params);
}
};