PMCORE-3295:Performance: Three calls to the same API is launched for Started By Me, In Progress, Completed and Supervising
This commit is contained in:
@@ -368,9 +368,6 @@ export default {
|
|||||||
if (header === "CASES_TO_REVISE") {
|
if (header === "CASES_TO_REVISE") {
|
||||||
filter = "SUPERVISING";
|
filter = "SUPERVISING";
|
||||||
}
|
}
|
||||||
if (header === "CASES_SENT") {
|
|
||||||
filter = "STARTED";
|
|
||||||
}
|
|
||||||
for (i = 0; i < filters.length; i += 1) {
|
for (i = 0; i < filters.length; i += 1) {
|
||||||
if (filters[i].item === filter) {
|
if (filters[i].item === filter) {
|
||||||
filters[i].onClick(filters[i]);
|
filters[i].onClick(filters[i]);
|
||||||
@@ -643,8 +640,6 @@ export default {
|
|||||||
onClick: (obj) => {
|
onClick: (obj) => {
|
||||||
that.title = obj.title;
|
that.title = obj.title;
|
||||||
that.filterHeader = obj.item;
|
that.filterHeader = obj.item;
|
||||||
that.$refs["vueTable"].setPage(1); // Reset the page when change the header filter
|
|
||||||
that.$refs["vueTable"].getData();
|
|
||||||
that.filterHeaderObject = obj;
|
that.filterHeaderObject = obj;
|
||||||
that.random = _.random(0,1000000000);
|
that.random = _.random(0,1000000000);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user