diff --git a/src/layouts/BasicLayout.vue b/src/layouts/BasicLayout.vue
index bf17665..2825ce0 100644
--- a/src/layouts/BasicLayout.vue
+++ b/src/layouts/BasicLayout.vue
@@ -121,6 +121,9 @@
时段配置
+
+ 任务管理
+
@@ -384,6 +387,11 @@ export default defineComponent({
key: 'system-time-periods',
title: '时段配置',
path: '/system/time-periods'
+ },
+ {
+ key: 'system-tasks',
+ title: '任务管理',
+ path: '/system/tasks'
}
]
},
diff --git a/src/router/index.js b/src/router/index.js
index 4898072..588d21c 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -128,6 +128,11 @@ const routes = [
path: 'time-periods',
component: () => import('@/views/system/TimePeriodList.vue'),
meta: { title: '时段配置' }
+ },
+ {
+ path: 'tasks',
+ component: () => import('@/views/system/TaskManager.vue'),
+ meta: { title: '任务管理' }
}
]
},
diff --git a/src/views/system/TaskManager.vue b/src/views/system/TaskManager.vue
new file mode 100644
index 0000000..6021b6f
--- /dev/null
+++ b/src/views/system/TaskManager.vue
@@ -0,0 +1,323 @@
+
+
+
+
+
+
+
+
+ {{ systemStatus.running ? '运行中' : '已停止' }}
+
+
+
+ {{ systemStatus.job_count || 0 }}
+
+
+ {{ systemStatus.timezone || 'Asia/Shanghai' }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ record.active ? '运行中' : '已暂停' }}
+
+
+
+ {{ formatDateTime(record.next_run_time) }}
+
+
+
+
+ 暂停
+
+
+ 恢复
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file