PMCORE-3348
This commit is contained in:
0
resources/assets/js/home/TaskMetrics/Breadcrumb.vue
Normal file
0
resources/assets/js/home/TaskMetrics/Breadcrumb.vue
Normal file
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div id="v-pm-charts" ref="v-pm-charts" class="v-pm-charts vp-inline-block">
|
||||
<div class="p-1 v-flex">
|
||||
<h6 class="v-search-title">{{$t("ID_DRILL_DOWN_NUMBER_TASKS")}}</h6>
|
||||
<h6 class="v-search-title">{{ $t("ID_DRILL_DOWN_NUMBER_TASKS") }}</h6>
|
||||
<BreadCrumb :options="breadCrumbs.data" :settings="settingsBreadcrumbs" />
|
||||
<apexchart
|
||||
v-show="typeView === 'donut'"
|
||||
@@ -85,6 +85,7 @@ export default {
|
||||
id: that.currentSelection["List Name"],
|
||||
name: that.currentSelection["List Name"],
|
||||
level: 0,
|
||||
color: that.formatColor(that.currentSelection["Color"]),
|
||||
data: that.currentSelection,
|
||||
});
|
||||
},
|
||||
@@ -230,6 +231,24 @@ export default {
|
||||
},
|
||||
]);
|
||||
},
|
||||
formatColor(color) {
|
||||
let code = "#ffffff";
|
||||
switch (color) {
|
||||
case "green":
|
||||
code = "#179a6e";
|
||||
break;
|
||||
case "yellow":
|
||||
code = "#feb019";
|
||||
break;
|
||||
case "blue":
|
||||
code = "#008ffb";
|
||||
break;
|
||||
case "gray":
|
||||
code = "#8f99a0";
|
||||
break;
|
||||
}
|
||||
return code;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -52,9 +52,9 @@ export default {
|
||||
let that = this;
|
||||
return {
|
||||
level: 0,
|
||||
key1: _.random(0,100),
|
||||
key2: _.random(0,100),
|
||||
key3: _.random(0,100),
|
||||
key1: _.random(0, 100),
|
||||
key2: _.random(0, 100),
|
||||
key3: _.random(0, 100),
|
||||
data: [],
|
||||
settingsBreadCrumbs: [
|
||||
{
|
||||
@@ -129,13 +129,10 @@ export default {
|
||||
onClick() {
|
||||
that.onChangeLevel(el.level);
|
||||
},
|
||||
data: el,
|
||||
});
|
||||
}
|
||||
});
|
||||
res.push({
|
||||
label: this.$t("ID_SELECT"),
|
||||
onClick() {},
|
||||
});
|
||||
switch (this.level) {
|
||||
case 0:
|
||||
return {
|
||||
@@ -150,7 +147,7 @@ export default {
|
||||
};
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user