## 后台管理页重构 - 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 扩展
45 lines
1.4 KiB
Batchfile
45 lines
1.4 KiB
Batchfile
@echo off
|
|
chcp 65001 >nul
|
|
title HealthManager
|
|
|
|
set "PATH=D:\PostgreSQL\18\pgsql\bin;D:\Android\platform-tools;%PATH%"
|
|
|
|
echo ========================================
|
|
echo HealthManager - Start Services
|
|
echo ========================================
|
|
echo.
|
|
|
|
echo [1/2] Starting PostgreSQL...
|
|
"D:\PostgreSQL\18\pgsql\bin\pg_ctl.exe" -D "D:\health_project\backend\pgdata" start 2>nul
|
|
if errorlevel 1 (echo PG already running) else (echo PG started)
|
|
echo.
|
|
|
|
echo [2/2] Starting .NET Backend...
|
|
start "Backend" cmd /k "cd /d D:\health_project\backend\src\Health.WebApi && dotnet run"
|
|
echo Waiting for backend readiness...
|
|
set /a BACKEND_WAIT_SECONDS=0
|
|
|
|
:wait_backend
|
|
powershell -NoProfile -NonInteractive -Command "try { $response = Invoke-WebRequest -UseBasicParsing -Uri 'http://127.0.0.1:5000/openapi/v1.json' -TimeoutSec 2; if ($response.StatusCode -eq 200) { exit 0 } } catch {}; exit 1" >nul 2>&1
|
|
if not errorlevel 1 goto backend_ready
|
|
set /a BACKEND_WAIT_SECONDS+=1
|
|
if %BACKEND_WAIT_SECONDS% GEQ 30 goto backend_failed
|
|
timeout /t 1 /nobreak >nul
|
|
goto wait_backend
|
|
|
|
:backend_failed
|
|
echo.
|
|
echo ERROR: Backend failed to become ready within 30 seconds.
|
|
echo Check the Backend window for the detailed error.
|
|
pause
|
|
exit /b 1
|
|
|
|
:backend_ready
|
|
echo Backend is ready at http://127.0.0.1:5000
|
|
echo.
|
|
|
|
echo All done. Phone connects via WiFi to this PC.
|
|
echo If your PC IP changed, rebuild app with:
|
|
echo flutter run -d ^<device^> --dart-define=API_BASE_URL=http://^<pc-ip^>:5000
|
|
pause
|