|
|
|
@ -23,10 +23,10 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="userInfo">
|
|
|
|
|
<img src="@/assets/images/profile.jpg" alt="" />
|
|
|
|
|
<!-- <img src="@/assets/images/profile.jpg" alt="" /> -->
|
|
|
|
|
<el-dropdown trigger="click">
|
|
|
|
|
<span class="el-dropdown-link">
|
|
|
|
|
您好xxx<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
|
您好,{{ userName }}<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
|
|
<el-dropdown-item>退出登录</el-dropdown-item>
|
|
|
|
@ -72,6 +72,7 @@ export default {
|
|
|
|
|
loading: true,
|
|
|
|
|
searchList:[],
|
|
|
|
|
getData:{},
|
|
|
|
|
userName:'',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
watch:{
|
|
|
|
@ -90,7 +91,13 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() { this.dataNow(1) },
|
|
|
|
|
mounted() { this.getDataInterval(1) },
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getDataInterval(1)
|
|
|
|
|
console.log(localStorage.getItem('userDto'))
|
|
|
|
|
let user = JSON.parse(localStorage.getItem('userDto'))
|
|
|
|
|
console.log(user)
|
|
|
|
|
this.userName = user.realName
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
gotoBgpage() {
|
|
|
|
|
if(this.input) {
|
|
|
|
|