|
@@ -11,6 +11,7 @@ import {faCheck, faDownload, faToggleOff, faToggleOn, faXmark,} from "@fortaweso
|
|
|
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
|
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
|
|
|
|
|
|
|
import {useRef, useState} from "react";
|
|
import {useRef, useState} from "react";
|
|
|
|
|
+import globalMessage from "@/app/_modules/globalMessage";
|
|
|
|
|
|
|
|
//查询Job详情
|
|
//查询Job详情
|
|
|
const queryJobAPI = "/api/monitor/job";
|
|
const queryJobAPI = "/api/monitor/job";
|
|
@@ -226,7 +227,7 @@ export default function JobLog({ params }: { params: { jobid: string } }) {
|
|
|
});
|
|
});
|
|
|
if (body !== undefined) {
|
|
if (body !== undefined) {
|
|
|
if (body.code == 200) {
|
|
if (body.code == 200) {
|
|
|
- App.useApp().message.success("删除成功");
|
|
|
|
|
|
|
+ globalMessage.success("删除成功");
|
|
|
|
|
|
|
|
//删除按钮变回不可点击
|
|
//删除按钮变回不可点击
|
|
|
setRowCanDelete(false);
|
|
setRowCanDelete(false);
|
|
@@ -237,7 +238,7 @@ export default function JobLog({ params }: { params: { jobid: string } }) {
|
|
|
actionTableRef.current.reload();
|
|
actionTableRef.current.reload();
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
- App.useApp().message.error(body.msg);
|
|
|
|
|
|
|
+ globalMessage.error(body.msg);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
setDeleteModalVisible(false);
|
|
setDeleteModalVisible(false);
|
|
@@ -263,15 +264,15 @@ export default function JobLog({ params }: { params: { jobid: string } }) {
|
|
|
|
|
|
|
|
if (body !== undefined) {
|
|
if (body !== undefined) {
|
|
|
if (body.code == 200) {
|
|
if (body.code == 200) {
|
|
|
- App.useApp().message.success("清空成功");
|
|
|
|
|
|
|
+ globalMessage.success("清空成功");
|
|
|
if (actionTableRef.current) {
|
|
if (actionTableRef.current) {
|
|
|
actionTableRef.current.reload();
|
|
actionTableRef.current.reload();
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
- App.useApp().message.error(body.msg);
|
|
|
|
|
|
|
+ globalMessage.error(body.msg);
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
- App.useApp().message.error("清空发生异常");
|
|
|
|
|
|
|
+ globalMessage.error("清空发生异常");
|
|
|
}
|
|
}
|
|
|
setClearAllModalVisible(false);
|
|
setClearAllModalVisible(false);
|
|
|
};
|
|
};
|