PMCORE-3975

This commit is contained in:
henry jordan
2022-04-18 14:49:20 +00:00
parent e79f5ac1cc
commit 3cb5c086a3
4 changed files with 4 additions and 104 deletions

View File

@@ -71,7 +71,7 @@ export default {
"task"
],
requestFunction(data) {
return that.getCases(data);
return that.getCasesViewMore(data);
},
requestFunctionViewMore(data) {
return that.getCasesViewMore(data);
@@ -83,31 +83,6 @@ export default {
},
methods: {
/**
* Get cases for Vue Card View
*/
getCases(data) {
let that = this,
dt,
filters = {};
_.forIn(this.filters, function (item, key) {
filters[item.filterVar] = item.value;
});
return new Promise((resolutionFunc, rejectionFunc) => {
api.cases
.draft(filters)
.then((response) => {
dt = that.formatDataResponse(response.data.data);
resolutionFunc({
data: dt,
count: response.data.total,
});
})
.catch((e) => {
rejectionFunc(e);
});
});
},
/**
* Get cases for Vue Card View
*/

View File

@@ -74,7 +74,7 @@ export default {
"send_by",
],
requestFunction(data) {
return that.getCases(data);
return that.getCasesViewMore(data);
},
requestFunctionViewMore(data) {
return that.getCasesViewMore(data);
@@ -86,31 +86,6 @@ export default {
},
methods: {
/**
* Get cases for Vue Card View
*/
getCases(data) {
let that = this,
dt,
filters = {};
_.forIn(this.filters, function (item, key) {
filters[item.filterVar] = item.value;
});
return new Promise((resolutionFunc, rejectionFunc) => {
api.cases
.todo(filters)
.then((response) => {
dt = that.formatDataResponse(response.data.data);
resolutionFunc({
data: dt,
count: response.data.total,
});
})
.catch((e) => {
rejectionFunc(e);
});
});
},
/**
* Get cases for Vue Card View
*/

View File

@@ -73,7 +73,7 @@ export default {
"send_by",
],
requestFunction(data) {
return that.getCases(data);
return that.getCasesViewMore(data);
},
requestFunctionViewMore(data) {
return that.getCasesViewMore(data);
@@ -85,31 +85,6 @@ export default {
},
methods: {
/**
* Get cases for Vue Card View
*/
getCases(data) {
let that = this,
dt,
filters = {};
_.forIn(this.filters, function (item, key) {
filters[item.filterVar] = item.value;
});
return new Promise((resolutionFunc, rejectionFunc) => {
api.cases
.paused(filters)
.then((response) => {
dt = that.formatDataResponse(response.data.data);
resolutionFunc({
data: dt,
count: response.data.total,
});
})
.catch((e) => {
rejectionFunc(e);
});
});
},
/**
* Get cases for Vue Card View
*/

View File

@@ -73,7 +73,7 @@ export default {
"send_by",
],
requestFunction(data) {
return that.getCases(data);
return that.getCasesViewMore(data);
},
requestFunctionViewMore(data) {
return that.getCasesViewMore(data);
@@ -85,31 +85,6 @@ export default {
},
methods: {
/**
* Get cases for Vue Card View
*/
getCases(data) {
let that = this,
dt,
filters = {};
_.forIn(this.filters, function (item, key) {
filters[item.filterVar] = item.value;
});
return new Promise((resolutionFunc, rejectionFunc) => {
api.cases
.unassigned(filters)
.then((response) => {
dt = that.formatDataResponse(response.data.data);
resolutionFunc({
data: dt,
count: response.data.total,
});
})
.catch((e) => {
rejectionFunc(e);
});
});
},
/**
* Get cases for Vue Card View
*/