|
@@ -14,6 +14,10 @@
|
|
|
/>
|
|
|
<top-nav id="topmenu-container" class="topmenu-container" v-if="topNav" />
|
|
|
|
|
|
+ <div class="yong_hu">
|
|
|
+ <span class="span">{{ danWie }}</span>
|
|
|
+ <span>{{ yongHu }}</span>
|
|
|
+ </div>
|
|
|
<div class="right-menu">
|
|
|
<template v-if="device !== 'mobile'">
|
|
|
<screenfull id="screenfull" class="right-menu-item hover-effect" />
|
|
@@ -92,14 +96,16 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
user: {},
|
|
|
+ danWie: "",
|
|
|
+ yongHu: "",
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.getUser();
|
|
|
// console.log(this.sidebar)
|
|
|
// console.log(this.$route)
|
|
|
- if(this.$route.query.name=='/regulations'){
|
|
|
- this.sidebar.opened=false;
|
|
|
+ if (this.$route.query.name == "/regulations") {
|
|
|
+ this.sidebar.opened = false;
|
|
|
}
|
|
|
// /print
|
|
|
},
|
|
@@ -123,6 +129,8 @@ export default {
|
|
|
getUser() {
|
|
|
getUserProfile().then((response) => {
|
|
|
this.user = response.data;
|
|
|
+ this.danWie = response.data.dept.deptName;
|
|
|
+ this.yongHu = response.data.dept.leader;
|
|
|
});
|
|
|
},
|
|
|
},
|
|
@@ -216,4 +224,13 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+.yong_hu {
|
|
|
+ display: inline-block;
|
|
|
+ margin-top: 14px;
|
|
|
+ font-size: 15px;
|
|
|
+ margin-left: 60%;
|
|
|
+}
|
|
|
+.span {
|
|
|
+ margin-right: 60px;
|
|
|
+}
|
|
|
</style>
|