feat(login): 添加租户名称获取功能并优化前端布局

- 在登录控制器中注入租户服务并获取租户名称信息
- 添加租户名称到登录响应结果中
- 更新样式变量定义侧边栏宽度和Logo高度
- 重构公告面板组件统一公告通知显示逻辑
- 简化公告类型图标和样式映射关系
- 更新侧边栏为垂直菜单布局并添加折叠功能
- 优化Logo组件显示租户名称和系统标题
- 调整导航栏布局结构和响应式样式
- 重构主应用容器样式和标签页显示逻辑
This commit is contained in:
2025-12-31 10:28:52 +08:00
parent 10e738edd9
commit 4d4828ea71
54 changed files with 3510 additions and 754 deletions

View File

@@ -127,12 +127,11 @@ const hasUnread = computed(() => {
})
// 获取公告类型图标
// noticeType: 1=通知, 2=公告
const getNoticeTypeIcon = (type) => {
const iconMap = {
'1': Bell, // 通知
'2': Warning, // 紧急
'3': InfoFilled, // 信息
'4': CircleCheck // 成功
'2': InfoFilled // 公告
}
return iconMap[type] || InfoFilled
}
@@ -178,36 +177,33 @@ const getPriorityIcon = (priority) => {
}
// 获取公告类型样式类
// noticeType: 1=通知, 2=公告
const getNoticeTypeClass = (type) => {
const classMap = {
'1': 'type-notice',
'2': 'type-urgent',
'3': 'type-info',
'4': 'type-success'
'2': 'type-announcement'
}
return classMap[type] || 'type-info'
return classMap[type] || 'type-announcement'
}
// 获取公告类型标签类型
// noticeType: 1=通知, 2=公告
const getNoticeTypeTagType = (type) => {
const typeMap = {
'1': '',
'2': 'danger',
'3': 'info',
'4': 'success'
'1': 'primary',
'2': 'success'
}
return typeMap[type] || ''
return typeMap[type] || 'info'
}
// 获取公告类型文本
// noticeType: 1=通知, 2=公告
const getNoticeTypeText = (type) => {
const textMap = {
'1': '通知',
'2': '紧急',
'3': '信息',
'4': '成功'
'2': '公告'
}
return textMap[type] || '信息'
return textMap[type] || '公告'
}
// 格式化日期
@@ -414,21 +410,11 @@ defineExpose({
background: #e6f7ff;
color: #1890ff;
}
&.type-urgent {
background: #fff1f0;
color: #ff4d4f;
}
&.type-info {
&.type-announcement {
background: #f6ffed;
color: #52c41a;
}
&.type-success {
background: #f9f0ff;
color: #722ed1;
}
}
.notice-item-content {