Files
luos/resources/assets/js/api/Process.js

47 lines
1.0 KiB
JavaScript
Raw Normal View History

import ApiInstance from "./Api.js";
import Services from "./Services";
2021-08-04 16:28:12 +00:00
let Api = new ApiInstance(Services);
2020-12-04 13:33:23 +00:00
export let process = {
list: {
start(dt) {
return Api.fetch({
service: "GET_NEW_CASES",
method: "get",
data: {},
keys: {}
});
}
2021-08-04 16:28:12 +00:00
},
2021-08-12 19:05:50 +00:00
totalCasesByProcess(dt) {
return Api.get({
service: "TOTAL_CASES_BY_PROCESS",
params: dt,
keys: {}
});
},
processCategories() {
2021-08-04 16:28:12 +00:00
return Api.fetch({
2021-08-12 19:05:50 +00:00
service: "PROCESS_CATEGORIES",
2021-08-04 16:28:12 +00:00
method: "get",
2021-08-12 19:05:50 +00:00
data: {},
2021-08-04 16:28:12 +00:00
keys: {}
});
2021-08-16 18:54:43 +00:00
},
totalCasesByRange(dt) {
return Api.get({
service: "TOTAL_CASES_BY_RANGE",
method: "get",
params: dt,
keys: {}
});
2021-08-26 20:33:59 +00:00
},
totalCasesByRisk(dt) {
return Api.get({
service: "CASES_RISK",
method: "get",
params: dt,
keys: {}
});
},
2020-12-04 13:33:23 +00:00
};