From 69f673b494ada7521d73efdffc52d4e942e8c5e4 Mon Sep 17 00:00:00 2001
From: huang <1724659546@qq.com>
Date: Sun, 21 Sep 2025 17:53:32 +0800
Subject: [PATCH] =?UTF-8?q?cron=E8=A1=A8=E8=BE=BE=E5=BC=8F=E5=8F=AF?=
=?UTF-8?q?=E8=A7=86=E5=8C=96=E9=85=8D=E7=BD=AE=E6=9B=BF=E6=8D=A2=E6=88=90?=
=?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/CronExpressionEditor.vue | 330 ++++++++++++++++++++++++
src/components/PlanForm.vue | 61 +----
2 files changed, 336 insertions(+), 55 deletions(-)
create mode 100644 src/components/CronExpressionEditor.vue
diff --git a/src/components/CronExpressionEditor.vue b/src/components/CronExpressionEditor.vue
new file mode 100644
index 00000000..472d65f5
--- /dev/null
+++ b/src/components/CronExpressionEditor.vue
@@ -0,0 +1,330 @@
+
+
+
+
+ 可视化配置
+
+
+
+
+
+
+
+
+
+
+ *
+ 每分钟
+
+
+ */5
+ 每隔5分钟
+
+
+ */10
+ 每隔10分钟
+
+
+ */15
+ 每隔15分钟
+
+
+ */30
+ 每隔30分钟
+
+
+ {{ minute-1 }}
+ 第{{ minute-1 }}分钟
+
+
+
+
+
+
+
+
+ *
+ 每小时
+
+
+ */2
+ 每隔2小时
+
+
+ */3
+ 每隔3小时
+
+
+ */6
+ 每隔6小时
+
+
+ */12
+ 每隔12小时
+
+
+ {{ hour-1 }}
+ {{ hour-1 }}点
+
+
+
+
+
+
+
+
+ *
+ 每天
+
+
+ */2
+ 每隔2天
+
+
+ */7
+ 每隔7天
+
+
+ */15
+ 每隔15天
+
+
+ {{ day }}
+ 每月{{ day }}日
+
+
+
+
+
+
+
+
+ *
+ 每月
+
+
+ */2
+ 每隔2个月
+
+
+ */3
+ 每隔3个月
+
+
+ */6
+ 每隔6个月
+
+
+ {{ month }}
+ 第{{ month }}月
+
+
+
+
+
+
+
+
+ *
+ 每周
+
+
+ 1-5
+ 工作日
+
+
+ {{ week.label }}
+ {{ week.desc }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/PlanForm.vue b/src/components/PlanForm.vue
index 99e074a3..eea64205 100644
--- a/src/components/PlanForm.vue
+++ b/src/components/PlanForm.vue
@@ -57,15 +57,10 @@
label="执行频率"
prop="cron_expression"
v-if="formData.execution_type === 'automatic'">
-
-
- 可视化配置
-
-
-
Cron表达式格式:秒 分 时 日 月 周
+
+ Cron表达式格式:分 时 日 月 周
@@ -81,35 +76,17 @@
-
-
-
-
-
-
-