hjg
2024-03-18 8d48c59d5d3bcc4148ef97dc6f98e3a8cf9ca436
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?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;
        }
        .table-jj th,.table-jj td{
            text-align: center;
            padding: 2px 8px !important;
        }
        .bigger-95{
        font-size: 95% !important;
        }
        .btn-xs, .btn-group-xs > .btn{
          padding-top: 0px;
          padding-bottom: 0px;
        }
        .btn-xs{
            border:none;
        }
        </style>
    </ui:define>
    <ui:define name="acontent">
        <div class="row">
            <div class="col-xs-5">
                <div class="input-group">
                    <input class="form-control input-mask-date" type="text" id="keyword" placeholder="输入名称搜索" data-bind="value: filter, valueUpdate: 'afterkeydown'" />
                    <span class="input-group-btn">
                        <button class="btn btn-sm btn-default" type="button" id="searcha">
                            <i class="ace-icon fa fa-search bigger-110"></i>
                            搜索
                        </button>
                    </span>
                </div>
            </div>
            <div class="col-xs-7" style="text-align: right;">
                <button class="btn btn-sm btn-info" type="button" id="ctbtn">
                    <i class="ace-icon fa fa-plus bigger-110"></i>
                    新角色
                </button>
            </div>
            <div class="col-xs-12 table-responsive" style="margin-top: 8px">
                <table class="table table-striped table-bordered table-condensed table-hover table-jj">
                    <thead>
                        <tr>
                            <th style="min-width: 48px">序号</th>
                            <th style="min-width: 100px">名称</th>
                            <th style="min-width: 150px">备注</th>
                            <th style="min-width: 300px">操作</th>
                        </tr>
                    </thead>
                    <tbody data-bind="foreach:roles">
                        <tr>
                            <td data-bind="text:$index()+1">序号</td>
                            <td data-bind="text:$data.name">登陆名</td>
                            <td data-bind="text:$data.description">email</td>
                            <td>
                                <button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
                                    <!--<i class="ace-icon fa fa-edit bigger-95"></i>-->
                                    编辑
                                </button>
                                <button class="btn btn-xs btn-success" title="配置权限" data-bind="click: $parent.stp">
                                    <!--<i class="ace-icon fa fa-gavel bigger-95"></i>-->
                                    配置权限
                                </button>
                                <button class="btn btn-xs btn-success" title="配置菜单" data-bind="click: $parent.stm">
                                    <!--<i class="ace-icon fa fa-navicon bigger-95"></i>-->
                                    配置菜单
                                </button>
                                <button class="btn btn-xs btn-success" title="配置模块" data-bind="click: $parent.rms">
                                    <!--<i class="ace-icon fa fa-navicon bigger-95"></i>-->
                                    配置模块
                                </button>
                                <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.rm">
                                    <!--<i class="ace-icon fa fa-trash-o bigger-95"></i>-->
                                    删除
                                </button>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <div id="pagdiv"></div>
            </div>
        </div>
        <div class="modal fade" id="modal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                        <h4 class="modal-title"  data-bind="text:edittitle" ></h4>
                    </div>
                    <div class="modal-body">
                        <form class="form-horizontal" id="fm1">
                            <input type="hidden" name="id" id="id" value="" data-bind="value:role().id" />        
                            <div class="form-group">
                                <label for="name" class="col-sm-2 control-label">名称</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" id="name" name="name" placeholder="名称" data-bind="value:role().name"/>        
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="description" class="col-sm-2 control-label">备注</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" id="note" name="note" placeholder="备注" data-bind="value:role().description"/>        
                                </div>
                            </div>
                        </form>
                    </div>
                    <div id="errmsg"></div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary" data-loading-text="保存中..." id="tjbtn">提交</button>
                    </div>
                </div>
            </div>
        </div>
        <div id="dialog-confirm" class="hide">
            <div class="alert alert-info bigger-110" id="modalContent">
            </div>
        </div>
    </ui:define>
    <ui:define name="myscript">
        <script src="#{request.contextPath}/system/js/roles.js"></script>
    </ui:define>
</ui:composition>
</html>