feat: 后台管理页全量重构 + backoffice 共享模块 + 启动脚本优化
## 后台管理页重构 - admin 端: add_doctor / doctors / home / patients 四页重构 - doctor 端: consultations / dashboard / followup_edit / followups / home / patient_detail / patients / profile / report_detail / reports / settings 十一页重构 - 新增 backoffice 共享模块: backoffice_refresh_providers + backoffice_formatters + backoffice_ui ## 后端 - AdminService 增强(分页/搜索/统计) - doctor_endpoints 微调 - appsettings.Development 调整 - 新增 admin_service_tests ## 前端其他 - 今日健康卡片 taskRow 行高 5->7(每行 44->48px) - 健康仪表盘配色定 #4FACFE 纯色蓝 - admin_drawer / doctor_drawer 微调 - api_client IP 适配 ## 启动脚本 - start-dev.bat: 加后端就绪检测(轮询 openapi 端点, 最多等 30s) ## 清理 - 删除旧品牌图(agent_welcome_abstract / login_background_v1) - 删除 app_status_badge 组件 - 删除旧 HANDOFF 文档, 新增 07-17 版 ## 测试 - 新增 backoffice_formatters / backoffice_refresh / backoffice_ui 三个测试 - app_router_test 扩展
This commit is contained in:
12
health_app/lib/utils/backoffice_formatters.dart
Normal file
12
health_app/lib/utils/backoffice_formatters.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
String formatBackofficeDateTime(Object? value) {
|
||||
final raw = value?.toString().trim() ?? '';
|
||||
if (raw.isEmpty) return '时间未知';
|
||||
|
||||
final normalized = raw.replaceFirst('T', ' ');
|
||||
return normalized.length <= 16 ? normalized : normalized.substring(0, 16);
|
||||
}
|
||||
|
||||
String backofficeInitial(Object? value) {
|
||||
final text = value?.toString().trim() ?? '';
|
||||
return text.isEmpty ? '?' : text.substring(0, 1);
|
||||
}
|
||||
Reference in New Issue
Block a user