This commit is contained in:
@@ -239,7 +239,7 @@ function clickHandler(menuItem) {
|
|||||||
|
|
||||||
let logText = "";
|
let logText = "";
|
||||||
//de-lodash
|
//de-lodash
|
||||||
// window.$gz._.forEach(m.vm.$store.state.logArray, function appendLogItem(
|
// window.$gz. _.forEach(m.vm.$store.state.logArray, function appendLogItem(
|
||||||
// value
|
// value
|
||||||
// ) {
|
// ) {
|
||||||
// logText += value + "\n";
|
// logText += value + "\n";
|
||||||
|
|||||||
@@ -22,9 +22,7 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
let outText = "";
|
let outText = "";
|
||||||
window.$gz._.forEach(vm.$store.state.logArray, function appendLogItem(
|
vm.$store.state.logArray.forEach(function appendLogItem(value) {
|
||||||
value
|
|
||||||
) {
|
|
||||||
outText += value + "\n";
|
outText += value + "\n";
|
||||||
});
|
});
|
||||||
this.logText = outText;
|
this.logText = outText;
|
||||||
|
|||||||
@@ -310,14 +310,21 @@ export default {
|
|||||||
},
|
},
|
||||||
dbTopTablesChartData() {
|
dbTopTablesChartData() {
|
||||||
// debugger;
|
// debugger;
|
||||||
|
if (!this.db.topTables) {
|
||||||
|
return { labels: [], datasets: [] };
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
// These labels appear in the legend and in the tooltips when hovering different arcs
|
// These labels appear in the legend and in the tooltips when hovering different arcs
|
||||||
//_.map(users, 'user');
|
//_.map(users, 'user');
|
||||||
labels: window.$gz._.map(this.db.topTables, "name"),
|
//de-lodash
|
||||||
|
// labels: window.$gz._.map(this.db.topTables, "name"),
|
||||||
|
labels: this.db.topTables.map(z => z.name),
|
||||||
datasets: [
|
datasets: [
|
||||||
{
|
{
|
||||||
label: this.$ay.t("MetricTopTablesSize"),
|
label: this.$ay.t("MetricTopTablesSize"),
|
||||||
data: window.$gz._.map(this.db.topTables, "value"),
|
//de-lodash
|
||||||
|
// data: window.$gz._.map(this.db.topTables, "value"),
|
||||||
|
data: this.db.topTables.map(z => z.value),
|
||||||
backgroundColor: getPalette(
|
backgroundColor: getPalette(
|
||||||
this.db.topTables ? this.db.topTables.length : 3
|
this.db.topTables ? this.db.topTables.length : 3
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user