PMCORE-3325

This commit is contained in:
Henry Jordan
2021-09-16 18:53:49 +00:00
parent ba1aeb9f95
commit abb2d7fb93
3 changed files with 16 additions and 5 deletions

View File

@@ -193,7 +193,7 @@ export default {
.then((response) => {
that.formatDataProcesses(response.data);
that.changeOption({
id: 0,
id: "all",
});
})
.catch((e) => {
@@ -206,6 +206,10 @@ export default {
*/
formatDataCategories(data) {
let array = [];
array.push({
name: this.$t("ID_ALL_CATEGORIES"),
id: "all",
});
array.push({
name: this.$t("ID_PROCESS_NONE_CATEGORY"),
id: "0",
@@ -251,6 +255,7 @@ export default {
processes: this.selectedProcesses,
top: this.top,
};
option.id == "all"? delete dt.category:null;
Api.process
.totalCasesByProcess(dt)
.then((response) => {