feat: 添加CurrentEmployeeInitialedEvent并重构初始化逻辑

添加CurrentEmployeeInitialedEvent事件类,用于在员工初始化完成后发布事件
重构HomeWindowController中的初始化逻辑,使用事件监听方式处理管理员任务调度
更新Unit类实现IdentityEntity和NamedEntity接口
移除SysConf类中多余的注释
在.gitignore中添加config.properties忽略规则
This commit is contained in:
danyz
2025-08-23 01:30:50 +08:00
parent d736f2d3e1
commit 2b013feaf1
8 changed files with 73 additions and 39 deletions

View File

@@ -69,6 +69,8 @@ public class CurrentEmployee extends EmployeeViewModel {
Platform.runLater(() -> {
update(employee);
rolesProperty().setAll(roles);
// 发布事件
SpringApp.context.publishEvent(new CurrentEmployeeInitialedEvent(this));
future.complete(null);
});
});