index.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {extend name='main'}
  2. {block name="button"}
  3. <!--{if auth("admin/queue/del")}-->
  4. <button data-action='{:url("del")}' data-confirm="确定要删除这些任务吗?" data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>批量删除任务</button>
  5. <!--{/if}-->
  6. {/block}
  7. {block name="content"}
  8. <table class="layui-table" lay-skin="line">
  9. <caption class="margin-bottom-10 text-left">{include file='queue/index_search'}</caption>
  10. <!--{notempty name='list'}-->
  11. <thead>
  12. <tr>
  13. <th class='list-table-check-td think-checkbox'>
  14. <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
  15. </th>
  16. <th class='text-left nowrap'>任务信息</th>
  17. <th class='text-left nowrap'>任务时间</th>
  18. <th class='text-left nowrap'>任务状态</th>
  19. </tr>
  20. </thead>
  21. <!--{/notempty}-->
  22. <tbody>
  23. <!--{foreach $list as $key=>$vo}-->
  24. <tr>
  25. <td class='list-table-check-td think-checkbox'>
  26. <input class="list-check-box" value='{$vo.id}' type='checkbox'>
  27. </td>
  28. <td class='text-left nowrap'>
  29. 任务名称:{$vo.title}
  30. <br>
  31. 任务指令:{$vo.uri}
  32. </td>
  33. <td class='text-left nowrap'>
  34. 创建时间:<span class="layui-badge layui-bg-gray">{$vo.create_at|format_datetime|raw}</span>
  35. <br>
  36. 跟进时间:<span class="layui-badge layui-bg-gray">{$vo.status_at|format_datetime|raw}</span>
  37. </td>
  38. <td class='text-left nowrap'>
  39. 任务状态:
  40. {eq name='vo.double' value='1'}
  41. <span class="layui-badge layui-bg-green margin-right-5">复</span>
  42. {else}
  43. <span class="layui-badge layui-bg-blue margin-right-5">单</span>
  44. {/eq}
  45. {eq name='vo.status' value='1'}
  46. <span class="layui-badge layui-bg-black">待处理</span>
  47. {elseif $vo.status eq 2}
  48. <span class="layui-badge layui-bg-green">处理中</span>
  49. {elseif $vo.status eq 3}
  50. <span class="layui-badge layui-bg-blue">处理完成</span>
  51. {elseif $vo.status eq 4}
  52. <span class="layui-badge layui-bg-red margin-right-5">处理失败</span>
  53. <a class="layui-badge layui-bg-green" data-tips-text="重置该任务" data-action="{:url('redo')}" data-value="id#{$vo.id}">
  54. <i class="layui-icon font-s12">&#xe669;</i>
  55. </a>
  56. {/eq}
  57. <!--{if auth("admin/queue/del") and in_array($vo.status,[1,3,4])}-->
  58. <a data-action='{:url("del")}' data-confirm="确定要删除该任务吗?" data-value="id#{$vo.id}" data-tips-text="删除该任务" class='layui-badge layui-bg-red margin-left-5'>
  59. <i class="layui-icon">&#xe640;</i>
  60. </a>
  61. <!--{/if}-->
  62. <br>
  63. 状态描述:
  64. <span class="layui-badge layui-bg-gray">{$vo.status_desc|raw|default="<span class='color-desc'>没有获取到状态描述</span>"}</span>
  65. </td>
  66. </tr>
  67. <!--{/foreach}-->
  68. </tbody>
  69. </table>
  70. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  71. {/block}