refactor: rename
This commit is contained in:
@@ -11,7 +11,7 @@ import DeviceCommonCard from './current-diag-card/device-common-card.vue';
|
||||
import DeviceHardwareCard from './current-diag-card/device-hardware-card.vue';
|
||||
import NvrDiskCard from './current-diag-card/nvr-disk-card.vue';
|
||||
import NvrRecordDiagCard from './current-diag-card/nvr-record-diag-card.vue';
|
||||
import NvrDiagHistoryCard from './history-diag-card/nvr-diag-history-card.vue';
|
||||
import NvrHistoryDiagCard from './history-diag-card/nvr-history-diag-card.vue';
|
||||
|
||||
const props = defineProps<{
|
||||
stationCode: string;
|
||||
@@ -70,7 +70,7 @@ const selectedTab = ref('设备状态');
|
||||
</NTabPane>
|
||||
<NTabPane name="历史诊断" tab="历史诊断">
|
||||
<!-- 历史诊断组件中包含请求逻辑,当改变选择的设备时需要重新发起请求,因此添加显式的key触发组件的更新 -->
|
||||
<NvrDiagHistoryCard :station-code="stationCode" :ndm-nvr="ndmNvr" :key="ndmNvr.id" />
|
||||
<NvrHistoryDiagCard :station-code="stationCode" :ndm-nvr="ndmNvr" :key="ndmNvr.id" />
|
||||
</NTabPane>
|
||||
<!-- <NTabPane name="设备配置" tab="设备配置"></NTabPane> -->
|
||||
<NTabPane v-if="userStore.isSuperAdmin" name="原始数据" tab="原始数据">
|
||||
|
||||
Reference in New Issue
Block a user