PMCORE-3325
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -182,7 +182,7 @@ export default {
|
||||
type: "datetime",
|
||||
},
|
||||
yaxis: {
|
||||
tickAmount: 1,
|
||||
tickAmount: 7,
|
||||
},
|
||||
tooltip: {
|
||||
custom: function ({ series, seriesIndex, dataPointIndex, w }) {
|
||||
@@ -286,7 +286,8 @@ export default {
|
||||
case "OVERDUE":
|
||||
this.$refs["LevelThreeChart"].updateOptions({
|
||||
yaxis: {
|
||||
min: 0,
|
||||
min: -1,
|
||||
tickAmount: 7,
|
||||
},
|
||||
title: {
|
||||
text: "Overdue days",
|
||||
@@ -296,7 +297,8 @@ export default {
|
||||
case "AT_RISK":
|
||||
this.$refs["LevelThreeChart"].updateOptions({
|
||||
yaxis: {
|
||||
max: 0,
|
||||
max: 1,
|
||||
tickAmount: 7
|
||||
},
|
||||
title: {
|
||||
text: "Days before being Overdue",
|
||||
@@ -306,7 +308,8 @@ export default {
|
||||
case "ON_TIME":
|
||||
this.$refs["LevelThreeChart"].updateOptions({
|
||||
yaxis: {
|
||||
max: 0,
|
||||
max: 1,
|
||||
tickAmount: 7
|
||||
},
|
||||
title: {
|
||||
text: "Days before being At-Risk",
|
||||
|
||||
@@ -120,6 +120,9 @@ export default {
|
||||
xaxis: {
|
||||
type: "datetime",
|
||||
},
|
||||
yaxis: {
|
||||
tickAmount: 7,
|
||||
},
|
||||
tooltip: {
|
||||
fixed: {
|
||||
enabled: false,
|
||||
|
||||
Reference in New Issue
Block a user