From 8f05e47363f294efb6522c32748ef6704361a15f Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 6 Jan 2025 21:58:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=A1=E5=88=92=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1-=E6=AF=8F=E6=98=9F=E6=9C=9F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/static/app/crontab.js | 9 +++++++-- web/templates/default/crontab.html | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/web/static/app/crontab.js b/web/static/app/crontab.js index 0ba5debd4..c581f8cc9 100755 --- a/web/static/app/crontab.js +++ b/web/static/app/crontab.js @@ -338,6 +338,11 @@ function planAdd(){ var where1 = $("#ptime input[name='where1']").val(); $("#cronConfig input[name='where1']").val(where1); } + + if (type == 'week'){ + var where1 = $("#ptime input[name='where1']").val(); + $("#cronConfig input[name='where1']").val(where1); + } layer.msg('正在添加,请稍候...!',{icon:16,time:0,shade: [0.3, '#000']}); @@ -836,8 +841,6 @@ function editTaskInfo(id){ $('.site_list').show(); } - - obj.from.minute = $('.minute_create').val(); obj.from.hour = $('.hour_create').val(); obj.from.where1 = $('.where1_create').val(); @@ -963,6 +966,8 @@ function editTaskInfo(id){ } else if(obj.from.type == 'minute-n') { obj.from.where1 = obj.from.minute; obj.from.minute = ''; + } else if(obj.from.type == 'week') { + obj.from.where1 = obj.from.week; } var loadT = layer.msg('正在保存编辑内容,请稍后...',{icon:16,time:0,shade: [0.3, '#000']}); $.post('/crontab/modify_crond',obj.from,function(rdata){ diff --git a/web/templates/default/crontab.html b/web/templates/default/crontab.html index 4765bd408..3cc44f723 100755 --- a/web/templates/default/crontab.html +++ b/web/templates/default/crontab.html @@ -64,7 +64,7 @@ 周一 -