修改任务查询

This commit is contained in:
Anyon 2019-11-13 17:18:07 +08:00
parent c80d2f44b1
commit 8cff72e230
2 changed files with 5 additions and 4 deletions

View File

@ -52,8 +52,9 @@ class Queue extends Controller
}
$this->title = '系统任务管理';
$this->iswin = PATH_SEPARATOR === ';';
$query = $this->_query($this->table)->dateBetween('create_at,start_at,end_at');
$query->like('title,preload')->equal('status')->order('id desc')->page();
$query = $this->_query($this->table)->dateBetween('create_at');
$query->timeBetween('enter_time,outer_time')->like('title,command');
$query->equal('status')->order('id desc')->page();
}
/**

View File

@ -52,13 +52,13 @@
<div class="layui-form-item layui-inline">
<label class="layui-form-label">开始时间</label>
<div class="layui-input-inline">
<input data-date-range name="start_at" value="{:input('get.start_at')}" placeholder="请选择开始时间" class="layui-input">
<input data-date-range name="enter_time" value="{:input('get.enter_time')}" placeholder="请选择开始时间" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label">结束时间</label>
<div class="layui-input-inline">
<input data-date-range name="end_at" value="{:input('get.end_at')}" placeholder="请选择结束时间" class="layui-input">
<input data-date-range name="outer_time" value="{:input('get.outer_time')}" placeholder="请选择结束时间" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">