hjg
2024-01-20 4a3404efc438b16044fd9170814e6545a3f86fae
提交 | 用户 | 时间
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         select.error, input.error {
18             border: 1px solid #D9534F;
19         }
20         i.fa.danger {
21             color: #D15B47
22         }
23         i.fa.success {
24             color: #87B87F
25         }
26         #simple-table th,#simple-table td{
27             text-align: center;
28             padding: 2px 8px;
29         }
30         .bigger-95{
31         font-size: 95% !important;
32         }
33         .btn-xs, .btn-group-xs > .btn{
34           padding-top: 0px;
35           padding-bottom: 0px;
36         }
37         #form .control-label {
38             margin-right: -14px
39         }
40         .t-error{
41             color: red;
42             position: relative;
43             right: 2px;
44             top: 3px;
45         }
46         </style>
47     </ui:define>
48     <ui:define name="acontent">
49         <input type="hidden" value="#{param.page}" id="p" />
50         <input type="hidden" value="#{param.keyword}" id="k" />
51         <div class="row">
52             <div class="col-xs-5">
53                 <div class="input-group">
54                     <input class="form-control input-mask-date" type="text" value="#{param.keyword}" id="keyword" placeholder="输入名称搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" />
55                     <span class="input-group-btn">
56                         <button class="btn btn-sm btn-default" type="button" id="searchBtn">
57                             <i class="ace-icon fa fa-search bigger-110"></i>
58                             搜索
59                         </button>
60                     </span>
61                 </div>
62             </div>
63             <div class="col-xs-7" style="text-align: right;">
64                 <button class="btn btn-sm btn-info" type="button" id="newObj">
65                     <i class="ace-icon fa fa-plus bigger-110"></i>
66                     新增
67                 </button>
68             </div>
69             <div class="col-xs-12 table-responsive" style="margin-top: 8px;">
70                 <table id="simple-table" class="table  table-bordered table-hover">
71                     <thead>
72                         <tr>
73                             <th class="detail-col" style="min-width: 48px">序号</th>
74                             <th style="min-width: 100px">部门编号</th>
75                             <th style="min-width: 90px">部门名称</th>
76                             <th style="min-width: 48px">启用</th>
77                             <th style="min-width: 150px">备注</th>
78                             <th style="min-width: 80px; width: 80px">操作</th>
79                         </tr>
80                     </thead>
81
82                     <tbody data-bind="foreach: list">
83                         <tr>
84                             <td class="center">
85                                 <span data-bind="text: $index() + 1"></span>
86                             </td>
87
88                             <td data-bind="text: bianhao"></td>
89                             <td data-bind="text: bname"></td>
90                             <td>
91                                 <a href="javascript:;" title="启用中"><i class="fa fa-check success" data-bind="click: $parent.used, visible: used(),css: {danger: !used(), success: used()}"></i></a>
92                                 <a href="javascript:;" title="禁用中"><i class="fa fa-close danger" data-bind="click: $parent.used, visible: !used(),css: {danger: !used(), success: used()}"></i></a>
93                             </td>
94                             <td data-bind="text: note"></td>
95
96                             <td>
97                                 <div class="btn-group">
98                                   <!--   <button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
99                                         <i class="ace-icon fa fa-pencil bigger-120"></i>
100                                     </button> -->
101
102                                     <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del">
103                                         <!--<i class="ace-icon fa fa-trash-o bigger-95"></i>-->
104                                         删除
105                                     </button>
106                                 </div>
107                             </td>
108                         </tr>
109                     </tbody>
110                 </table>
111                 <div id="pagdiv"></div>
112             </div>
113         </div>
114         <div class="modal fade" id="modal">
115             <div class="modal-dialog">
116                 <div class="modal-content">
117                     <div class="modal-header">
118                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
119                         <h4 class="modal-title">编辑系统部门</h4>
120                     </div>
121                     <div class="modal-body">
122                         <form class="form-horizontal" id="form">
123                             <div class="form-body">
124                                 <div class="form-group">
125                                     <label class="col-md-3 control-label"><span class="t-error">*</span>部门名称</label>
126                                     <div class="col-md-6">
127                                         <select id="" class="form-control" name="bianhao" data-bind="value: o().bianhao, options: dList, optionsText: 'name', optionsValue: 'bianhao', optionsCaption: '请选择部门'"></select>
128                                     </div>
129                                     <div class="col-md-3">
130                                         <p class="form-control-static text-error"></p>
131                                     </div>
132                                 </div>
133                             </div>
134                             <div class="form-body">
135                                 <div class="form-group">
136                                     <label class="col-md-3 control-label">启用</label>
137                                     <div class="col-md-6" style="padding-top: 7px">
138                                         <input id="objUsed" type="checkbox" data-bind="checked: o().used()" class="ace ace-switch ace-switch-4" />
139                                         <span class="lbl middle"></span>
140                                     </div>
141                                 </div>
142                             </div>
143                             <div class="form-body">
144                                 <div class="form-group">
145                                     <label class="col-md-3 control-label">备注</label>
146                                     <div class="col-md-6">
147                                         <input type="text" class="form-control" placeholder="" data-bind="value: o().note"/>
148                                     </div>
149                                 </div>
150                             </div>
151                         </form>
152                     </div>
153                     <div class="modal-footer">
154                         <button type="button" class="btn btn-sm btn-default" data-dismiss="modal">取消</button>
155                         <button type="button" class="btn btn-sm btn-primary" id="save">保存</button>
156                     </div>
157                 </div>
158             </div>
159         </div>
160         <div id="dialog-confirm" class="hide">
161             <div class="alert alert-info bigger-110" id="modalContent">
162             </div>
163         </div>
164     </ui:define>
165     <ui:define name="myscript">
166         <script src="js/sysDepart.js"></script>
167     </ui:define>
168 </ui:composition>
169 </html>