@@ -94,7 +94,7 @@ export default {
Multiselect,
BreadCrumb,
},
- props: ["data", "breadCrumbs"],
+ props: ["data"],
data() {
let that = this;
return {
@@ -155,12 +155,12 @@ export default {
this.changeOption();
},
watch: {
- dateFrom () {
+ dateFrom() {
this.validateDateTo();
},
- dateTo () {
+ dateTo() {
this.validateDateTo();
- }
+ },
},
computed: {},
updated() {},
@@ -282,7 +282,7 @@ export default {
* Validate range date
*/
validateDateTo() {
- if (this.dateFrom !== '' && this.dateTo !== '') {
+ if (this.dateFrom !== "" && this.dateTo !== "") {
if (this.dateFrom > this.dateTo) {
this.stateDateTo = false;
} else {
@@ -290,6 +290,27 @@ export default {
}
}
},
+ /**
+ * Return the breadcrumbs
+ */
+ dataBreadcrumbs() {
+ let res = [];
+ if (this.data[1]) {
+ res.push({
+ label: this.data[1]["name"],
+ onClick() {},
+ color: this.data[1]["color"],
+ });
+ }
+ if (this.data[2]) {
+ res.push({
+ label: this.data[2]["name"],
+ onClick() {},
+ color: null,
+ });
+ }
+ return res;
+ },
},
};
diff --git a/resources/assets/js/home/TaskMetrics/VueChartLvZero.vue b/resources/assets/js/home/TaskMetrics/VueChartLvZero.vue
index b8b667bbb..a54815c40 100644
--- a/resources/assets/js/home/TaskMetrics/VueChartLvZero.vue
+++ b/resources/assets/js/home/TaskMetrics/VueChartLvZero.vue
@@ -2,7 +2,7 @@
{{ $t("ID_DRILL_DOWN_NUMBER_TASKS") }}
-
+