refactor: 自定义监控页面优化

This commit is contained in:
Captain.B 2021-09-17 13:58:45 +08:00 committed by 刘瑞斌
parent fa89979461
commit 57c6dfb398
1 changed files with 8 additions and 1 deletions

View File

@ -16,7 +16,7 @@
<div style="padding-top: 10px">
<el-checkbox-group v-model="checkList"
@change="handleChecked(currentInstance)">
@change="handleCheckListChange(currentInstance)">
<div v-for="op in checkOptions"
:key="op.key"
:content="op.label">
@ -233,6 +233,13 @@ export default {
this.changeDataZoom({start: 0, end: 100});
});
},
handleCheckListChange(id) {
this.totalOption = {};
this.$nextTick(() => {
this.totalOption = this.getOption(id);
this.changeDataZoom({start: 0, end: 100});
});
},
getOption(id) {
let legend = [];
let series = [];