PMCORE-3300: Custom cases list: Enable Search Filter does not work

fix code style

change service method

fix CR notes

migrate GET to POST

fix card view
This commit is contained in:
Rodrigo Quelca
2021-09-13 16:05:18 +00:00
parent 1e748bc568
commit 8197bb8391
7 changed files with 876 additions and 28 deletions

View File

@@ -0,0 +1,58 @@
import axios from "axios";
import ApiInstance from "./Api.js";
import Services from "./Services";
let Api = new ApiInstance( Services );
export let custom = {
inbox(data) {
let service = "INBOX_CUSTOM_LIST",
keys = {},
params;
keys["id"] = data.id,
params = data.filters;
return Api.post({
service,
data: params,
keys
});
},
draft(data) {
let service = "INBOX_CUSTOM_LIST",
keys = {},
params;
service = "DRAFT_CUSTOM_LIST";
keys["id"] = data.id;
params = data.filters;
return Api.post({
service,
data: params,
keys
});
},
paused(data) {
let service = "INBOX_CUSTOM_LIST",
keys = {},
params;
service = "PAUSED_CUSTOM_LIST";
keys["id"] = data.id;
params = data.filters;
return Api.post({
service,
data: params,
keys
});
},
unassigned(data) {
let service = "INBOX_CUSTOM_LIST",
keys = {},
params;
service = "UNASSIGNED_CUSTOM_LIST";
keys["id"] = data.id;
params = data.filters;
return Api.post({
service,
data: params,
keys
});
}
};

View File

@@ -5,7 +5,7 @@ import { config } from "./Config";
import { caseNotes } from "./CaseNotes";
import { process } from "./Process";
import { filters } from "./Filters";
import { custom } from "./Custom";
export default {
menu,
@@ -14,5 +14,6 @@ export default {
process,
caseNotes,
filters,
config
config,
custom
};