You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
161 lines
3.5 KiB
161 lines
3.5 KiB
<template>
|
|
<div>
|
|
<div class="navbar">
|
|
<p class="breadcrumb-container">汇融供应链贷后监管平台</p>
|
|
<div class="right-menu">
|
|
<!-- <p>{{Orgname}} 欢迎, {{name}}</p> <!–{{departmentName}}–>-->
|
|
<p>欢迎您,{{pNameAndDepartmentNameAndPostName}} {{name}}</p>
|
|
<img src="@/assets/images/info.png">
|
|
<!-- <img src="@/assets/images/dy.png" @click="logout"> -->
|
|
<span class="backToHome" @click="logout"><i class="el-icon-back"></i>返回首页</span>
|
|
</div>
|
|
</div>
|
|
<el-footer class="footer" height="40px">Copyright © {{ year }} 汇融供应链贷后监管平台 All Rights Reserved</el-footer>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data(){
|
|
return {
|
|
Orgname:'',
|
|
departmentName:'',
|
|
name:'',
|
|
year:'',
|
|
pNameAndDepartmentNameAndPostName:'',
|
|
}
|
|
},
|
|
mounted(){
|
|
this.Orgname = window.sessionStorage.getItem('Orgname')
|
|
this.departmentName = window.sessionStorage.getItem('departmentName')
|
|
this.name = window.sessionStorage.getItem('name')
|
|
this.pNameAndDepartmentNameAndPostName = window.sessionStorage.getItem('pNameAndDepartmentNameAndPostName')
|
|
this.name = window.sessionStorage.getItem('name')
|
|
var nowDate = new Date()
|
|
this.year = nowDate.getFullYear()
|
|
},
|
|
methods: {
|
|
logout() {
|
|
// this.$router.push({path: '/home'})
|
|
window.opener = null
|
|
window.open('about:blank', '_top').close()
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
@import "~@/styles/variables.scss";
|
|
.navbar {
|
|
height: 60px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
background: $header-bg;
|
|
padding: 0 30px;
|
|
box-shadow: 0 1px 4px rgba(0,21,41,.08);
|
|
|
|
.hamburger-container {
|
|
line-height: 46px;
|
|
height: 100%;
|
|
float: left;
|
|
cursor: pointer;
|
|
transition: background .3s;
|
|
-webkit-tap-highlight-color:transparent;
|
|
|
|
&:hover {
|
|
background: rgba(0, 0, 0, .025)
|
|
}
|
|
}
|
|
|
|
.breadcrumb-container {
|
|
display: flex;
|
|
align-items: center;
|
|
color: #fff;
|
|
font-size: 26px;
|
|
line-height: 60px;
|
|
margin: 0;
|
|
float: left;
|
|
}
|
|
|
|
.right-menu {
|
|
float: right;
|
|
height: 100%;
|
|
line-height: 60px;
|
|
color: #fff;
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
p{
|
|
display: inline-block;
|
|
margin: 0;
|
|
padding: 0;
|
|
padding: 0 15px;
|
|
}
|
|
img{
|
|
vertical-align: middle;
|
|
margin: 0 10px;
|
|
cursor: pointer;
|
|
}
|
|
.backToHome{
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
padding: 0 15px;
|
|
cursor: pointer;
|
|
}
|
|
.backToHome:hover{
|
|
background: #087dba;
|
|
}
|
|
.right-menu-item {
|
|
display: inline-block;
|
|
padding: 0 8px;
|
|
height: 100%;
|
|
font-size: 18px;
|
|
color: #5a5e66;
|
|
vertical-align: text-bottom;
|
|
|
|
&.hover-effect {
|
|
cursor: pointer;
|
|
transition: background .3s;
|
|
|
|
&:hover {
|
|
background: rgba(0, 0, 0, .025)
|
|
}
|
|
}
|
|
}
|
|
|
|
.avatar-container {
|
|
margin-right: 30px;
|
|
|
|
.avatar-wrapper {
|
|
margin-top: 5px;
|
|
position: relative;
|
|
|
|
.user-avatar {
|
|
cursor: pointer;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.el-icon-caret-bottom {
|
|
cursor: pointer;
|
|
position: absolute;
|
|
right: -20px;
|
|
top: 25px;
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.footer{
|
|
position: fixed;
|
|
bottom: 0;
|
|
width: 100%;
|
|
line-height: 40px;
|
|
background: #E9F1F7;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
color: #666;
|
|
}
|
|
</style>
|
|
|