fix: 修复 Network Overview 折线图 下拉选择 markLine 无变化问题
This commit is contained in:
@@ -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]) {
|
||||
|
||||
@@ -293,7 +293,6 @@ export const npmLineChartOption = {
|
||||
{
|
||||
type: 'line',
|
||||
symbol: 'circle',
|
||||
stack: 'network.total',
|
||||
smooth: true,
|
||||
showSymbol: false,
|
||||
emphasis: {
|
||||
|
||||
Reference in New Issue
Block a user