feat(menu): 添加菜单完整路径功能和待写病历管理

- 在SysMenu实体类中新增fullPath字段用于存储完整路径
- 实现buildMenuTreeWithFullPath方法构建带完整路径的菜单树
- 添加getMenuFullPath和generateFullPath服务方法获取和生成完整路径
- 在菜单控制器中增加获取完整路径的API接口
- 前端菜单组件显示完整路径并在新增修改时使用后端返回的路径
- 添加待写病历管理功能包括获取待写病历列表、数量统计和检查接口
- 在医生工作站界面集成待写病历选项卡和相关处理逻辑
- 更新首页统计数据接口路径并添加待写病历数量获取功能
- 重构首页快捷功能配置为动态从数据库获取用户自定义配置
- 优化菜单列表查询使用异步方式处理带完整路径的菜单数据
- 添加菜单完整路径的数据库映射配置和前端API调用支持
This commit is contained in:
2026-02-01 14:50:22 +08:00
parent 29ecfd90f2
commit 0a08088ada
14 changed files with 1240 additions and 163 deletions

View File

@@ -1,9 +1,17 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 获取首页统计数据
export function getHomeStatistics() {
return request({
url: '/home/statistics',
url: '/system/home/statistics',
method: 'get'
})
});
}
// 获取待写病历数量
export function getPendingEmrCount() {
return request({
url: '/doctor-station/pending-emr/pending-count',
method: 'get'
});
}

View File

@@ -57,4 +57,24 @@ export function delMenu(menuId) {
url: '/system/menu/' + menuId,
method: 'delete'
})
}
// 获取菜单完整路径
export function getMenuFullPath(menuId) {
return request({
url: '/system/menu/fullPath/' + menuId,
method: 'get'
})
}
// 生成完整路径
export function generateFullPath(parentId, currentPath) {
return request({
url: '/system/menu/generateFullPath',
method: 'post',
params: {
parentId: parentId,
currentPath: currentPath
}
})
}