<template>
    <div class="pd10">
        <el-row>
            <el-col>
                <el-tabs v-model.trim="activeName" @tab-click="handleClick" type="border-card">
                    <el-tab-pane label="数据质量统计表" name="first" :style="'height:' + vh + ';'">
                        <Statisticaltable v-if="activeName == 'first'"></Statisticaltable>
                    </el-tab-pane>

                    <!--            <el-tab-pane-->
                    <!--              label="数据质量核查"-->
                    <!--              name="second"-->
                    <!--              :style="'height:' + vh + ';'"-->
                    <!--            >-->
                    <!--            <Qualityverification v-if="activeName=='second'"></Qualityverification>-->
                    <!--            </el-tab-pane>-->

                    <!--            <el-tab-pane-->
                    <!--              label="数据质量核查详情"-->
                    <!--              name="third"-->
                    <!--              :style="'height:' + vh + ';'"-->
                    <!--            >-->
                    <!--            <Verificationdetails v-if="activeName=='third'"></Verificationdetails>-->
                    <!--            </el-tab-pane>-->
                </el-tabs>
            </el-col>
        </el-row>
    </div>
</template>
<script>
import Statisticaltable from './components/mainnetwork/Statisticaltable.vue'
import Qualityverification from './components/mainnetwork/Qualityverification.vue'
import Verificationdetails from './components/mainnetwork/Verificationdetails.vue'
export default {
    name: 'zwsjzlck',
    components: { Statisticaltable, Qualityverification, Verificationdetails },
    data() {
        return {
            vh: '',
            activeName: 'first',
            device: ''
        }
    },
    created() {},
    mounted() {
        this.setHeight()
        window.addEventListener('resize', this.setHeight)
    },
    beforeDestroy() {
        window.removeEventListener('resize', this.setHeight)
    },
    methods: {
        setHeight() {
            this.device = window.devicePixelRatio
            this.vh = window.sessionStorage.getItem('appheight') - 80 + 'px'
        },
        handleClick(tab, event) {
            //   console.log(tab, event);
        }
    }
}
</script>
<style lang="less" scoped>
@import url('../../styles/comStyle.less');
</style>
