blob: b78f1f2bfad76a36573e4bd214cb5774e42efa46 (
plain)
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
|
<template>
<div>
<el-row style="border-bottom: 1px solid #eee">
<!--头部-->
<el-col :span="24" class="topbar-wrap" id="nav">
<el-menu :default-active="activeIndex" mode="horizontal"
background-color="#545c64"
text-color="#fff"
active-text-color="#ffd04b">
<div class="topbar-title">
<span style="font-size: 18px;">Argvs 邮件服务测绘系统</span>
</div>
<el-menu-item index="1">
<router-link :to="{name:'Index'}">邮件服务测绘报告</router-link>
</el-menu-item>
<el-menu-item style="" index="2">
<router-link :to="{name:'MailLog'}">邮件通联日志报告</router-link>
</el-menu-item>
<el-menu-item index="3">
<router-link :to="{name:'Settings'}">设置</router-link>
</el-menu-item>
</el-menu>
</el-col>
</el-row>
<router-view></router-view>
</div>
</template>
<script>
export default {
data(){
return {
userName:'admin',
activeIndex:'1'
}
},
methods: {
logout(){
sessionStorage.clear();
this.$router.push('/');
}
},
mounted(){
this.userName=sessionStorage.getItem('user')
}
}
</script>
<style scoped>
.topbar-wrap{
height: 60px;
line-height: 60px;
background: #fff;
padding: 0;
}
.topbar-logo{
float: left;
width: 59px;
line-height: 26px;
}
.topbar-logo img{
height: 50px;
margin-top: 5px;
margin-left: 2px;
}
.topbar-title{
float: left;
text-align: left;
width: 200px;
padding-left: 10px;
color: #fff;
}
.topbar-account{
float: right;
padding-right: 12px;
}
.userinfo-inner{
cursor: pointer;
padding-left: 10px;
}
a{
text-decoration:none;
}
</style>
|