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
<template>
<el-container class="main-container">
<el-header>
<head-index/>
</el-header>
<el-container>
<el-main>
<transition name="el-fade-in">
<div class="menu-block">
<left-menu/>
</div>
</transition>
<div class="content">
<div class="router-block">
<!--<tab/>-->
<router-view class="child-view" v-loading="$store.state.mainLoad"/>
</div>
</div>
</el-main>
</el-container>
</el-container>
</template>
<script>
import headIndex from './headIndex'
import leftMenu from './leftMenu'
import tab from './tab'
export default {
components: {leftMenu, headIndex,tab},
data(){
return {
transitionName: 'slide-left',
menuList:this.$store.state.menuList
}
},
computed: {
menuType() {
return this.$store.state.menuType;
}
}
}
</script>
<style scoped lang="less">
@import "../../util/public";
.el-header{
background: #333333;
color: white;
}
.el-main{
margin: 0;
padding: 0;
background: #f8f8f8;
.menu-block{
float: left;
height: 100%;
overflow: auto;
}
.content{
display: flex;
height: 100%;
.router-block{
width: 100%;
height: 100%;
position: relative;
.child-view{
height: calc(100% - 40px);
width: 100%;
overflow-y: auto;
}
}
}
}
.main-container{
height: 100%;
}
</style>