Browse Source

!483 save the choose effect for memory in hardware resource.

Merge pull request !483 from 冯学峰/myr0.601
tags/v0.6.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
cd65f2516b
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      mindinsight/ui/src/views/train-manage/hardware-visual.vue

+ 5
- 0
mindinsight/ui/src/views/train-manage/hardware-visual.vue View File

@@ -329,6 +329,7 @@ export default {
pieColorArr: ['#5e7ce0', '#ccc', '#a6dd82'], pieColorArr: ['#5e7ce0', '#ccc', '#a6dd82'],
autoUpdateTimer: null, // Automatic refresh timer autoUpdateTimer: null, // Automatic refresh timer
isReloading: false, // Manually refresh isReloading: false, // Manually refresh
legendSelected: {},
}; };
}, },
computed: { computed: {
@@ -670,6 +671,7 @@ export default {
} }
return legendStr; return legendStr;
}, },
selected: this.legendSelected,
textStyle: { textStyle: {
rich: { rich: {
a: { a: {
@@ -726,6 +728,9 @@ export default {
chart.chartDom = echarts.init(cpuDom, null); chart.chartDom = echarts.init(cpuDom, null);
chart.chartDom.setOption(option, true); chart.chartDom.setOption(option, true);
chart.chartDom.resize(); chart.chartDom.resize();
chart.chartDom.on('legendselectchanged', (obj) => {
this.legendSelected = obj.selected;
});
} }
}); });
}, },


Loading…
Cancel
Save