增加定时任务功能
This commit is contained in:
parent
f4c24048d7
commit
3a4a08fafd
@ -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;
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
@ -31,7 +31,6 @@
|
||||
</graphic>
|
||||
</Button>
|
||||
|
||||
<Button fx:id="infoBut" mnemonicParsing="false" text="执行日志" />
|
||||
</children>
|
||||
<opaqueInsets>
|
||||
<Insets />
|
||||
|
@ -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());
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user