feat: 定时任务日志
This commit is contained in:
parent
a1cc230f76
commit
7bff4abebe
@ -60,6 +60,7 @@ module.exports = {
|
||||
"@typescript-eslint/no-non-null-assertion": "off", // 不允许使用后缀运算符的非空断言(!)
|
||||
|
||||
// vue (https://eslint.vuejs.org/rules)
|
||||
"vue/component-definition-name-casing": "off",
|
||||
"vue/script-setup-uses-vars": "error", // 防止<script setup>使用的变量<template>被标记为未使用,此规则仅在启用该 no-unused-vars 规则时有效
|
||||
"vue/v-slot-style": "error", // 强制执行 v-slot 指令样式
|
||||
"vue/no-mutating-props": "error", // 不允许改变组件 prop
|
||||
|
||||
@ -23,10 +23,6 @@ let { refreshPage, isTabs, watermark, watermarkStyle, watermarkRotate, watermark
|
||||
const routerStore = useRoutesConfigStore();
|
||||
const { cacheRoutes } = storeToRefs(routerStore);
|
||||
|
||||
// setInterval(() => {
|
||||
// console.log("缓存在这里", cacheRoutes.value);
|
||||
// }, 2000);
|
||||
|
||||
// 水印配置
|
||||
const watermarkConfig = computed(() => {
|
||||
return {
|
||||
|
||||
@ -28,8 +28,7 @@ export default [
|
||||
method: "get",
|
||||
timeout: 300,
|
||||
response: ({ query }: any) => {
|
||||
console.log("请求参数", query);
|
||||
|
||||
console.log(query);
|
||||
return resultSuccess(crontabLogs);
|
||||
}
|
||||
}
|
||||
|
||||
@ -62,11 +62,11 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { getCrontabLogsAPI } from "@/api/modules/monitor/index";
|
||||
defineOptions({ name: "crontab-logs" });
|
||||
let route = useRoute();
|
||||
const openState = ref(dictFilter("taskStatus"));
|
||||
|
||||
const form = ref({
|
||||
jobId: null,
|
||||
name: "",
|
||||
status: null,
|
||||
datetimeRange: []
|
||||
@ -76,7 +76,6 @@ const search = () => {
|
||||
};
|
||||
const reset = () => {
|
||||
form.value = {
|
||||
jobId: null,
|
||||
name: "",
|
||||
status: null,
|
||||
datetimeRange: []
|
||||
@ -105,12 +104,15 @@ const getCrontabLogs = async () => {
|
||||
}
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
const init = () => {
|
||||
if (route.query.id) {
|
||||
form.value.jobId = route.query.id;
|
||||
form.value.name = route.query.name;
|
||||
}
|
||||
getCrontabLogs();
|
||||
};
|
||||
|
||||
onActivated(() => {
|
||||
init();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@ -142,6 +142,7 @@
|
||||
<script setup lang="ts">
|
||||
import { getCrontabAPI } from "@/api/modules/monitor/index";
|
||||
import { deepClone } from "@/utils";
|
||||
defineOptions({ name: "crontab" });
|
||||
const router = useRouter();
|
||||
const openState = ref(dictFilter("status"));
|
||||
const misfirePolicyOption = ref([
|
||||
|
||||
@ -63,6 +63,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { getOnlineuserAPI } from "@/api/modules/monitor/index";
|
||||
defineOptions({ name: "onlineuser" });
|
||||
const form = ref({
|
||||
loginLocation: "",
|
||||
userName: "",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user