<template>
    <el-container class="pd10">
        <el-main class="main">
            <el-row :gutter="20">
                <el-col :span="24">
                    <el-tabs type="border-card" v-model="activeName">
                        <el-tab-pane label="完整性列表" name="tab1" :style="'height:' + vh + ';'">
                            <dataintegrity v-if="activeName == 'tab1'"></dataintegrity>
                        </el-tab-pane>
                        <el-tab-pane label="完整性图表" name="tab2" :style="'height:' + vh + ';'">
                            <dataintegrityechart v-if="activeName == 'tab2'" />
                        </el-tab-pane>
                    </el-tabs>
                </el-col>
            </el-row>
        </el-main>
    </el-container>
</template>
<script>
import { dicData } from '../../../assets/commjs/dictypeData'
import api from '@/api/integraliy/integraliy'
import dataintegrity from './components/completeCild/dataintegrity.vue'
import dataintegrityechart from './components/completeCild/dataintegrityechart.vue'
//import dataintegrityechart from '../../components/dataintegrityechart'

export default {
    name: 'sjwzx',
    components: {
        dataintegrity,
        dataintegrityechart
        // dataintegrityechart
    },
    watch: {},
    computed: {},
    data() {
        return {
            activeName: 'tab1',
            vh: undefined
        }
    },
    created() {},
    mounted() {
        this.setHeight()
        window.addEventListener('resize', this.setHeight)
    },
    beforeDestroy() {
        window.removeEventListener('resize', this.setHeight)
    },
    methods: {
        setHeight() {
            this.vh = window.sessionStorage.getItem('appheight') - 83 + 'px'
        }
    }
}
</script>
<style scoped>
.main {
    overflow: hidden;
}
::-webkit-scrollbar {
    width: 5px;
    height: 0;
}
</style>
<style lang="less" scoped>
@import url('../../../styles/comStyle.less');
::v-deep .el-form-item--small .el-form-item__content,
.el-form-item--small .el-form-item__label {
    height: 32px;
}
</style>
