fix: 修复 Network Overview 折线图 下拉选择 markLine 无变化问题

This commit is contained in:
@changcode
2022-07-30 15:30:03 +08:00
parent f80cf8ef96
commit b457fb63e8
2 changed files with 10 additions and 3 deletions

View File

@@ -40,6 +40,7 @@
v-model="value2"
:disabled="activeShow === 'total'"
popper-class="reference-line"
@change="referenceSelectChange"
>
<el-option v-for="item in options2" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
@@ -113,7 +114,8 @@ export default {
activeShow: 'total',
mousemoveCursor: '',
leftOffset: 0,
sizes: [3, 4, 6, 8, 9, 10]
sizes: [3, 4, 6, 8, 9, 10],
echartsLabelValue: 'Average'
}
},
watch: {
@@ -7114,7 +7116,7 @@ export default {
label: {
formatter (params) {
const arr = unitConvert(params.value, unitTypes.number).join('')
return _this.value2 + '(' + arr + 'packets/s' + ')'
return _this.echartsLabelValue + '(' + arr + 'packets/s' + ')'
},
position: 'insideStartTop',
color: '#717171',
@@ -7196,6 +7198,12 @@ export default {
}
this.activeShow = 'total'
},
referenceSelectChange (val) {
this.timer = setTimeout(() => {
this.init()
}, 200)
this.echartsLabelValue = val
},
symbolSizeSortChange (index, time) {
const dataIntegrationArray = []
if (stackedLineChartOption.series[0]) {