<template>
    <div class="all">
        <!-- 头部区域上-->
    <div class="head">
        <div class="logo"></div>
        <div class="headRight">
            <i class="ico"></i> |
            <span class="photo"></span>
            <span class="name">你好</span> |
            <a href="#" class="logout" @click="logout" >退出</a>
        </div>
        </div>
        <!-- 头部菜单栏 -->
        <div class="headf">
           <el-menu  mode="horizontal" >
    <el-menu-item index="1"><i class="el-icon-menu"></i>基础信息</el-menu-item>
    <el-menu-item index="2"><i class="el-icon-menu"></i>试题库</el-menu-item>
    <el-menu-item index="3"><i class="el-icon-menu"></i>作业管理</el-menu-item>
    <el-menu-item index="4"><i class="el-icon-menu"></i>学情报告</el-menu-item>
           </el-menu>
        </div>

        <!-- 视图体区 -->
        <el-card class="con">
            <router-view></router-view>
        </el-card>

        <div class="footer"><p>copyright@2013-2019 All Right</p></div>
      
    </div>
</template>
<script>
export default {
    
    data(){
       return {

       }
    },
    methods:{
        logout(){
            this.$router.push('/login')
        }
    }
}
</script>
<style scoped>

.head {
    overflow: hidden;
    width: 100%;
    height: 68px;
    background-color: #529BFF;
line-height: 68px;
color: #fff;
}
.logo {
    float: left;
    width: 300px;
    height: 40px;
    background-color: pink;
    margin-left: 10px;
   margin-top: 15px;
}

.headRight {
    float: right;
font-size: 12px;

}
.ico {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    background-color: pink;
    
}
.photo {
     display: inline-block;
     vertical-align: middle;
    width: 42px;
    height: 42px;
    background-color: pink;
    margin: 0 5px;
    border-radius: 50%;
}
.logout {
    color: #fff;
    margin-right: 15px;
}
.headf {
    height: 52px;
    width: 100%;
    background-color: #fff;
    position: relative;
    z-index: 999;
   
   
}
 .el-menu {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%)
 }    
 .el-menu-item {
     margin-right: 20px!important;
 } 
.el-menu--horizontal>.el-menu-item{
    height: 52px;
    line-height: 52px;
}
/* 主体区 */
.con{
    margin:15px auto 0;
    width: 1200px;
    height: 100%;
    background-color: #fff;
    
}
.all {
 position: relative;
}
.footer {
    color: #B1B9CF;
   position: absolute;
   bottom: -80px;
   left: 50%;
   transform: translateX(-50%)


}


</style>