sysenv.html 2.3 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" th:attr="data-url=@{/sys/bak}">
  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="timo-table-wrap">
  12. <table class="layui-table timo-table">
  13. <thead>
  14. <tr>
  15. <th class="timo-table-checkbox">
  16. <label class="timo-checkbox"><input type="checkbox">
  17. <i class="layui-icon layui-icon-ok"></i></label>
  18. </th>
  19. <th class="sortable" data-field="env">环境</th>
  20. <th class="sortable" data-field="envName">环境名</th>
  21. <th class="sortable" data-field="isDefault">是否默认</th>
  22. <th>操作</th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. <tr th:each="item:${list}">
  27. <td><label class="timo-checkbox"><input type="checkbox" th:value="${item.id}">
  28. <i class="layui-icon layui-icon-ok"></i></label></td>
  29. <td th:text="${item.env}">环境</td>
  30. <td th:text="${item.envName}">环境名</td>
  31. <td th:text="${item.isDefault}">是否默认</td>
  32. <td>
  33. <a class="open-popup" data-title="WebTerminal" th:attr="data-url=@{'/api/machine/host/webssh/'+${item.id}}"
  34. href="#">设为默认</a>
  35. <a class="open-popup" data-title="WebTerminal" th:attr="data-url=@{'/api/machine/host/webssh/'+${item.id}}"
  36. href="#">编辑</a>
  37. <a class="ajax-delete" th:attr="data-msg='确定要删除 '+ ${item.envName} + '?'"
  38. th:href="@{'/api/machine/host/' + ${item.id}}">删除</a>
  39. </td>
  40. </tr>
  41. </tbody>
  42. </table>
  43. </div>
  44. </div>
  45. </div>
  46. <script th:replace="/common/template :: script"></script>
  47. <script type="text/javascript">
  48. </script>
  49. </body>
  50. </html>