From cdd1f2113f032e7d1105400a5e4651b9af420445 Mon Sep 17 00:00:00 2001 From: yangsy Date: Fri, 26 Dec 2025 15:23:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=89=A9=E5=B1=95=E4=BA=A4=E6=8D=A2?= =?UTF-8?q?=E6=9C=BA=E7=AB=AF=E5=8F=A3=E8=AF=8A=E6=96=AD=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/domain/biz/diag/ndm-switch-diag-info.ts | 8 ++++++++ .../components/current-diag/switch-port-card.vue | 6 ++++++ 2 files changed, 14 insertions(+) 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 || '-' }}