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