|
|
@@ -15,76 +15,15 @@
|
|
|
<top-nav id="topmenu-container" class="topmenu-container" v-if="topNav" />
|
|
|
|
|
|
<div class="right-menu">
|
|
|
- <template v-if="device !== 'mobile'">
|
|
|
- <search id="header-search" class="right-menu-item" />
|
|
|
-
|
|
|
- <!-- <el-tooltip content="源码地址" effect="dark" placement="bottom">
|
|
|
- <ruo-yi-git id="ruoyi-git" class="right-menu-item hover-effect" />
|
|
|
- </el-tooltip>
|
|
|
-
|
|
|
- <el-tooltip content="文档地址" effect="dark" placement="bottom">
|
|
|
- <ruo-yi-doc id="ruoyi-doc" class="right-menu-item hover-effect" />
|
|
|
- </el-tooltip> -->
|
|
|
- <el-tooltip content="版本说明" effect="dark" placement="bottom">
|
|
|
- <version
|
|
|
- id="version"
|
|
|
- class="right-menu-item hover-effect"
|
|
|
- @openMsg="openMsg"
|
|
|
- />
|
|
|
- </el-tooltip>
|
|
|
-
|
|
|
- <el-dialog
|
|
|
- append-to-body
|
|
|
- :visible.sync="dialogVisible"
|
|
|
- width="560px"
|
|
|
- :show-close="false"
|
|
|
- :close-on-click-modal="false"
|
|
|
- >
|
|
|
- <div slot="title" class="hearders">
|
|
|
- <div class="leftTitle">版本说明</div>
|
|
|
- <div class="rightBoxs">
|
|
|
- <img
|
|
|
- src="@/assets/images/Close@2x.png"
|
|
|
- alt=""
|
|
|
- @click="dialogVisible = false"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="dialogSty">
|
|
|
- <h2>v6.0.0</h2>
|
|
|
- <p>1.第六阶段完整版</p>
|
|
|
- </div>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="dialogVisible = false">关 闭</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog>
|
|
|
- <screenfull id="screenfull" class="right-menu-item hover-effect" />
|
|
|
-
|
|
|
- <el-tooltip content="布局大小" effect="dark" placement="bottom">
|
|
|
- <size-select id="size-select" class="right-menu-item hover-effect" />
|
|
|
- </el-tooltip>
|
|
|
- </template>
|
|
|
-
|
|
|
- <el-dropdown
|
|
|
- class="avatar-container right-menu-item hover-effect"
|
|
|
- trigger="click"
|
|
|
- >
|
|
|
- <div class="avatar-wrapper">
|
|
|
- <img :src="avatar" class="user-avatar" />
|
|
|
- <i class="el-icon-caret-bottom" />
|
|
|
- </div>
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
- <router-link to="/user/profile">
|
|
|
- <el-dropdown-item>个人中心</el-dropdown-item>
|
|
|
- </router-link>
|
|
|
- <el-dropdown-item @click.native="setting = true">
|
|
|
- <span>布局设置</span>
|
|
|
- </el-dropdown-item>
|
|
|
- <el-dropdown-item divided @click.native="logout">
|
|
|
- <span>退出登录</span>
|
|
|
- </el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
+ <div class="right-menu-item">
|
|
|
+ <img :src="avatar" class="user-avatar" />
|
|
|
+ </div>
|
|
|
+ <div class="right-menu-item user-name">
|
|
|
+ <p>{{ name }}</p>
|
|
|
+ </div>
|
|
|
+ <div class="right-menu-item" @click="logout">
|
|
|
+ <img src="../../assets/images/icon_quit.png" />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<el-dialog
|
|
|
append-to-body
|
|
|
@@ -164,7 +103,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters(["sidebar", "avatar", "device"]),
|
|
|
+ ...mapGetters(["sidebar", "avatar", "device", "name"]),
|
|
|
setting: {
|
|
|
get() {
|
|
|
return this.$store.state.settings.showSettings;
|
|
|
@@ -183,13 +122,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|
|
|
- // if (this.$route.name !== "StationLetter") {
|
|
|
- // this.$api.inquireinformsys_userinformUnReadSum().then((res) => {
|
|
|
- // if (res.data > 0) {
|
|
|
- // this.getDontReadList();
|
|
|
- // }
|
|
|
- // });
|
|
|
- // }
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
/**
|
|
|
@@ -600,7 +533,20 @@ export default {
|
|
|
font-size: 18px;
|
|
|
color: #5a5e66;
|
|
|
vertical-align: text-bottom;
|
|
|
-
|
|
|
+ img {
|
|
|
+ vertical-align: middle;
|
|
|
+ }
|
|
|
+ p {
|
|
|
+ font-size: 18px;
|
|
|
+ color: #222222;
|
|
|
+ margin-top: 2px;
|
|
|
+ margin-right: 6px;
|
|
|
+ }
|
|
|
+ .user-avatar {
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ border-radius: 10px;
|
|
|
+ }
|
|
|
&.hover-effect {
|
|
|
cursor: pointer;
|
|
|
transition: background 0.3s;
|
|
|
@@ -610,7 +556,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ .user-name {
|
|
|
+ // margin-top: 10px;
|
|
|
+ }
|
|
|
.avatar-container {
|
|
|
margin-right: 30px;
|
|
|
|
|
|
@@ -678,7 +626,7 @@ export default {
|
|
|
width: 400px !important;
|
|
|
padding: 0px !important;
|
|
|
& > .el-notification__group {
|
|
|
- width: 100%;
|
|
|
+ width: 100%;
|
|
|
margin: 0px;
|
|
|
& > .el-notification__title {
|
|
|
text-align: center;
|