diff --git a/src/components/device/device-card/ndm-camera/camera-current-diag.vue b/src/components/device/device-card/ndm-camera/camera-current-diag.vue index a0959e7..d0f77e7 100644 --- a/src/components/device/device-card/ndm-camera/camera-current-diag.vue +++ b/src/components/device/device-card/ndm-camera/camera-current-diag.vue @@ -141,6 +141,11 @@ const commonInfo = computed(() => { // } = ndmDevice.value; + let operStatus = '-'; + if (!!ethInfo?.operStatus) { + operStatus = ethInfo?.operStatus === '1' ? '正常' : '异常'; + } + return [ { title: '设备型号信息', @@ -161,8 +166,7 @@ const commonInfo = computed(() => { { label: 'MAC地址', value: ethInfo?.macAddress || '-' }, { label: '连接速率', value: ethInfo?.speed || '-' }, { label: 'MTU', value: ethInfo?.mTU || '-' }, - { label: '管理状态', value: ethInfo?.adminStatus || '-' }, - { label: '运行状态', value: ethInfo?.operStatus || '-' }, + { label: '运行状态', value: operStatus }, ], }, {