From 7e0438e9daebdec7e031d81eae7d20c9d9339eaf Mon Sep 17 00:00:00 2001 From: suwings Date: Fri, 10 Aug 2018 13:02:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20-=20=E7=AE=80=E5=8D=95?= =?UTF-8?q?=E7=94=9F=E6=88=90=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/template/component/new_schedule.html | 19 ++++++++++++++----- public/template/dialog/time_bulider.html | 10 ++++++---- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/public/template/component/new_schedule.html b/public/template/component/new_schedule.html index 2ed0812c..27636155 100644 --- a/public/template/component/new_schedule.html +++ b/public/template/component/new_schedule.html @@ -27,17 +27,20 @@
+
-
- 使用简单模式填写 -
+

如果您不会填写,请仔细阅读参数手册,或者使用简单模式来生成参数。

+
- 新建/重构 + 新建/保存
放弃并返回
+
+ 使用简单模式生成(推荐) +
@@ -124,6 +127,8 @@ this.toBack(); }, toPopWindForTime: function () { + var that = this; + //弹出简单模式窗口 TOOLS.popWind({ style: { maxWidth: "400px" @@ -131,7 +136,11 @@ title: "计划任务简单模式", template: "template/dialog/time_bulider.html", callback: function (result) { - console.log("得到结果", result) + console.log("简单模式结果:", result); + if (!result) return; + that.time = result.time || "* * * * * *"; + that.count = result.count || "0"; + that.commande = result.command || ""; } }); } diff --git a/public/template/dialog/time_bulider.html b/public/template/dialog/time_bulider.html index ecd794e9..1d1a337a 100644 --- a/public/template/dialog/time_bulider.html +++ b/public/template/dialog/time_bulider.html @@ -4,8 +4,9 @@ 旨在简化计划任务时间表达式的书写,十分简单
- 每隔分数 - + 每隔时间 +
执行次数 @@ -15,8 +16,9 @@ 执行指令
+

填写好您需要的计划数据,单击 "生成" 再进行保存即可。