diff --git a/app/admin/controller/Queue.php b/app/admin/controller/Queue.php index 0e2d151a3..dec1f1146 100644 --- a/app/admin/controller/Queue.php +++ b/app/admin/controller/Queue.php @@ -55,7 +55,7 @@ class Queue extends Controller $this->title = '系统任务管理'; $this->iswin = ProcessService::instance()->iswin(); // 任务列表查询分页处理 - $query = $this->_query($this->table)->dateBetween('create_at')->timeBetween('enter_time,outer_time'); + $query = $this->_query($this->table)->dateBetween('create_at')->timeBetween('enter_time,exec_time'); $query->like('title,command')->equal('status')->order('id desc')->page(); } diff --git a/app/admin/view/queue/index.html b/app/admin/view/queue/index.html index 6f6dd553e..8016d72bd 100644 --- a/app/admin/view/queue/index.html +++ b/app/admin/view/queue/index.html @@ -44,10 +44,15 @@ 任务指令:{$vo.command|default=''} - 创建时间:{$vo.create_at|format_datetime} / {$vo.exec_time|format_datetime}
- 执行时间:{$vo.enter_time|format_datetime} / {$vo.outer_time|format_datetime} + 计划执行:{$vo.exec_time|format_datetime}
+ {if !empty($vo.enter_time) && !empty($vo.outer_time)} + 开始时间:{$vo.enter_time|format_datetime}( 耗时 {$vo.outer_time-$vo.enter_time} 秒 ) + {else} + 创建时间:{$vo.create_at|format_datetime} + {/if} + 任务状态:{eq name='vo.rscript' value='1'} {else} @@ -66,6 +71,7 @@ {/eq} + {if auth("admin/queue/remove") and in_array($vo.status,[1,3,4])} diff --git a/app/admin/view/queue/index_search.html b/app/admin/view/queue/index_search.html index 25cfa78c7..8e4dcc852 100644 --- a/app/admin/view/queue/index_search.html +++ b/app/admin/view/queue/index_search.html @@ -44,9 +44,9 @@
- +
- +
@@ -55,12 +55,6 @@
-
- -
- -
-