czh-20260609-增加门户卡片数据获取前端接口;增加顶部栏相应logo

This commit is contained in:
zhihao
2026-06-09 09:45:31 +08:00
parent 4828b52c73
commit 8185bb9bf4
12 changed files with 248 additions and 164 deletions
@@ -1,12 +1,7 @@
<template>
<Dropdown placement="bottomLeft" :overlayClassName="`${prefixCls}-dropdown-overlay`">
<span :class="[prefixCls, `${prefixCls}--${theme}`]" class="flex">
<!-- <img :class="`${prefixCls}__header`" :src="getAvatarUrl" /> -->
<span :class="`${prefixCls}__info hidden md:block`">
<span :class="`${prefixCls}__name `" class="truncate">
{{ getUserInfo.realname }}
</span>
</span>
<img :class="`${prefixCls}__logo`" :src="deptLogo" />
</span>
<template #overlay>
@@ -47,6 +42,7 @@
import { useMessage } from '/src/hooks/web/useMessage';
import { useGo } from '/@/hooks/web/usePage';
import headerImg from '/@/assets/images/header.jpg';
import deptLogo from '/@/assets/images/department-logo.png';
import { propTypes } from '/@/utils/propTypes';
import { openWindow } from '/@/utils';
@@ -178,6 +174,7 @@
return {
prefixCls,
t,
deptLogo,
getUserInfo,
// getAvatarUrl,
handleMenuClick,
@@ -207,15 +204,20 @@
img {
width: 24px;
height: 24px;
margin-right: 12px;
}
&__header {
border-radius: 50%;
}
&__name {
font-size: 14px;
img&__logo {
width: 32px;
height: 32px;
margin-right: 0;
vertical-align: middle;
background: #fff;
border-radius: 4px;
padding: 2px 4px;
}
&--dark {
+12 -1
View File
@@ -11,7 +11,10 @@
/>
<!-- <LayoutBreadcrumb v-if="getShowContent && getShowBread" :theme="getHeaderTheme" /> -->
<!-- 欢迎语 -->
<span v-if="getShowContent && getShowBreadTitle && !getIsMobile" :class="[prefixCls, `${prefixCls}--${getHeaderTheme}`,'headerIntroductionClass']"> {{t('layout.header.welcomeIn')}} {{ title }} </span>
<span v-if="getShowContent && getShowBreadTitle && !getIsMobile" :class="[prefixCls, `${prefixCls}--${getHeaderTheme}`,'headerIntroductionClass']">
<img src="../../../assets/images/header-brand.png" class="header-logo" />
{{t('layout.header.welcomeIn')}} {{ title }}
</span>
</div>
<!-- left end -->
@@ -239,6 +242,14 @@
margin-bottom: 2px;
border-bottom: 0px;
border-left: 0px;
display: flex;
align-items: center;
gap: 10px;
}
.header-logo {
height: 32px;
width: auto;
}
&--light {