refactor: 自定义监控页面优化
This commit is contained in:
parent
fa89979461
commit
57c6dfb398
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in New Issue