info.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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="newsInfoTitle"/>
  16. </li>
  17. <li>
  18. <label>新闻作者:</label>
  19. <input type="text" name="newsInfoAuthor"/>
  20. </li>
  21. <li>
  22. <label>新闻来源:</label>
  23. <input type="text" name="newsInfoSource"/>
  24. </li>
  25. <li class="select-time">
  26. <label>新闻时间:</label>
  27. <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginNewsInfoTime]"/>
  28. <span>-</span>
  29. <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endNewsInfoTime]"/>
  30. </li>
  31. <li>
  32. <label>新闻点击数量:</label>
  33. <input type="text" name="newsInfoClick"/>
  34. </li>
  35. <li>
  36. <label>创建新闻时间:</label>
  37. <input type="text" class="time-input" placeholder="请选择创建新闻时间" name="newsInfoInittime"/>
  38. </li>
  39. <li>
  40. <label>是否是轮播(0不是,1是):</label>
  41. <input type="text" name="newsInfoCarousel"/>
  42. </li>
  43. <li>
  44. <label>用户作者id:</label>
  45. <input type="text" name="newsInfoAuthorid"/>
  46. </li>
  47. <li>
  48. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  49. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  50. </li>
  51. </ul>
  52. </div>
  53. </form>
  54. </div>
  55. <div class="btn-group-sm" id="toolbar" role="group">
  56. <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:info:add">
  57. <i class="fa fa-plus"></i> 添加
  58. </a>
  59. <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:info:edit">
  60. <i class="fa fa-edit"></i> 修改
  61. </a>
  62. <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:info:remove">
  63. <i class="fa fa-remove"></i> 删除
  64. </a>
  65. <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:info:export">
  66. <i class="fa fa-download"></i> 导出
  67. </a>
  68. </div>
  69. <div class="col-sm-12 select-table table-striped">
  70. <table id="bootstrap-table"></table>
  71. </div>
  72. </div>
  73. </div>
  74. <th:block th:include="include :: footer" />
  75. <script th:inline="javascript">
  76. var editFlag = [[${@permission.hasPermi('system:info:edit')}]];
  77. var removeFlag = [[${@permission.hasPermi('system:info:remove')}]];
  78. var prefix = ctx + "system/info";
  79. $(function() {
  80. var options = {
  81. url: prefix + "/list",
  82. createUrl: prefix + "/add",
  83. updateUrl: prefix + "/edit/{id}",
  84. removeUrl: prefix + "/remove",
  85. exportUrl: prefix + "/export",
  86. modalName: "文章管理",
  87. columns: [{
  88. checkbox: true
  89. },
  90. {
  91. field: 'newsInfoId',
  92. title: '新闻编号',
  93. visible: false
  94. },
  95. {
  96. field: 'newsInfoTitle',
  97. title: '新闻标题'
  98. },
  99. {
  100. field: 'newsInfoAuthor',
  101. title: '新闻作者'
  102. },
  103. {
  104. field: 'newsInfoSource',
  105. title: '新闻来源'
  106. },
  107. {
  108. field: 'newsInfoContent',
  109. title: '新闻正文'
  110. },
  111. {
  112. field: 'newsInfoTime',
  113. title: '新闻时间'
  114. },
  115. {
  116. field: 'newsInfoClick',
  117. title: '新闻点击数量'
  118. },
  119. {
  120. field: 'newsInfoInittime',
  121. title: '创建新闻时间'
  122. },
  123. {
  124. field: 'newsInfoType',
  125. title: '新闻类型'
  126. },
  127. {
  128. field: 'newsInfoCarousel',
  129. title: '是否是轮播(0不是,1是)'
  130. },
  131. {
  132. field: 'newsInfoUrl',
  133. title: '封面标题'
  134. },
  135. {
  136. field: 'newsInfoAuthorid',
  137. title: '用户作者id'
  138. },
  139. {
  140. title: '操作',
  141. align: 'center',
  142. formatter: function(value, row, index) {
  143. var actions = [];
  144. actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.newsInfoId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
  145. actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.newsInfoId + '\')"><i class="fa fa-remove"></i>删除</a>');
  146. return actions.join('');
  147. }
  148. }]
  149. };
  150. $.table.init(options);
  151. });
  152. </script>
  153. </body>
  154. </html>