<template>
    <div class='default-main'>
        <el-tabs v-model='activeName' type='border-card'>
            <el-tab-pane label='干扰源用户台账' name='1' >
                <interferenceUserTable v-if="activeName == '1'" />
            </el-tab-pane>
            <el-tab-pane label='敏感及重要用户台账' name='2' >
                <sensitiveUserTable v-if="activeName == '2'" />
            </el-tab-pane>
            <el-tab-pane label='变电站台账' name='3' >
                <substationLedger v-if="activeName == '3'" />
            </el-tab-pane>
            <el-tab-pane label='终端台账' name='4'>
                    <deviceLedgerTable v-if="activeName == '4'" />
            </el-tab-pane>
            <el-tab-pane label='监测点台账' name='5'>
                    <monitorLedgerTable v-if="activeName == '5'" />
            </el-tab-pane>
        </el-tabs>
    </div>
</template>

<script setup lang='ts'>
import { onMounted, reactive, ref, provide } from 'vue'
import interferenceUserTable from './components/interferenceUserTable.vue'
import sensitiveUserTable from './components/sensitiveUserTable.vue'
import substationLedger from './components/substationLedger.vue'
import deviceLedgerTable from './components/deviceLedgerTable.vue'
import monitorLedgerTable from './components/monitorLedgerTable.vue'
import { mainHeight } from '@/utils/layout'

defineOptions({
    name: 'Supervision/Terminaldetection'
})
const activeName = ref('1')
const network = ref('1')
const cycle = ref('1')
const Statistics = ref()
const compatibility = ref()

const layout = mainHeight(63) as any
</script>

<style lang='scss' scoped>
.bars_w {
    width: 100%;
    height: 500px;
}

:deep(.el-tabs__content) {
    height: v-bind('layout.height');
    overflow-y: auto;
}
</style>
