增加定时任务功能

This commit is contained in:
wenli 2024-07-30 19:26:41 +08:00
parent f4c24048d7
commit 3a4a08fafd
5 changed files with 6 additions and 9 deletions

View File

@ -66,8 +66,6 @@ public class JobLogView implements FxmlView<JobLogViewModel>, Initializable {
@FXML
private TableColumn<JobLogRespVO, ?> idCol;
@FXML
private Button infoBut;
@FXML
private TableColumn<JobLogRespVO, ?> jobIdCol;

View File

@ -274,7 +274,7 @@ public class TokenView implements FxmlView<TokenViewModel>, Initializable {
.addConsumerInPlatformThread(r -> {
if (r.isSuccess()) {
dialog.close();
MvvmFX.getNotificationCenter().publish("message", "删除成功", MessageType.SUCCESS);
MvvmFX.getNotificationCenter().publish("message", "强退成功", MessageType.SUCCESS);
viewModel.loadTableData();
}
@ -283,7 +283,7 @@ public class TokenView implements FxmlView<TokenViewModel>, Initializable {
})
);
dialog.setContent(new Label("是否确认删除名称为" + respVO.getUserId() + "的数据项?"));
dialog.setContent(new Label("是否确认强退名称为" + respVO.getUserId() + "的数据项?"));
dialog.show(rootPane.getScene());
}
}

View File

@ -31,7 +31,6 @@
</graphic>
</Button>
<Button fx:id="infoBut" mnemonicParsing="false" text="执行日志" />
</children>
<opaqueInsets>
<Insets />

View File

@ -139,7 +139,7 @@ public class JobPane extends JPanel {
newBut.setText("新增");
toolPane.add(newBut, "cell 0 0");
toolPane.add(logBut = new JButton("调度日志"), "cell 0 0");
toolPane.add(logBut = new JButton("执行日志"), "cell 0 0");
}
centerPane.add(toolPane, BorderLayout.NORTH);
}
@ -611,15 +611,15 @@ public class JobPane extends JPanel {
}
private void showJobLogTab(JobRespVO respVO) {
int tabIndex = MainFrame.getInstance().getTabbedPane().indexOfTab("调度日志");
int tabIndex = MainFrame.getInstance().getTabbedPane().indexOfTab("执行日志");
JobLogPane jobLogPane;
if (tabIndex == -1) {
jobLogPane = new JobLogPane();
MainFrame.getInstance().getTabbedPane().addTab("调度日志", jobLogPane);
MainFrame.getInstance().getTabbedPane().addTab("执行日志", jobLogPane);
} else {
jobLogPane = (JobLogPane) MainFrame.getInstance().getTabbedPane().getComponentAt(tabIndex);
}
MainFrame.getInstance().getTabbedPane().setSelectedIndex(MainFrame.getInstance().getTabbedPane().indexOfTab("调度日志"));
MainFrame.getInstance().getTabbedPane().setSelectedIndex(MainFrame.getInstance().getTabbedPane().indexOfTab("执行日志"));
jobLogPane.loadTableData(respVO.getHandlerName());
}

BIN
dump.rdb

Binary file not shown.