info.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
  3. <head>
  4. <th:block th:include="include :: header('内网数据同步列表')"/>
  5. </head>
  6. <body class="gray-bg">
  7. <div class="container-div">
  8. <div class="row">
  9. <div class="col-sm-12 search-collapse">
  10. <form id="formId">
  11. <div class="select-list">
  12. <ul>
  13. <li>
  14. <label>文件名:</label>
  15. <input type="text" name="syncFileName"/>
  16. </li>
  17. <li>
  18. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
  19. class="fa fa-search"></i>&nbsp;搜索</a>
  20. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
  21. class="fa fa-refresh"></i>&nbsp;重置</a>
  22. </li>
  23. </ul>
  24. </div>
  25. </form>
  26. </div>
  27. <div class="btn-group-sm" id="toolbar" role="group">
  28. <!-- <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="in:info:add">-->
  29. <!-- <i class="fa fa-plus"></i> 添加-->
  30. <!-- </a>-->
  31. <!-- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="in:info:edit">-->
  32. <!-- <i class="fa fa-edit"></i> 修改-->
  33. <!-- </a>-->
  34. <!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="in:info:remove">-->
  35. <!-- <i class="fa fa-remove"></i> 删除-->
  36. <!-- </a>-->
  37. <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="in:info:export">
  38. <i class="fa fa-download"></i> 导出
  39. </a>
  40. </div>
  41. <div class="col-sm-12 select-table table-striped">
  42. <table id="bootstrap-table"></table>
  43. </div>
  44. </div>
  45. </div>
  46. <th:block th:include="include :: footer"/>
  47. <script th:inline="javascript">
  48. var editFlag = [[${@permission.hasPermi('in:info:edit')}]];
  49. var removeFlag = [[${@permission.hasPermi('in:info:remove')}]];
  50. var yesNo = [[${@dict.getType('sys_yes_no')}]];
  51. var prefix = ctx + "in/info";
  52. $(function () {
  53. var options = {
  54. url: prefix + "/list",
  55. createUrl: prefix + "/add",
  56. updateUrl: prefix + "/edit/{id}",
  57. removeUrl: prefix + "/remove",
  58. exportUrl: prefix + "/export",
  59. modalName: "内网数据同步",
  60. columns: [{
  61. checkbox: true
  62. },
  63. {
  64. field: 'infoId',
  65. title: '数据ID',
  66. visible: false
  67. },
  68. {
  69. field: 'syncType',
  70. title: '同步类型'
  71. },
  72. {
  73. field: 'syncFileName',
  74. title: '文件名'
  75. },
  76. {
  77. field: 'syncFileMd5',
  78. title: '文件MD5值'
  79. },
  80. {
  81. field: 'syncFileSize',
  82. title: '文件大小(MB)',
  83. formatter: function (value, row, index) {
  84. if (value / 1024 / 1024 / 1024 > 1) {
  85. return (value / 1024 / 1024 / 1024).toFixed(2) + " GB"
  86. } else if (value / 1024 / 1024 > 1) {
  87. return (value / 1024 / 1024).toFixed(2) + " MB"
  88. } else {
  89. return (value / 1024).toFixed(2) + " KB";
  90. }
  91. }
  92. },
  93. {
  94. field: 'syncSort',
  95. title: '文件本次序号'
  96. },
  97. {
  98. field: 'syncValid',
  99. title: 'MD5值校验状态',
  100. formatter: function (value, row, index) {
  101. return $.table.selectDictLabel(yesNo, value);
  102. }
  103. },
  104. {
  105. field: 'costTime',
  106. title: '花费时间(s)',
  107. formatter: function (value, row, index) {
  108. return value / 1000;
  109. }
  110. },
  111. {
  112. field: 'isSucess',
  113. title: '成功状态',
  114. formatter: function (value, row, index) {
  115. return $.table.selectDictLabel(yesNo, value);
  116. }
  117. },
  118. {
  119. field: 'createTime',
  120. title: '文件处理时间'
  121. },
  122. {
  123. field: 'logMsg',
  124. title: '日志信息'
  125. // },
  126. // {
  127. // title: '操作',
  128. // align: 'center',
  129. // formatter: function(value, row, index) {
  130. // var actions = [];
  131. // actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.infoId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
  132. // actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.infoId + '\')"><i class="fa fa-remove"></i>删除</a>');
  133. // return actions.join('');
  134. // }
  135. }]
  136. };
  137. $.table.init(options);
  138. });
  139. </script>
  140. </body>
  141. </html>