hjg
2023-10-08 a966b5abe5fb804464fe1cd09053a03fe94877fd
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition template="/template/nit/tmp_brief.xhtml">
    <ui:define name="acss">
        <style>
        #searchBtn {
            height: 34px;
        }
        p.error {
            color: #D9534F
        }
        input.error {
            border: 1px solid #D9534F;
        }
        </style>
    </ui:define>
    <ui:define name="acontent">
        <input  type="hidden" name="roleid" id="roleid" value="#{jrole.role.id}"/>
        <div class="row">
            <div class="col-md-6">
                <div class="input-group">
                    <input type="text" class="form-control" placeholder="请输入过滤内容" aria-describedby="basic-addon2" data-bind="value:filter" />            
                    <a href="javascript:;" id="searcha" class="input-group-addon">
                        <span class="fa fa-search"></span>
                    </a>
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <label for="TARGET" class="col-sm-2 control-label">菜单类</label>
                    <div class="col-sm-8">
                        <select class="form-control"  data-bind="value:mtype,options:mtypes,optionsText:'title',optionsValue:'id',event:{change:change}"></select>
                    </div>
                </div>
            </div>
        </div>
        <table class="table table-striped table-bordered table-condensed table-hover" style="margin-top: 8px">
            <thead>
                <tr>
                    <th>序号</th>
                    <th>菜单名</th>
                    <th>菜单url</th>
                    <th>是否启用</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody data-bind="foreach:menus">
                <tr>
                    <td data-bind="text:$index()+1">序号</td>
                    <td data-bind="text:$data[1]">登陆名</td>
                    <td data-bind="text:$data[2]"></td>
                    <td data-bind="text:$data[3]==true?'是':'否'"></td>
                    <td>
                        <input type="checkbox" data-bind="checked:$data[4],click:$parent.menusel" />        
                    </td>
                </tr>
            </tbody>
        </table>
        <div id="pagdiv"></div>
    </ui:define>
    <ui:define name="myscript">
        <script src="js/rolemenus.js"></script>
    </ui:define>
</ui:composition>
</html>