sysmsg.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org">
  3. <head th:replace="/common/template :: header(~{::title},~{::link},~{::style})"></head>
  4. <body class="timo-layout-page">
  5. <div class="layui-card">
  6. <div class="layui-card-header timo-card-header">
  7. <span><i class="fa fa-bars"></i> 系统消息</span>
  8. <i class="layui-icon layui-icon-refresh refresh-btn"></i>
  9. </div>
  10. <div class="layui-card-body">
  11. <div class="layui-row timo-card-screen put-row">
  12. <div class="layui-row timo-card-screen put-row">
  13. <div class="pull-right">
  14. <div class="btn-group-right">
  15. <button class="layui-btn">
  16. <i class="fa fa-recycle"><a class="ajax-post" th:href="@{/api/sys/message/clear}">清空消息</a></i>
  17. </button>
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. <div class="timo-table-wrap">
  23. <table class="layui-table timo-table">
  24. <thead>
  25. <tr>
  26. <th data-field="createTime">时间</th>
  27. <th data-field="machineIpv4">标题</th>
  28. <th data-field="unread">状态</th>
  29. <th>操作</th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. <tr th:each="item:${list}">
  34. <td th:text="${item.createTime}">时间</td>
  35. <td th:text="${item.title}">标题</td>
  36. <td th:text="${item.unread}">未读</td>
  37. <td>
  38. <a class="open-popup" data-title="消息内容" th:attr="data-url=@{'/sys/message/detail/'+${item.id}}"
  39. data-size="960,480" href="#">查看</a>
  40. </td>
  41. </tr>
  42. </tbody>
  43. </table>
  44. </div>
  45. <div th:replace="/common/fragment :: page"></div>
  46. </div>
  47. </div>
  48. <script th:replace="/common/template :: script"></script>
  49. </body>
  50. </html>