<template>
    <div class="gasReportInspect">
        <customHeader>报表管理中心</customHeader>
        <div class="content">
            <component :is="currentComponent"></component>
        </div>
    </div>1
</template>

<script setup lang="ts">
import { ref, reactive, onMounted } from 'vue';
import { useGlobSetting } from '/@/hooks/setting';
import indexTime from './index-time.vue'
import indexType from './index-type.vue'
import indexLt from './index-lt.vue'
import customHeader from '/@/components/vent/customHeader.vue';
let currentComponent = ref<any>('')//当前加载组件

let getInit = () => {
    const { sysOrgCode } = useGlobSetting();
    switch (sysOrgCode) {
        case 'sdmtjtbetmk'://布尔台
            currentComponent.value = indexType
            break;
        case 'sdmtjtltmk'://柳塔
            currentComponent.value = indexLt
            break;
        default:
            currentComponent.value = indexTime
    }
}

onMounted(() => {
    getInit()
})
</script>

<style lang="less" scoped>
.gasReportInspect {
    width: 100%;
    height: 100%;
    padding: 80px 10px 15px 10px;
    box-sizing: border-box;
    position: relative;

    .content {
        width: 100%;
        height: 100%;
    }
}
</style>