index1.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org"
  3. xmlns:mo="https://gitee.com/aun/Timo">
  4. <head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
  5. <link rel="stylesheet" th:href="@{/lib/zTree_v3/css/zTreeStyle/zTreeStyle.css}" type="text/css">
  6. </head>
  7. <body class="timo-layout-page">
  8. <div class="layui-card">
  9. <div class="layui-card-header timo-card-header">
  10. <span><i class="fa fa-bars"></i> 我的 Key 列表</span>
  11. <i class="layui-icon layui-icon-refresh refresh-btn"></i>
  12. </div>
  13. <div class="layui-card-body">
  14. <div class="timo-table-wrap">
  15. <table class="layui-table timo-table">
  16. <thead>
  17. <tr>
  18. <th class="sortable" data-field="appName">AccessKeyId</th>
  19. <th class="sortable" data-field="appName">AccessKeySecret</th>
  20. <th>操作</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. <tr th:each="item:${list}">
  25. <td th:text="${item.accessKeyId}">应用名</td>
  26. <td th:text="${item.accessKeySecret}">应用 ID</td>
  27. <td>
  28. <a class="ajax-post" th:attr="data-msg='确定要重新生成?'" th:href="@{'/api/store/my/key/regenerate'}">重新生成</a>
  29. <a class="ajax-delete" th:attr="data-msg='确定要删除 '+ ${item.accessKeyId}"
  30. th:href="@{'/api/store/my/key/delete/' + ${item.accessKeyId}}">删除</a>
  31. </td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36. </div>
  37. </div>
  38. <script th:replace="/common/template :: script"></script>
  39. <script type="text/javascript" th:src="@{/js/plugins/jquery-2.2.4.min.js}"></script>
  40. <script type="text/javascript">
  41. function getPageByCriteria() {
  42. console.log('select 事件')
  43. var envSelectedOption = $("#getPageByEnv option:selected")
  44. var envParam = envSelectedOption.text()
  45. var typeSelectedOption = $("#getPageByType option:selected")
  46. var typeParam = typeSelectedOption.text()
  47. url = '?env=' + envParam + '&type=' + typeParam
  48. window.location.href = window.location.pathname + url;
  49. }
  50. </script>
  51. </body>
  52. </html>