fix(test+web): 修复测试编译错误 + 前端构建问题

- 修复透析集成测试 TestApp.dialysis_state() 返回类型不匹配(39个错误)
- 修复 erp-core test_helpers SeaORM Database::connect API 变更
- 修复 health_alert/article/data 集成测试函数签名不匹配
- 修复 DailyMonitoringTab 缺失 Input import
- 修复 DeviceReadingsTab 未使用接口声明
- 修复 DialysisManageList keyword → search 参数名
This commit is contained in:
iven
2026-04-30 10:21:05 +08:00
parent 82cea6a108
commit d8735eb45c
8 changed files with 643 additions and 23 deletions

View File

@@ -14,6 +14,7 @@ use super::test_db::TestDb;
pub struct TestApp {
test_db: TestDb,
health_state: HealthState,
dialysis_state: DialysisState,
tenant_id: uuid::Uuid,
operator_id: uuid::Uuid,
}
@@ -26,9 +27,15 @@ impl TestApp {
event_bus: EventBus::new(100),
crypto: PiiCrypto::dev_default(),
};
let dialysis_state = DialysisState {
db: test_db.db().clone(),
event_bus: health_state.event_bus.clone(),
crypto: health_state.crypto.clone(),
};
Self {
test_db,
health_state,
dialysis_state,
tenant_id: uuid::Uuid::new_v4(),
operator_id: uuid::Uuid::new_v4(),
}
@@ -42,12 +49,8 @@ impl TestApp {
&self.health_state
}
pub fn dialysis_state(&self) -> DialysisState {
DialysisState {
db: self.test_db.db().clone(),
event_bus: self.health_state.event_bus.clone(),
crypto: self.health_state.crypto.clone(),
}
pub fn dialysis_state(&self) -> &DialysisState {
&self.dialysis_state
}
pub fn tenant_id(&self) -> uuid::Uuid {