fix : 右上角用户展示样式优化
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>主次账号切换</li>
|
<li>主次账号切换</li>
|
||||||
<li class="avatar-li" v-for="item in accountList" @click="accountChange(item.userId)">
|
<li class="avatar-li" v-for="item in accountList" @click="accountChange(item.userId)">
|
||||||
<el-avatar>{{ item.nickName }}</el-avatar>
|
<el-avatar><span>{{ item.nickName }}</span></el-avatar>
|
||||||
<div class="right-li">
|
<div class="right-li">
|
||||||
<div class="name-line">
|
<div class="name-line">
|
||||||
<span v-if="item.accountType==='0'" class="zhu">主</span>
|
<span v-if="item.accountType==='0'" class="zhu">主</span>
|
||||||
@@ -25,7 +25,9 @@
|
|||||||
<span>{{ item.jobActivityDesc }}</span>
|
<span>{{ item.jobActivityDesc }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span :title="item.companyName+'/'+item.departmentName">{{ item.companyName }}/{{ item.departmentName }}</span>
|
<span :title="item.companyName+'/'+item.departmentName">{{ item.companyName }}/{{
|
||||||
|
item.departmentName
|
||||||
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -71,7 +73,6 @@ const tagsViewStore = useTagsView()
|
|||||||
const userInfo = ref({})
|
const userInfo = ref({})
|
||||||
const visitedP = ref(false)
|
const visitedP = ref(false)
|
||||||
const accountList = ref([])
|
const accountList = ref([])
|
||||||
const selectUserId = ref()
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
setUserInfo()
|
setUserInfo()
|
||||||
@@ -126,11 +127,13 @@ const handleLogout = () => {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
:deep(.el-avatar--circle) {
|
:deep(.el-avatar--circle) {
|
||||||
|
display: inline-block;
|
||||||
|
line-height: 40px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
background-color: #8a7243;
|
background-color: #8a7243;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
/* width: 30px; */
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
@@ -196,6 +199,11 @@ const handleLogout = () => {
|
|||||||
|
|
||||||
.name-line {
|
.name-line {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
|
width: 184px;
|
||||||
|
-webkit-line-clamp: 1;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
.zhu {
|
.zhu {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -224,11 +232,18 @@ const handleLogout = () => {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
|
padding: 0 6px;
|
||||||
|
height: 28px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
text-align: left;
|
||||||
|
font-size: 14px;
|
||||||
|
cursor: pointer;
|
||||||
|
border-bottom: 1px solid #e6e6e6;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: #666666 !important;
|
color: #666666 !important;
|
||||||
background-color: #eaeaea;
|
background-color: #eaeaea;
|
||||||
@@ -238,15 +253,6 @@ const handleLogout = () => {
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
padding: 0 10px;
|
|
||||||
height: 28px;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
text-align: left;
|
|
||||||
font-size: 14px;
|
|
||||||
cursor: pointer;
|
|
||||||
border-bottom: 1px solid #e6e6e6;
|
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user