index.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {extend name='admin@main'}
  2. {block name="button"}
  3. {if auth("add")}
  4. <button class='layui-btn layui-btn-sm layui-btn-primary' data-modal='{:url("add")}'>添 加</button>
  5. {/if}
  6. {if auth("remove")}
  7. <button class="layui-btn layui-btn-sm layui-btn-primary" data-confirm="确定要删除吗?" data-action="{:url('remove')}" data-rule="id#{key}" data-csrf="{:systoken('remove')}">删 除</button>
  8. {/if}
  9. {/block}
  10. {block name="content"}
  11. <div class="think-box-shadow">
  12. {include file='approve_maintain_user/index_search'}
  13. <table class="layui-table margin-top-10" lay-skin="line">
  14. {notempty name='list'}
  15. <thead>
  16. <tr>
  17. <th class='list-table-check-td think-checkbox'>
  18. <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
  19. </th>
  20. <th class='text-left nowrap'>类型</th>
  21. <th class='text-left nowrap'>姓名</th>
  22. <th class='text-left nowrap'>手机号码</th>
  23. <th class='text-left nowrap'>生日</th>
  24. <th class='text-left nowrap'>评价数量</th>
  25. <th class='text-left nowrap'>综合评分</th>
  26. <th class="text-left nowrap">操作</th>
  27. </tr>
  28. </thead>
  29. {/notempty}
  30. <tbody>
  31. {foreach $list as $key=>$vo}
  32. <tr>
  33. <td class='list-table-check-td think-checkbox'>
  34. <input class="list-check-box" value='{$vo.id}' type='checkbox'>
  35. </td>
  36. <td class='text-left nowrap'>{$get_type_title_list[$vo.type]}</td>
  37. <td class='text-left nowrap'>{$vo.name|default=''}</td>
  38. <td class='text-left nowrap'>{$vo.mobile|default='--'}</td>
  39. <td class='text-left nowrap'>{$vo.birthday|default='--'}</td>
  40. <td class='text-left nowrap color-red'><strong>{$vo.comment_count|default='--'}</strong></td>
  41. <td class='text-left nowrap color-red'><strong>{$vo.log_score|default='--'}</strong></td>
  42. <td class='text-left nowrap'>
  43. <a class="layui-btn layui-btn-xs layui-bg-blue"
  44. data-open="{:url('approve_maintain_user_log/index')}?user_id={$vo.id}">评价记录</a>
  45. {if auth("edit")}
  46. <a class="layui-btn layui-btn-xs" data-modal="{:url('edit')}?id={$vo.id}">编 辑</a>
  47. {/if}
  48. {if auth("remove")}
  49. <a class="layui-btn layui-btn-xs layui-btn-danger" data-confirm="确定要删除该维修人员吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
  50. {/if}
  51. </td>
  52. </tr>
  53. {/foreach}
  54. </tbody>
  55. </table>
  56. {empty name='list'}<span class="notdata">没 有 记 录 哦!</span>{else}{$pagehtml|raw|default=''}{/empty}
  57. </div>
  58. {/block}