kimi
2020-01-19 5de484abfdf96f372aea06e66f2710ac66a110dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<template>
    <div style="margin: 0;">
        <el-container style="height: 100vh; box-sizing: border-box;">
    
          <el-aside width="200px" style="background-color: rgb(238, 241, 246); ">
            <div style="width: 100%;height: 60px;"></div>
            <el-menu default-active="1"  @select="handleSelect">
                <el-menu-item index="0">
                  <i class="el-icon-menu"></i>
                  <span slot="title">首页</span>
                </el-menu-item>
                
                
              <el-submenu index="1">
                 <template slot="title">
                           <i class="el-icon-menu"></i>
                           <span>项目管理</span>
                         </template>
                <el-menu-item-group>
                  <el-menu-item index="1-1">信息广场</el-menu-item>
                  <el-menu-item index="1-2">项目总览</el-menu-item>
                  <el-menu-item index="1-3">项目分析</el-menu-item>
                  <el-menu-item index="1-4">归档报告</el-menu-item>
                </el-menu-item-group>
              
              </el-submenu>
                <el-menu-item index="2">
                  <i class="el-icon-menu"></i>
                  <span slot="title">任务管理</span>
                </el-menu-item>
                    
              
            </el-menu>
          </el-aside>
          
          <el-container>
            
             
            <el-header style="text-align: right; font-size: 15px;padding-right: 40px;">
                <i class="el-icon-user-solid"></i>
                <span>admin</span>
            </el-header>
            
            <el-main>
                <router-view></router-view>
            </el-main>
          </el-container>
        </el-container>
    </div>
  
</template>
 
 
 
<script>
 
export default {
  data() {
 
        return {
            breadcrumbItems:[],
        }
  },
  methods: {
      handleSelect(key, keyPath){
              switch(key){
                case '0':
                    this.$router.push('/mine');
                    this.breadcrumbItems = ["首页"];
                  break;
                  case '1-1':
                    this.$router.push('/square');
                    this.breadcrumbItems = ["广场"];
                  break;
                case '2':
                  this.$router.push('/project')
                    this.breadcrumbItems = ["首页"];
                  break;
                case '3':
                  this.$router.push('/Page3')
                 
                  break;
              }
            },
 
  }
};
</script>
 
<style>
  .el-header {
    background-color: #409EFF;
    color: #333;
    line-height: 60px;
  }
  
  .el-aside {
    color: #333;
  }
</style>