fix: 修复 asset详情视图ping图标颜色
This commit is contained in:
@@ -459,7 +459,6 @@ export default {
|
||||
this.panelIdInner = panelId
|
||||
this.data = chartItem
|
||||
this.detail = detail
|
||||
console.log(this.detail)
|
||||
// console.info(this.data, this.detail)
|
||||
/* if (this.detail[0] && this.detail[0].type && this.detail[0].type == 'endpointInfo') { // endpointInfo的小图表
|
||||
this.$nextTick(() => {
|
||||
|
||||
@@ -1488,7 +1488,6 @@ export default {
|
||||
chartInfo.name = this.$t('project.chart.endpointInfo')
|
||||
chartInfo.from = fromRoute.endpoint
|
||||
const basicInfo = JSON.parse(JSON.stringify(this.obj))
|
||||
console.log(basicInfo)
|
||||
detail.push(
|
||||
{
|
||||
data: {
|
||||
@@ -1553,11 +1552,11 @@ export default {
|
||||
model: basic.model ? basic.model.name : '-',
|
||||
tags: basic.fields,
|
||||
alert: basic.alertNum,
|
||||
endpoint: basic.endpointNum
|
||||
endpoint: basic.endpointNum,
|
||||
// purchaseDate: basic.purchaseDate,
|
||||
// vendor: basic.brand ? basic.brand.name : '-',
|
||||
// sn: basic.sn,
|
||||
// pingStatus: basic.pingInfo ? basic.pingInfo.status : '-',
|
||||
pingStatus: basic.pingInfo ? basic.pingInfo.status : '-',
|
||||
// cabinetStart: basic.cabinetStart,
|
||||
// cabinetEnd: basic.cabinetEnd,
|
||||
// pingLastReply: basic.pingInfo ? basic.pingInfo.lastUpdate : ''
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<div class="alert-label-title">Ping</div>
|
||||
<div class="alert-label-value">
|
||||
<div v-if="alertLabelData" :class="{'green-bg': alertLabelData && alertLabelData.pingInfo && alertLabelData.pingInfo.status === 1,'red-bg': alertLabelData && alertLabelData.pingInfo && alertLabelData.pingInfo.status === 0}" class="active-icon"></div>
|
||||
<span v-if="alertLabelData">{{alertLabelData && alertLabelData.pingInfo && alertLabelData.pingInfo.rtt ? alertLabelData.pingInfo.rtt + 'ms':'--'}}</span>
|
||||
<span v-if="alertLabelData">{{alertLabelData && alertLabelData.pingInfo && alertLabelData.pingInfo.rtt ? alertLabelData.pingInfo.rtt + 'ms':''}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="alert-label-box">
|
||||
|
||||
Reference in New Issue
Block a user