Showing
1 changed file
with
13 additions
and
1 deletions
| ... | ... | @@ -19,7 +19,7 @@ |
| 19 | 19 | <ListItemMeta> |
| 20 | 20 | <template #avatar> |
| 21 | 21 | <Avatar |
| 22 | - :src="item.sysNotice.avatar ?? 'https://q1.qlogo.cn/g?b=qq&nk=190848757&s=640'" | |
| 22 | + :src="item.sysNotice.avatar ?? defaultAvatar(item.receiverId)" | |
| 23 | 23 | size="large" |
| 24 | 24 | /> |
| 25 | 25 | </template> |
| ... | ... | @@ -169,6 +169,8 @@ |
| 169 | 169 | import { BasicTable, useTable } from '/@/components/Table'; |
| 170 | 170 | import { isAdmin } from '/@/enums/roleEnum'; |
| 171 | 171 | import { getTenantExpireTimeList, getTenantTop10 } from '/@/api/dashboard'; |
| 172 | + import headerImg from '/@/assets/images/logo.png'; | |
| 173 | + | |
| 172 | 174 | export default defineComponent({ |
| 173 | 175 | components: { |
| 174 | 176 | Card, |
| ... | ... | @@ -255,6 +257,12 @@ |
| 255 | 257 | }); |
| 256 | 258 | |
| 257 | 259 | const userStore = useUserStore(); |
| 260 | + console.log(userStore.getUserInfo); | |
| 261 | + const defaultAvatar = (uid) => { | |
| 262 | + if (uid === userStore.getUserInfo?.userId) { | |
| 263 | + return userStore.getUserInfo?.avatar || headerImg; | |
| 264 | + } | |
| 265 | + }; | |
| 258 | 266 | const getContacts = computed(() => { |
| 259 | 267 | return userStore.enterPriseInfo?.contacts; |
| 260 | 268 | }); |
| ... | ... | @@ -295,6 +303,7 @@ |
| 295 | 303 | registerTable, |
| 296 | 304 | isAdmin, |
| 297 | 305 | Empty, |
| 306 | + defaultAvatar, | |
| 298 | 307 | }; |
| 299 | 308 | }, |
| 300 | 309 | }); |
| ... | ... | @@ -303,12 +312,15 @@ |
| 303 | 312 | .noticeTitle:hover { |
| 304 | 313 | border-bottom: 1px solid #ccc; |
| 305 | 314 | } |
| 315 | + | |
| 306 | 316 | :deep(.ant-anchor-link-active > .ant-anchor-link-title) { |
| 307 | 317 | color: #666; |
| 308 | 318 | } |
| 319 | + | |
| 309 | 320 | :deep(.ant-pagination-prev) { |
| 310 | 321 | display: none; |
| 311 | 322 | } |
| 323 | + | |
| 312 | 324 | :deep(.ant-pagination-next) { |
| 313 | 325 | display: none; |
| 314 | 326 | } | ... | ... |