feat: history diag card (basically)

This commit is contained in:
yangsy
2025-09-05 17:07:32 +08:00
parent 0c6db1fb8c
commit ab073ac021
17 changed files with 969 additions and 17 deletions

View File

@@ -10,6 +10,7 @@ import DeviceCommonCard from './current-diag-card/device-common-card.vue';
import DeviceHardwareCard from './current-diag-card/device-hardware-card.vue';
import SecurityBoxInfoCard from './current-diag-card/security-box-info-card.vue';
import SecurityBoxCircuitCard from './current-diag-card/security-box-circuit-card.vue';
import SecurityBoxHistoryDiagCard from './history-diag-card/security-box-history-diag-card.vue';
const props = defineProps<{
stationCode: string;
@@ -60,11 +61,14 @@ const selectedTab = ref('设备状态');
<SecurityBoxCircuitCard :station-code="stationCode" :ndm-security-box="ndmSecurityBox" :circuits="circuits" />
</NFlex>
</NTabPane>
<NTabPane name="诊断历史" tab="诊断历史"></NTabPane>
<NTabPane name="历史诊断" tab="历史诊断">
<!-- 历史诊断组件中包含请求逻辑当改变选择的设备时需要重新发起请求因此添加显式的key触发组件的更新 -->
<SecurityBoxHistoryDiagCard :station-code="stationCode" :ndm-security-box="ndmSecurityBox" :key="ndmSecurityBox.id" />
</NTabPane>
<!-- <NTabPane name="设备配置" tab="设备配置"></NTabPane> -->
<!-- <NTabPane name="原始数据" tab="原始数据">
<NTabPane name="原始数据" tab="原始数据">
<pre>{{ { ...ndmSecurityBox, lastDiagInfo } }}</pre>
</NTabPane> -->
</NTabPane>
</NTabs>
</NCard>
</template>