<template>
    <div class="ddkzConfig">
        <el-tabs type="border-card" @tab-click="handleTabClick" v-model="activeTabs">
            <el-tab-pane>
                <span slot="label"><i class="el-icon-document-add"></i> 新增演习</span>
                <DdkzConfigAdd></DdkzConfigAdd>
            </el-tab-pane>
            <el-tab-pane>
                <span slot="label"><i class="el-icon-document-copy"></i> 演习列表</span>
                <DdkzConfigList></DdkzConfigList>
            </el-tab-pane>
            <el-tab-pane>
                <span slot="label"><i class="el-icon-document-checked"></i> 演习审批</span>
                <DdkzConfigApprove></DdkzConfigApprove>
            </el-tab-pane>
        </el-tabs>
    </div>
</template>

<script>
import ddkzConfigAdd from '@/view/sjgl/ddkzConfig/ddkzConfigAdd.vue';
import ddkzConfigList from '@/view/sjgl/ddkzConfig/ddkzConfigList.vue';
import ddkzConfigApprove from '@/view/sjgl/ddkzConfig/ddkzConfigApprove.vue';
export default {
    data() {
        return {
            activeTabs: ''
        }
    },
    components: {
        DdkzConfigAdd: ddkzConfigAdd,
        DdkzConfigList: ddkzConfigList,
        DdkzConfigApprove: ddkzConfigApprove
    },
    methods: {
        handleTabClick() {

        }
    }
}
</script>

<style lang="scss">
.ddkzConfig {
    width: 99%;
    height: 98%;
    padding: 30px;
    box-sizing: border-box;
    overflow-y: auto;

    >.el-tabs--border-card {
        width: calc(100% - 4px);
        height: calc(100% - 4px);
        border: 2px solid #3a5f94c9;
        border-radius: 5px;
        box-sizing: border-box;
        background: #ffffff00;

        >.el-tabs__content {
            width: 100%;
            height: calc(100% - 40px);
            box-sizing: border-box;
        }

        >.el-tabs__header {
            background-color: unset;
            border-bottom: 2px solid #3a5f94c9;

            .el-tabs__item {
                color: #dedede;
            }

            .el-tabs__item.is-active {
                color: #ffe000;
                background-color: #3a5f94c9;
                border-right-color: #3a5f94c9;
                border-left-color: #3a5f94c9;
            }

            .el-tabs__item:not(.is-disabled):hover {
                color: #ffe000;
            }
        }
    }
}
</style>