PMCORE-3325
This commit is contained in:
@@ -193,7 +193,7 @@ export default {
|
|||||||
.then((response) => {
|
.then((response) => {
|
||||||
that.formatDataProcesses(response.data);
|
that.formatDataProcesses(response.data);
|
||||||
that.changeOption({
|
that.changeOption({
|
||||||
id: 0,
|
id: "all",
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
@@ -206,6 +206,10 @@ export default {
|
|||||||
*/
|
*/
|
||||||
formatDataCategories(data) {
|
formatDataCategories(data) {
|
||||||
let array = [];
|
let array = [];
|
||||||
|
array.push({
|
||||||
|
name: this.$t("ID_ALL_CATEGORIES"),
|
||||||
|
id: "all",
|
||||||
|
});
|
||||||
array.push({
|
array.push({
|
||||||
name: this.$t("ID_PROCESS_NONE_CATEGORY"),
|
name: this.$t("ID_PROCESS_NONE_CATEGORY"),
|
||||||
id: "0",
|
id: "0",
|
||||||
@@ -251,6 +255,7 @@ export default {
|
|||||||
processes: this.selectedProcesses,
|
processes: this.selectedProcesses,
|
||||||
top: this.top,
|
top: this.top,
|
||||||
};
|
};
|
||||||
|
option.id == "all"? delete dt.category:null;
|
||||||
Api.process
|
Api.process
|
||||||
.totalCasesByProcess(dt)
|
.totalCasesByProcess(dt)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ export default {
|
|||||||
type: "datetime",
|
type: "datetime",
|
||||||
},
|
},
|
||||||
yaxis: {
|
yaxis: {
|
||||||
tickAmount: 1,
|
tickAmount: 7,
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
custom: function ({ series, seriesIndex, dataPointIndex, w }) {
|
custom: function ({ series, seriesIndex, dataPointIndex, w }) {
|
||||||
@@ -286,7 +286,8 @@ export default {
|
|||||||
case "OVERDUE":
|
case "OVERDUE":
|
||||||
this.$refs["LevelThreeChart"].updateOptions({
|
this.$refs["LevelThreeChart"].updateOptions({
|
||||||
yaxis: {
|
yaxis: {
|
||||||
min: 0,
|
min: -1,
|
||||||
|
tickAmount: 7,
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
text: "Overdue days",
|
text: "Overdue days",
|
||||||
@@ -296,7 +297,8 @@ export default {
|
|||||||
case "AT_RISK":
|
case "AT_RISK":
|
||||||
this.$refs["LevelThreeChart"].updateOptions({
|
this.$refs["LevelThreeChart"].updateOptions({
|
||||||
yaxis: {
|
yaxis: {
|
||||||
max: 0,
|
max: 1,
|
||||||
|
tickAmount: 7
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
text: "Days before being Overdue",
|
text: "Days before being Overdue",
|
||||||
@@ -306,7 +308,8 @@ export default {
|
|||||||
case "ON_TIME":
|
case "ON_TIME":
|
||||||
this.$refs["LevelThreeChart"].updateOptions({
|
this.$refs["LevelThreeChart"].updateOptions({
|
||||||
yaxis: {
|
yaxis: {
|
||||||
max: 0,
|
max: 1,
|
||||||
|
tickAmount: 7
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
text: "Days before being At-Risk",
|
text: "Days before being At-Risk",
|
||||||
|
|||||||
@@ -120,6 +120,9 @@ export default {
|
|||||||
xaxis: {
|
xaxis: {
|
||||||
type: "datetime",
|
type: "datetime",
|
||||||
},
|
},
|
||||||
|
yaxis: {
|
||||||
|
tickAmount: 7,
|
||||||
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
fixed: {
|
fixed: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user