Merge remote-tracking branch 'origin/feature-ui-fix' into feature-ui-fix

This commit is contained in:
bupengxiang
2023-08-03 10:19:37 +08:00
3 changed files with 52 additions and 6 deletions
@@ -326,7 +326,39 @@ export default {
.user-wrapper { .user-wrapper {
float: right; float: right;
height: 100%; height: 100%;
.small-action {
cursor: pointer;
padding: 0 5px;
display: inline-block;
transition: all .3s;
height: 70%;
line-height: 46px;
&.action-full {
height: 100%;
}
&:hover {
background: rgba(255, 255, 255, 0.3);
}
.avatar {
margin: 20px 10px 20px 0;
color: #1890ff;
background: hsla(0, 0%, 100%, .85);
vertical-align: middle;
}
.icon {
font-size: 16px;
padding: 4px;
}
.anticon {
color: inherit;
}
}
.action { .action {
cursor: pointer; cursor: pointer;
padding: 0 14px; padding: 0 14px;
+20 -5
View File
@@ -33,11 +33,18 @@
</a> </a>
</span> </span>
<header-notice class="action"/> <header-notice class="action"/>
<span style="padding: 12px"> <span style="display:inline-block;padding: 0 0 0 16px">
<a-avatar class="avatar" size="small" :src="getAvatar()"/> <template v-if='getAvatar()'>
<a-avatar class="avatar" size="small" :src="getAvatar()"/>
</template>
<template v-else>
<a-avatar :size="20">
<template #icon> <a-icon type="user"></a-icon></template>
</a-avatar>
</template>
</span> </span>
<a-dropdown> <a-dropdown>
<span class="action"> <span class=" small-action">
<span v-if="isDesktop()">欢迎您,{{ nickname() }}</span> <span v-if="isDesktop()">欢迎您,{{ nickname() }}</span>
</span> </span>
<a-menu slot="overlay" class="user-dropdown-menu-wrapper"> <a-menu slot="overlay" class="user-dropdown-menu-wrapper">
@@ -104,7 +111,7 @@ import { mixinDevice } from '@/utils/mixin.js'
import { getFileAccessHttpUrl, getAction } from '@/api/manage' import { getFileAccessHttpUrl, getAction } from '@/api/manage'
import Vue from 'vue' import Vue from 'vue'
import { UI_CACHE_DB_DICT_DATA } from '@/store/mutation-types' import { UI_CACHE_DB_DICT_DATA } from '@/store/mutation-types'
import { UserOutlined } from '@ant-design/icons-vue';
export default { export default {
name: 'UserMenu', name: 'UserMenu',
mixins: [mixinDevice], mixins: [mixinDevice],
@@ -118,6 +125,7 @@ export default {
} }
}, },
components: { components: {
UserOutlined,
HeaderNotice, HeaderNotice,
UserPassword, UserPassword,
DepartSelect, DepartSelect,
@@ -269,6 +277,7 @@ export default {
.user-wrapper .search-input { .user-wrapper .search-input {
width: 210px; width: 210px;
color: inherit; color: inherit;
margin-right: 8px;
/deep/ .ant-select-selection { /deep/ .ant-select-selection {
background-color: #F7F8FA !important; background-color: #F7F8FA !important;
@@ -284,7 +293,13 @@ export default {
/* update_end author:zhaoxin date:20191129 for: 让搜索框颜色能随主题颜色变换*/ /* update_end author:zhaoxin date:20191129 for: 让搜索框颜色能随主题颜色变换*/
</style> </style>
<style scoped> <style lang="less" scoped>
.ant-avatar {
background-color: #fff;
color: #333 !important;
border: 1px solid #333;
vertical-align: sub;
}
.logout_title { .logout_title {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
@@ -73,7 +73,6 @@
</a-form-model-item> </a-form-model-item>
<a-form-model-item <a-form-model-item
v-show="!show"
:labelCol="labelCol" :labelCol="labelCol"
:wrapperCol="wrapperCol" :wrapperCol="wrapperCol"
prop="perms" prop="perms"