diff --git a/src/apis/domain/biz/diag/ndm-switch-diag-info.ts b/src/apis/domain/biz/diag/ndm-switch-diag-info.ts index aea0e4f..ffffd43 100644 --- a/src/apis/domain/biz/diag/ndm-switch-diag-info.ts +++ b/src/apis/domain/biz/diag/ndm-switch-diag-info.ts @@ -19,4 +19,12 @@ export interface NdmSwitchPortInfo { outFlow: number; portName: string; upDown: number; + + lastChangeTime: string; + + opticalTemperature?: number; + opticalVoltage?: number; + opticalBiasCurrent?: number; + opticalReceivePower?: number; + opticalTransmitPower?: number; } diff --git a/src/components/device/device-card/components/current-diag/switch-port-card.vue b/src/components/device/device-card/components/current-diag/switch-port-card.vue index 8fcc105..adced51 100644 --- a/src/components/device/device-card/components/current-diag/switch-port-card.vue +++ b/src/components/device/device-card/components/current-diag/switch-port-card.vue @@ -277,9 +277,15 @@ onBeforeUnmount(() => { {{ port.portName }} {{ getPortStatusValue(port) }} + {{ port.lastChangeTime.replace('days', '天') }} 前 {{ transformPortSpeed(port, 'in') }} {{ transformPortSpeed(port, 'out') }} {{ transformPortSpeed(port, 'total') }} + {{ port.opticalTemperature }} ℃ + {{ port.opticalVoltage }} mV + {{ port.opticalBiasCurrent }} μA + {{ port.opticalReceivePower / 100 }} dBm + {{ port.opticalTransmitPower / 100 }} dBm {{ getLowerDeviceByPort(port)?.name || '-' }}