fix : 主次账号消息框展示、审批记录优化、头像框组件优化
This commit is contained in:
@@ -17,9 +17,10 @@
|
||||
<ul>
|
||||
<li>主次账号切换</li>
|
||||
<li class="avatar-li" v-for="item in accountList" @click="accountChange(item.userId)">
|
||||
<el-badge :value="item.taskCount">
|
||||
<el-badge :value="item.taskCount" v-if="item.taskCount!==0">
|
||||
<el-avatar>{{ item.nickName }}</el-avatar>
|
||||
</el-badge>
|
||||
<el-avatar v-else>{{ item.nickName }}</el-avatar>
|
||||
<div class="right-li">
|
||||
<div class="name-line">
|
||||
<span v-if="item.accountType==='0'" class="zhu">主</span>
|
||||
@@ -68,6 +69,7 @@ import {useTagsView} from '@/stores/tagsview';
|
||||
import {getUserAccount} from "@/api/user/user";
|
||||
import {switchAccount} from "@/api/login";
|
||||
import {setToken} from "../../utils/auth";
|
||||
import {ElNotification} from "element-plus";
|
||||
|
||||
const authStore = useAuthStore()
|
||||
const permisstionStore = usePermisstionStroe()
|
||||
@@ -91,7 +93,13 @@ const nullBlockClick = () => {
|
||||
}
|
||||
const handleVisitedP = () => {
|
||||
getUserAccount().then(res => {
|
||||
console.log(res)
|
||||
if (res.code !== 1000) {
|
||||
ElNotification({
|
||||
title: '提示',
|
||||
message: res.msg,
|
||||
type: res.code === 1000 ? 'success' : 'error'
|
||||
})
|
||||
}
|
||||
accountList.value = res.data
|
||||
nextTick(() => {
|
||||
visitedP.value = !visitedP.value
|
||||
@@ -137,9 +145,11 @@ const handleLogout = () => {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
:deep(.el-badge){
|
||||
|
||||
:deep(.el-badge) {
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
:deep(.el-badge__content.is-fixed) {
|
||||
position: absolute;
|
||||
right: 26px;
|
||||
|
||||
Reference in New Issue
Block a user