Browse Source

供应链-右上角欢迎语

zhanglei
Zhao Qiqi 3 years ago
parent
commit
a5c495130f
  1. 12
      anrui-scm/anrui-scm-ui/src/layout/components/Navbar.vue

12
anrui-scm/anrui-scm-ui/src/layout/components/Navbar.vue

@ -3,13 +3,14 @@
<div class="navbar">
<h3 class="breadcrumb-container">安瑞集团信息化平台</h3>
<div class="right-menu">
<p>{{Orgname}} {{departmentName}} 欢迎, {{name}}</p>
<!-- <p>{{Orgname}} {{departmentName}} 欢迎, {{name}}</p>-->
<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 © 2021 安瑞集团 All Rights Reserved</el-footer>
<el-footer class="footer" height="40px">Copyright © {{ year }} 安瑞集团 All Rights Reserved</el-footer>
</div>
</template>
@ -19,13 +20,18 @@
return {
Orgname: '',
departmentName: '',
name: ''
name: '',
year:'',
pNameAndDepartmentNameAndPostName:''
}
},
mounted() {
this.Orgname = window.sessionStorage.getItem('Orgname')
this.departmentName = window.sessionStorage.getItem('departmentName')
this.pNameAndDepartmentNameAndPostName = window.sessionStorage.getItem('pNameAndDepartmentNameAndPostName')
this.name = window.sessionStorage.getItem('name')
var nowDate = new Date()
this.year = nowDate.getFullYear()
},
methods: {
logout() {

Loading…
Cancel
Save