增加定时任务功能

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 @FXML
private TableColumn<JobLogRespVO, ?> idCol; private TableColumn<JobLogRespVO, ?> idCol;
@FXML
private Button infoBut;
@FXML @FXML
private TableColumn<JobLogRespVO, ?> jobIdCol; private TableColumn<JobLogRespVO, ?> jobIdCol;

View File

@ -274,7 +274,7 @@ public class TokenView implements FxmlView<TokenViewModel>, Initializable {
.addConsumerInPlatformThread(r -> { .addConsumerInPlatformThread(r -> {
if (r.isSuccess()) { if (r.isSuccess()) {
dialog.close(); dialog.close();
MvvmFX.getNotificationCenter().publish("message", "删除成功", MessageType.SUCCESS); MvvmFX.getNotificationCenter().publish("message", "强退成功", MessageType.SUCCESS);
viewModel.loadTableData(); 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()); dialog.show(rootPane.getScene());
} }
} }

View File

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

View File

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

BIN
dump.rdb

Binary file not shown.