From 75610a4559e04ea2e55758702cdfc419f3aad303 Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 9 Jul 2026 14:22:26 +0800 Subject: [PATCH] Update crontab.js --- web/static/app/crontab.js | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/web/static/app/crontab.js b/web/static/app/crontab.js index ddca937bc..442b3d4fd 100755 --- a/web/static/app/crontab.js +++ b/web/static/app/crontab.js @@ -41,12 +41,10 @@ function getLogs(id){ title:"任务执行日志", area: ['60%','500px'], shadeClose:false, - btn:["清空","关闭"], + btn:['清空', "关闭", '刷新', '关闭自动刷新', '开启自动刷新'], closeBtn:1, end: function(){ - if (reqTimer){ - clearInterval(reqTimer); - } + }, content:'
' +'
'
@@ -57,16 +55,26 @@ function getLogs(id){
 		+'
', success:function(index,layer_index){ requestLogs(layer_index); - reqTimer = setInterval(function(){ - requestLogs(layer_index); - },3000); }, - - yes:function(index){ + yes:function(index,layer_index){ clearInterval(reqTimer); closeLogs(id); layer.close(index); }, + btn3:function(index,layer_index){ + requestLogs(layer_index); + return false; + }, + btn4:function(index,layer_index){ + clearInterval(reqTimer); + return false; + }, + btn5:function(index,layer_index){ + reqTimer = setInterval(function(){ + requestLogs(layer_index); + },3000); + return false; + } }); }