venue.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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="address"/>
  16. </li>
  17. <li>
  18. <label>电话:</label>
  19. <input type="text" name="phoneNumber"/>
  20. </li>
  21. <li>
  22. <label>营业时间:</label>
  23. <input type="text" class="time-input" placeholder="请选择营业时间" name="businessHours"/>
  24. </li>
  25. <li>
  26. <label>场地服务:</label>
  27. <input type="text" name="venueService"/>
  28. </li>
  29. <li>
  30. <label>开始前N分钟不可预定:</label>
  31. <input type="text" name="thresholdValue"/>
  32. </li>
  33. <li>
  34. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  35. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  36. </li>
  37. </ul>
  38. </div>
  39. </form>
  40. </div>
  41. <div class="btn-group-sm" id="toolbar" role="group">
  42. <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:venue:add">
  43. <i class="fa fa-plus"></i> 添加
  44. </a>
  45. <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:venue:edit">
  46. <i class="fa fa-edit"></i> 修改
  47. </a>
  48. <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:venue:remove">
  49. <i class="fa fa-remove"></i> 删除
  50. </a>
  51. <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:venue:export">
  52. <i class="fa fa-download"></i> 导出
  53. </a>
  54. </div>
  55. <div class="col-sm-12 select-table table-striped">
  56. <table id="bootstrap-table"></table>
  57. </div>
  58. </div>
  59. </div>
  60. <th:block th:include="include :: footer" />
  61. <script th:inline="javascript">
  62. var editFlag = [[${@permission.hasPermi('system:venue:edit')}]];
  63. var removeFlag = [[${@permission.hasPermi('system:venue:remove')}]];
  64. var prefix = ctx + "system/venue";
  65. $(function() {
  66. var options = {
  67. url: prefix + "/list",
  68. createUrl: prefix + "/add",
  69. updateUrl: prefix + "/edit/{id}",
  70. removeUrl: prefix + "/remove",
  71. exportUrl: prefix + "/export",
  72. modalName: "场馆信息",
  73. columns: [{
  74. checkbox: true
  75. },
  76. {
  77. field: 'id',
  78. title: 'id',
  79. visible: false
  80. },
  81. {
  82. field: 'cover',
  83. title: '图片'
  84. },
  85. {
  86. field: 'address',
  87. title: '地址'
  88. },
  89. {
  90. field: 'phoneNumber',
  91. title: '电话'
  92. },
  93. {
  94. field: 'businessHours',
  95. title: '营业时间'
  96. },
  97. {
  98. field: 'venueIntroduction',
  99. title: '场馆介绍'
  100. },
  101. {
  102. field: 'venueService',
  103. title: '场地服务'
  104. },
  105. {
  106. field: 'thresholdValue',
  107. title: '开始前N分钟不可预定'
  108. },
  109. {
  110. title: '操作',
  111. align: 'center',
  112. formatter: function(value, row, index) {
  113. var actions = [];
  114. actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
  115. actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
  116. return actions.join('');
  117. }
  118. }]
  119. };
  120. $.table.init(options);
  121. });
  122. </script>
  123. </body>
  124. </html>