|
2 | 2 |
|
3 | 3 | {% block content %}
|
4 | 4 | <!-- 自定义操作按钮-->
|
5 |
| - <div id="toolbar" class="form-inline pull-left"> |
6 |
| - <div class="form-group"> |
7 |
| - <select id="filter_instance_id" class="form-control selectpicker" |
8 |
| - data-live-search="true"> |
9 |
| - <option value="" selected="selected">全部实例</option> |
10 |
| - {% for ins in ins_list %} |
11 |
| - <option value="{{ ins.id }}">{{ ins.instance_name }}</option> |
12 |
| - {% endfor %} |
13 |
| - </select> |
14 |
| - </div> |
15 |
| - <div class="form-group"> |
16 |
| - <select id="state" class="form-control selectpicker"> |
17 |
| - <option value="" selected="selected">启用状态</option> |
18 |
| - <option value="true">启用</option> |
19 |
| - <option value="false">未启用</option> |
20 |
| - </select> |
21 |
| - </div> |
22 |
| - <div class="form-group"> |
23 |
| - <button id="btn_add" type="button" class="btn btn-default" |
24 |
| - data-toggle="modal" data-target="#apply"> |
25 |
| - <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> |
26 |
| - <span aria-hidden="true"></span>申请归档 |
27 |
| - </button> |
28 |
| - </div> |
29 |
| - {% if perms.sql.archive_mgt %} |
| 5 | + <div style="position: relative"> |
| 6 | + <div id="toolbar" class="form-inline pull-left" style="position: absolute;top: 10px"> |
| 7 | + <div class="form-group"> |
| 8 | + <select id="filter_instance_id" class="form-control selectpicker" |
| 9 | + data-live-search="true"> |
| 10 | + <option value="" selected="selected">全部实例</option> |
| 11 | + {% for ins in ins_list %} |
| 12 | + <option value="{{ ins.id }}">{{ ins.instance_name }}</option> |
| 13 | + {% endfor %} |
| 14 | + </select> |
| 15 | + </div> |
30 | 16 | <div class="form-group">
|
31 |
| - <button id="btn_add_config" type="button" class="btn btn-info" |
32 |
| - onclick="window.open('/admin/sql/archiveconfig/add/')"> |
33 |
| - <span class="glyphicon glyphicon-arrow-up" aria-hidden="true"></span> |
34 |
| - <span aria-hidden="true"></span>添加配置 |
| 17 | + <select id="state" class="form-control selectpicker"> |
| 18 | + <option value="" selected="selected">启用状态</option> |
| 19 | + <option value="true">启用</option> |
| 20 | + <option value="false">未启用</option> |
| 21 | + </select> |
| 22 | + </div> |
| 23 | + <div class="form-group"> |
| 24 | + <button id="btn_add" type="button" class="btn btn-default" |
| 25 | + data-toggle="modal" data-target="#apply"> |
| 26 | + <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> |
| 27 | + <span aria-hidden="true"></span>申请归档 |
35 | 28 | </button>
|
36 | 29 | </div>
|
37 |
| - {% endif %} |
| 30 | + {% if perms.sql.archive_mgt %} |
| 31 | + <div class="form-group"> |
| 32 | + <button id="btn_add_config" type="button" class="btn btn-info" |
| 33 | + onclick="window.open('/admin/sql/archiveconfig/add/')"> |
| 34 | + <span class="glyphicon glyphicon-arrow-up" aria-hidden="true"></span> |
| 35 | + <span aria-hidden="true"></span>添加配置 |
| 36 | + </button> |
| 37 | + </div> |
| 38 | + {% endif %} |
| 39 | + </div> |
38 | 40 | </div>
|
39 | 41 | <!-- 申请列表的表格-->
|
40 | 42 | <div class="table-responsive">
|
@@ -282,7 +284,7 @@ <h4 class="modal-title text-danger">工单日志</h4>
|
282 | 284 | cardView: false, //是否显示详细视图
|
283 | 285 | detailView: false, //是否显示父子表
|
284 | 286 | locale: 'zh-CN', //本地化
|
285 |
| - toolbar: "#toolbar", //指明自定义的toolbar |
| 287 | + // toolbar: "#toolbar", //指明自定义的toolbar |
286 | 288 | queryParamsType: 'limit',
|
287 | 289 | //请求服务数据时所传参数
|
288 | 290 | queryParams:
|
|
0 commit comments