| | |
| | | </div> |
| | | |
| | | <div class="btn-group-sm" id="toolbar" role="group"> |
| | | <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="web:security:patrol:patrolConf:add"> |
| | | <a class="btn btn-success" onclick="$.operate.add()" > |
| | | <i class="fa fa-plus"></i> 新增 |
| | | </a> |
| | | <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="web:security:patrol:patrolConf:edit"> |
| | | <a class="btn btn-primary single disabled" onclick="$.operate.edit()" > |
| | | <i class="fa fa-edit"></i> 修改 |
| | | </a> |
| | | <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="web:security:patrol:patrolConf:remove"> |
| | | <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" > |
| | | <i class="fa fa-remove"></i> 删除 |
| | | </a> |
| | | <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="web:security:patrol:patrolConf:export"> |
| | | <a class="btn btn-warning" onclick="$.table.exportExcel()" > |
| | | <i class="fa fa-download"></i> 导出 |
| | | </a> |
| | | </div> |
| | |
| | | <th:block th:include="include :: footer" /> |
| | | <th:block th:include="include :: select2-js" /> |
| | | <script th:inline="javascript"> |
| | | var editFlag = [[${@permission.hasPermi('web:security:patrol:patrolConf:edit')}]]; |
| | | var removeFlag = [[${@permission.hasPermi('web:security:patrol:patrolConf:remove')}]]; |
| | | var prefix = ctx + "security/patrol/patrolConf"; |
| | | |
| | | $(function() { |
| | |
| | | align: 'center', |
| | | formatter: function(value, row, index) { |
| | | var actions = []; |
| | | actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.batchId + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
| | | actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.batchId + '\')"><i class="fa fa-remove"></i>删除</a>'); |
| | | actions.push('<a class="btn btn-success btn-xs ' + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.batchId + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
| | | actions.push('<a class="btn btn-danger btn-xs ' + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.batchId + '\')"><i class="fa fa-remove"></i>删除</a>'); |
| | | return actions.join(''); |
| | | } |
| | | }] |