提交 | 用户 | 时间
|
58d006
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
A |
2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
3 |
<html xmlns="http://www.w3.org/1999/xhtml" |
|
4 |
xmlns:c="http://java.sun.com/jsp/jstl/core" |
|
5 |
xmlns:h="http://java.sun.com/jsf/html" |
|
6 |
xmlns:f="http://java.sun.com/jsf/core" |
|
7 |
xmlns:ui="http://java.sun.com/jsf/facelets"> |
|
8 |
<ui:composition template="/template/nit/tmp_brief.xhtml"> |
|
9 |
<ui:define name="acss"> |
|
10 |
<style> |
|
11 |
#searchBtn { |
|
12 |
height: 34px; |
|
13 |
} |
|
14 |
p.error { |
|
15 |
color: #D9534F |
|
16 |
} |
|
17 |
input.error { |
|
18 |
border: 1px solid #D9534F; |
|
19 |
} |
|
20 |
</style> |
|
21 |
</ui:define> |
|
22 |
<ui:define name="acontent"> |
|
23 |
<input type="hidden" name="roleid" id="roleid" value="#{jrole.role.id}"/> |
|
24 |
<div class="row"> |
|
25 |
<div class="col-md-6"> |
|
26 |
<div class="input-group"> |
|
27 |
<input type="text" class="form-control" placeholder="请输入资源名" aria-describedby="basic-addon2" data-bind="value:filter" /> |
|
28 |
<a href="javascript:;" id="searcha" class="input-group-addon"> |
|
29 |
<span class="fa fa-search"></span> |
|
30 |
</a> |
|
31 |
</div> |
|
32 |
</div> |
|
33 |
<div class="col-md-6"> |
|
34 |
<div class="form-group"> |
|
35 |
<label for="TARGET" class="col-sm-2 control-label">资源分类</label> |
|
36 |
<div class="col-sm-8"> |
|
37 |
<select class="form-control" data-bind="value:type,event:{change:change}"> |
|
38 |
<option value="">-选择类型-</option> |
|
39 |
<option value="system">system</option> |
|
40 |
<option value="module">module</option> |
|
41 |
<option value="page">page</option> |
|
42 |
<option value="controller">controller</option> |
|
43 |
<option value="dom">dom</option> |
|
44 |
<option value="others">others</option> |
|
45 |
</select> |
|
46 |
</div> |
|
47 |
</div> |
|
48 |
</div> |
|
49 |
</div> |
|
50 |
<table class="table table-striped table-bordered table-condensed table-hover" style="margin-top: 8px"> |
|
51 |
<thead> |
|
52 |
<tr> |
|
53 |
<th>序号</th> |
|
54 |
<th>资源名</th> |
|
55 |
<th>备注</th> |
|
56 |
<th>权限</th> |
|
57 |
<th>操作值</th> |
|
58 |
<th>操作</th> |
|
59 |
</tr> |
|
60 |
</thead> |
|
61 |
<tbody data-bind="foreach:ress1"> |
|
62 |
<tr> |
|
63 |
<td data-bind="text:$index()+1">序号</td> |
|
64 |
<td data-bind="text:$data.url">登陆名</td> |
|
65 |
<td data-bind="text:$data.note">备注</td> |
|
66 |
<td> |
|
67 |
<input type="checkbox" data-bind="checked:$data.perm,click:$parent.ressel" /> |
|
68 |
</td> |
|
69 |
<td data-bind="text:$data.ov"></td> |
|
70 |
<td> |
|
71 |
<a href="javascript:void(0);"> |
|
72 |
<span class="fa fa-fire" data-bind="click:$parent.opsel1"></span> |
|
73 |
</a> |
|
74 |
</td> |
|
75 |
</tr> |
|
76 |
</tbody> |
|
77 |
</table> |
|
78 |
<div id="pagdiv"></div> |
|
79 |
<div class="modal fade" id="modal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> |
|
80 |
<div class="modal-dialog"> |
|
81 |
<div class="modal-content"> |
|
82 |
<div class="modal-header"> |
|
83 |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
|
84 |
<span aria-hidden="true">×</span> |
|
85 |
</button> |
|
86 |
<h4 class="modal-title" >操作</h4> |
|
87 |
</div> |
|
88 |
<div class="modal-body"> |
|
89 |
<div class="row"> |
|
90 |
<div class="col-md-12 form-horizontal"> |
|
91 |
<div class="form-group"> |
|
92 |
<label for="TARGET" class="col-sm-2 control-label">资源url</label> |
|
93 |
<div class="col-sm-8"> |
|
94 |
<span class="form-control" data-bind="text:res().url"></span> |
|
95 |
</div> |
|
96 |
</div> |
|
97 |
</div> |
|
98 |
</div> |
|
99 |
<table class="table table-striped table-bordered table-condensed table-hover"> |
|
100 |
<thead> |
|
101 |
<tr> |
|
102 |
<th>序号</th> |
|
103 |
<th>操作</th> |
|
104 |
<th>选中</th> |
|
105 |
</tr> |
|
106 |
</thead> |
|
107 |
<tbody data-bind="foreach:ops"> |
|
108 |
<tr> |
|
109 |
<td data-bind="text:$index()+1">序号</td> |
|
110 |
<td data-bind="text:$data.title">操作</td> |
|
111 |
<td> |
|
112 |
<input type="checkbox" data-bind="checked:$data.check" /> |
|
113 |
</td> |
|
114 |
</tr> |
|
115 |
</tbody> |
|
116 |
</table> |
|
117 |
</div> |
|
118 |
<div id="errmsg"></div> |
|
119 |
<div class="modal-footer"> |
|
120 |
<button type="button" class="btn btn-primary" data-loading-text="保存中..." id="tjbtn">更改</button> |
|
121 |
</div> |
|
122 |
</div> |
|
123 |
</div> |
|
124 |
</div> |
|
125 |
</ui:define> |
|
126 |
<ui:define name="myscript"> |
|
127 |
<script src="js/roleperms.js"></script> |
|
128 |
</ui:define> |
|
129 |
</ui:composition> |
|
130 |
</html> |