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