resList.vm
4.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<div class="table-responsive">
<div id="sample-table-2_wrapper" class="dataTables_wrapper" role="grid">
<div class="row hidden">
<div class="col-sm-6" style="width:100%">
<div id="sample-table-2_length" class="dataTables_length">
<form action="$url_res_list" id="form" method="get">
<input type="hidden" name="currPage" value="0"/>
<input type="hidden" name="param[parentId]" value="$!{parentId}"/>
<div class="row">
</div>
<div class="clearfix">
<span class="pull-right">
<input type="submit" value="查询结果">
<input type="button" value="重置条件" onclick="cleanForm('form');">
</span>
</div>
</form>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-3">
<div id="menuTree" class="ztree" style="overflow-y: auto; height: 800px;"></div>
</div>
<div class="col-xs-9">
<table id="sample-table-2" class="table table-striped table-bordered table-hover dataTable" aria-describedby="sample-table-2_info">
<thead>
<tr role="row">
<th>id</th>
<th>权限名称</th>
## <th>URL</th>
## <th>method</th>
## <th>描述</th>
<th><i class="icon-time bigger-110 hidden-480"></i>操作</th>
</tr>
</thead>
<tbody role="alert" aria-live="polite" aria-relevant="all">
#foreach($obj in $!{model.list})
<tr>
<td>
$!{obj.id}
</td>
<td>
<span title="$!{obj.description}">
$!{obj.resourceName}
</span>
</td>
## <td>
## [$!{obj.method}]$!{obj.url}
## </td>
## <td>
## $!{obj.method}
## </td>
## <td>
## $!{obj.description}
## </td>
<td>
<div class="action-buttons">
<a class="green" href="${url_res_save}?id=${obj.id}&navbarId=${model.query.param.parentId}">
<i class="fa fa-pencil "></i>修改
</a>
<a class="red" href="${url_res_del}?id=${obj.id}" onclick="return confirm('确定要删除!');">
<i class="fa fa-trash "></i>删除
</a>
</div>
</td>
</tr>
#end
</tbody>
</table>
<div class="row">
<div class="col-sm-6">
<a href="$url_res_save?navbarId=${model.query.param.parentId}" class="btn btn-success btn-sm ">添加</a>
</div>
<div class="col-sm-6">
<div class="dataTables_paginate paging_bootstrap">
<div class="pull-right">
#page($!{model.totalPage},$!{model.currPage})
</div>
<span class="pull-right" style="line-height: 33px;">
#set($tmpPage = $model.currPage + 1)
查询出$!{model.totalSize}条数据,共$!{model.totalPage}页,当前第$!{tmpPage}页
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>