CN-768 fix: 1.app卡片Bit/s时底下的流量总数的单位需要使用byte2.折线图单个情况默认选中3.network overview 的右上角图表的按钮点击跳转到npm的events
This commit is contained in:
@@ -235,13 +235,13 @@ export default {
|
|||||||
e.show = false
|
e.show = false
|
||||||
}
|
}
|
||||||
e.unitType = 'queries/s'
|
e.unitType = 'queries/s'
|
||||||
if (show !== this.lineRefer) {
|
e.invertTab = false
|
||||||
|
this.lineTab = 'total'
|
||||||
this.legendSelectChange(e, 0)
|
this.legendSelectChange(e, 0)
|
||||||
}
|
|
||||||
})
|
})
|
||||||
this.mpackets = mpackets
|
this.mpackets = mpackets
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.echartsInit(this.mpackets, show)
|
this.echartsInit(this.mpackets, true)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -53,7 +53,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="app-card__body-previous">
|
<div class="app-card__body-previous">
|
||||||
<div>Total</div>
|
<div>Total</div>
|
||||||
<div>{{unitConvert(app.total, unitTypes.number).join(' ')}}</div>
|
<div v-if="metricFilter === 'Bits/s'">{{unitConvert(app.total, unitTypes.byte).join(' ')}}</div>
|
||||||
|
<div v-else>{{unitConvert(app.total, unitTypes.number).join(' ')}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="chart__drawing" v-show="!isNoData" :id="`chart-${app.name}-${app.type}`"></div>
|
<div class="chart__drawing" v-show="!isNoData" :id="`chart-${app.name}-${app.type}`"></div>
|
||||||
|
|||||||
@@ -281,13 +281,13 @@ export default {
|
|||||||
e.show = false
|
e.show = false
|
||||||
}
|
}
|
||||||
e.unitType = 'sessions/s'
|
e.unitType = 'sessions/s'
|
||||||
if (show !== this.lineRefer) {
|
e.invertTab = false
|
||||||
|
this.lineTab = 'total'
|
||||||
this.legendSelectChange(e, 0)
|
this.legendSelectChange(e, 0)
|
||||||
}
|
|
||||||
})
|
})
|
||||||
this.mpackets = mpackets
|
this.mpackets = mpackets
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.echartsInit(this.mpackets, show)
|
this.echartsInit(this.mpackets, true)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<div class="chart-drawing" id="chart2" v-show="!isNoData2"></div>
|
<div class="chart-drawing" id="chart2" v-show="!isNoData2"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-button class="pie-button" size="small">{{$t('network.dashboards')}}<i class="cn-icon cn-icon-arrow-right"></i></el-button>
|
<el-button class="pie-button" size="small" @click="routerJump">{{$t('network.dashboards')}}<i class="cn-icon cn-icon-arrow-right"></i></el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -125,6 +125,15 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
routerJump () {
|
||||||
|
this.$router.push({
|
||||||
|
path: '/panel/networkAppPerformance',
|
||||||
|
query: {
|
||||||
|
tabIndex: 2,
|
||||||
|
t: +new Date()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
resize () {
|
resize () {
|
||||||
this.myChart.resize()
|
this.myChart.resize()
|
||||||
this.myChart2.resize()
|
this.myChart2.resize()
|
||||||
|
|||||||
Reference in New Issue
Block a user