
<template>
<el-container style="height:100%;border: 1px solid #eee">
  <el-aside width="200px" style="background-color: rgb(238, 241, 246);height:100%;">
    <el-menu :default-openeds="['1', '3']" style="background-color: rgb(238, 241, 246);height:100%;">
      <el-submenu index="1">
        <template slot="title"><i class="el-icon-message"></i>GIC后台组件</template>
        <el-menu-item index="1-1">营销事件</el-menu-item>
        <el-menu-item index="1-2">门店组件</el-menu-item>
        <!-- <el-menu-item index="1-3">选项3</el-menu-item> -->
      </el-submenu>
      <el-submenu index="2">
        <template slot="title"><i class="el-icon-menu"></i>静态组件</template>
        <el-menu-item index="2-1">静态组件</el-menu-item>
        <el-menu-item index="2-2">选项3</el-menu-item>
      </el-submenu>
      <el-submenu index="3">
        <template slot="title"><i class="el-icon-setting"></i>其他组件</template>
        <el-menu-item index="3-1">选项1</el-menu-item>
        <el-menu-item index="3-2">选项2</el-menu-item>
        <el-menu-item index="3-3">选项3</el-menu-item>
      </el-submenu>
    </el-menu>
  </el-aside>

  <el-container style="background-color:#fff;">
    <el-header style="text-align: right; font-size: 12px">
      <el-dropdown>
        <i class="el-icon-setting" style="margin-right: 15px"></i>
        <el-dropdown-menu slot="dropdown">
          <el-dropdown-item>退出登录</el-dropdown-item>
          <el-dropdown-item>重新登录</el-dropdown-item>
        </el-dropdown-menu>
      </el-dropdown>
      <span>damogic</span>
    </el-header>
    <el-main>
      <router-view></router-view>
    </el-main>
  </el-container>
</el-container>
</template>
<style>
  .el-header {
    background-color: #B3C0D1;
    color: #333;
    line-height: 60px;
  }

  .el-aside {
    color: #333;
  }
</style>

<script>
  export default {
    data() {
      const item = {
        date: '2016-05-02',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      };
      return {
        tableData: Array(20).fill(item)
      }
    }
  };
</script>
