|
@@ -41,12 +41,13 @@
|
|
|
:deviceId="optionValue"
|
|
|
:device-type="deviceType"
|
|
|
/>
|
|
|
- <AlarmHistory
|
|
|
+ <component
|
|
|
v-if="activeKey == 'faultRecord'"
|
|
|
+ :is="AlarmHistoryComponent"
|
|
|
ref="handlerHistoryTable"
|
|
|
class="vent-margin-t-20"
|
|
|
:deviceId="optionValue"
|
|
|
- :device-type="deviceType"
|
|
|
+ :device-type="calcDeviceType"
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -61,7 +62,6 @@
|
|
|
import BottomMenu from '/@/views/vent/comment/components/bottomMenu.vue';
|
|
|
import DedustHistory from './components/DedustHistory.vue';
|
|
|
import HandleHistory from './components/HandleHistory.vue';
|
|
|
- import AlarmHistory from './components/AlarmHistory.vue';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import { useSystemSelect } from '/@/hooks/vent/useSystemSelect';
|
|
|
import { useGlobSetting } from '/@/hooks/setting';
|
|
@@ -77,6 +77,16 @@
|
|
|
return defineAsyncComponent(() => import('./components/DedustHome.vue'));
|
|
|
}
|
|
|
});
|
|
|
+ const AlarmHistoryComponent = computed(() => {
|
|
|
+ // const sysOrgCode = 'sdmtjtbltmk';
|
|
|
+ switch (sysOrgCode) {
|
|
|
+ // 布尔台
|
|
|
+ case 'sdmtjtbetmk':
|
|
|
+ return defineAsyncComponent(() => import('./components/AlarmHistoryBet.vue'));
|
|
|
+ default:
|
|
|
+ return defineAsyncComponent(() => import('./components/AlarmHistory.vue'));
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
const { currentRoute } = useRouter();
|
|
|
const activeKey = ref('monitor');
|