index_search.html 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {if session('user.username') eq 'admin'}
  2. <fieldset class="margin-bottom-15">
  3. <legend class="notselect">服务状态</legend>
  4. <div class="layui-code border-0 margin-top-0">
  5. <h4 class="color-desc margin-top-10 notselect">后台服务主进程运行状态</h4>
  6. <div data-queue-message>Checking task process running status ...</div>
  7. <h4 class="color-desc margin-top-10 notselect">配置定时任务来检查并启动进程(建议每分钟执行)</h4>
  8. <div>{$command|default='--'}</div>
  9. </div>
  10. <script>$('[data-queue-message]').load('{:url("admin/api.queue/status")}')</script>
  11. </fieldset>
  12. {/if}
  13. <fieldset>
  14. <legend>条件搜索</legend>
  15. <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
  16. <div class="layui-form-item layui-inline">
  17. <label class="layui-form-label">任务编号</label>
  18. <label class="layui-input-inline">
  19. <input name="code" value="{:input('get.code')}" placeholder="请输入任务编号" class="layui-input">
  20. </label>
  21. </div>
  22. <div class="layui-form-item layui-inline">
  23. <label class="layui-form-label">任务名称</label>
  24. <label class="layui-input-inline">
  25. <input name="title" value="{:input('get.title')}" placeholder="请输入任务名称" class="layui-input">
  26. </label>
  27. </div>
  28. <div class="layui-form-item layui-inline">
  29. <label class="layui-form-label">任务指令</label>
  30. <label class="layui-input-inline">
  31. <input name="command" value="{:input('get.command')}" placeholder="请输入任务指令" class="layui-input">
  32. </label>
  33. </div>
  34. <div class="layui-form-item layui-inline">
  35. <label class="layui-form-label">任务状态</label>
  36. <label class="layui-input-inline">
  37. <select name="status" class="layui-select">
  38. <option value=''>-- 全部任务 --</option>
  39. {foreach ['1'=>'等待处理','2'=>'正在处理','3'=>'处理完成','4'=>'处理失败'] as $k=>$v}
  40. {if input('get.status') eq $k}
  41. <option selected value="{$k}">{$v}</option>
  42. {else}
  43. <option value="{$k}">{$v}</option>
  44. {/if}{/foreach}
  45. </select>
  46. </label>
  47. </div>
  48. <div class="layui-form-item layui-inline">
  49. <label class="layui-form-label">计划时间</label>
  50. <label class="layui-input-inline">
  51. <input data-date-range name="exec_time" value="{:input('get.exec_time')}" placeholder="请选择计划时间" class="layui-input">
  52. </label>
  53. </div>
  54. <div class="layui-form-item layui-inline">
  55. <label class="layui-form-label">执行时间</label>
  56. <label class="layui-input-inline">
  57. <input data-date-range name="enter_time" value="{:input('get.enter_time')}" placeholder="请选择执行时间" class="layui-input">
  58. </label>
  59. </div>
  60. <div class="layui-form-item layui-inline">
  61. <label class="layui-form-label">创建时间</label>
  62. <label class="layui-input-inline">
  63. <input data-date-range name="create_at" value="{:input('get.create_at')}" placeholder="请选择创建时间" class="layui-input">
  64. </label>
  65. </div>
  66. <div class="layui-form-item layui-inline">
  67. <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
  68. </div>
  69. </form>
  70. </fieldset>
  71. <script>form.render()</script>