feat(ui): 顶部工具栏隐藏并重设计欢迎页仪表盘

- website.js中新增配置项关闭顶部语言切换、主题切换、日志和设置按钮
- top组件根据配置动态隐藏语言切换和设置按钮,仅保留用户头像下拉
- 默认主题改为浅色theme-d2,需手动切换或清空旧主题存储
- 完全重写欢迎页,移除默认营销内容,设计为TMS-ERP业务仪表盘,使用纯SVG/CSS绘图
- 欢迎页包括用户问候、四个核心指标卡、运单趋势、货物类型分布、运输方式占比、预警提醒和快捷入口
- 快捷入口路径模拟真实路由,需与后端菜单一致
- 对车辆里程录入界面搜索栏做细节调整,添加更合理的搜索字段宽度
- user模块中默认用户头像改为jpg格式图片
- vite配置文件新增多项插件和生产环境下的压缩优化配置
This commit is contained in:
2026-07-31 19:04:57 +08:00
parent a9fd78b5b9
commit c270258b7b
9 changed files with 836 additions and 1511 deletions

View File

@@ -18,7 +18,7 @@ const common = {
!storedColorName || LEGACY_PRIMARY_COLORS.includes(String(storedColorName).toUpperCase())
? DEFAULT_PRIMARY_COLOR
: storedColorName,
themeName: getStore({ name: 'themeName' }) || 'theme-go',
themeName: getStore({ name: 'themeName' }) || 'theme-d2',
lockPasswd: getStore({ name: 'lockPasswd' }) || '',
website: website,
setting: website.setting,

View File

@@ -308,7 +308,7 @@ const user = {
state.userInfo = { user_name: 'unauth', role_name: 'unauth', authority: 'unauth' };
} else {
if (validatenull(userInfo.avatar)) {
userInfo.avatar = '/img/bg/img-logo.png';
userInfo.avatar = '/img/bg/img-logo.jpg';
}
if (!validatenull(userInfo.role_name)) {
userInfo.roleName = userInfo.role_name;