Administrator
2023-03-15 c7bbfa1c4c448f703dd9b93de18cd7c93f16fc55
提交 | 用户 | 时间
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         <link rel="stylesheet" href="#{request.contextPath}/template/assets/css/jstree/themes/default/style.min.css"/>
11         <style>
12         #searchBtn {
13             height: 34px;
14         }
15         p.error {
16             color: #D9534F
17         }
18         input.error {
19             border: 1px solid #D9534F;
20         }
21         i.fa.danger {
22             color: #D15B47
23         }
24         i.fa.success {
25             color: #87B87F
26         }
27         .modal {
28             padding-right: 17px !important
29         }
30         .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
31             height: 25px;
32         }
33         .chosen-container {
34             width: 100% !important;
35         }
36         #simple-table th,#simple-table td{
37             text-align: center;
38             padding: 2px 8px;
39         }
40         .bigger-95{
41         font-size: 95% !important;
42         }
43         .btn-xs, .btn-group-xs > .btn{
44           padding-top: 0px;
45           padding-bottom: 0px;
46         }
47         #form .control-label {
48             margin-right: -14px
49         }
50         .t-error{
51             color: red;
52             position: relative;
53             right: 2px;
54             top: 3px;
55         }
56         </style>
57     </ui:define>
58     <ui:define name="acontent">
59         <input type="hidden" value="#{param.page}" id="p" />
60         <input type="hidden" value="#{param.keyword}" id="k" />
61         <input type="hidden" value="#{param.d}" id="d" />
62         <div class="row">
63             <div class="col-xs-2">
64                 <select name="" id="" class="form-control" data-bind="value: did, options: dList, optionsText: 'name', optionsValue: 'id', optionsCaption: '请选择部门', event: {change: change}"></select>
65             </div>
66             <div class="col-xs-5" style="margin-left: -31px">
67                 <div class="input-group">
68                     <input class="form-control input-mask-date" type="text" value="#{param.keyword}" id="keyword" placeholder="输入名称搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" />
69                     <span class="input-group-btn">
70                         <button class="btn btn-sm btn-default" type="button" id="searchBtn">
71                             <i class="ace-icon fa fa-search bigger-110"></i>
72                             搜索
73                         </button>
74                     </span>
75                 </div>
76             </div>
77             <div class="col-xs-5" style="text-align: right;">
78                 <button class="btn btn-sm btn-info" type="button" id="newObj">
79                     <i class="ace-icon fa fa-plus bigger-110"></i>
80                     新磅房
81                 </button>
82             </div>
83             <div class="col-xs-12 table-responsive" style="margin-top: 8px;">
84                 <table id="simple-table" class="table  table-bordered table-hover">
85                     <thead>
86                         <tr>
87                             <th class="detail-col" style="min-width: 48px">序号</th>
88                             <th style="min-width: 100px">磅房编号</th>
89                             <th style="min-width: 150px">磅房名称</th>
90                             <th style="min-width: 48px">状态</th>
91                             <th style="min-width: 90px">所属部门</th>
92                             <th style="min-width: 150px">地点</th>
93                             <th style="min-width: 150px">备注</th>
94                             <!--<th style="min-width: 90px">门禁配置</th>-->
95                             <th style="min-width: 180px; width: 180px">操作</th>
96                         </tr>
97                     </thead>
98
99                     <tbody data-bind="foreach: list">
100                         <tr>
101                             <td class="center">
102                                 <span data-bind="text: $index() + 1"></span>
103                             </td>
104
105                             <td data-bind="text: weighthNo"></td>
106                             <td data-bind="text: name"></td>
107                             <td data-bind="text: status"></td>
108                             <td data-bind="text: departname"></td>
109                             <td data-bind="text: address"></td>
110                             <td data-bind="text: note"></td>
111                             <!--<td>
112                                 <div class="btn-group">
113                                     <button class="btn btn-xs btn-info" title="门禁配置" data-bind="click: $parent.gates">
114                                         <i class="ace-icon fa fa-external-link-square bigger-120"></i>
115                                         门禁配置
116                                     </button>
117                                 </div>
118                             </td>-->
119                             <td>
120                                 <div class="btn-group">
121                                     <button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
122                                         <!--<i class="ace-icon fa fa-pencil bigger-95"></i>-->
123                                         编辑
124                                     </button>
125                                     <button class="btn btn-xs btn-info" title="客户端配置" data-bind="click: $parent.mclient">
126                                         <!--<i class="ace-icon fa fa-laptop bigger-95"></i>-->
127                                         客户端配置
128                                     </button>
129                                     <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del">
130                                         <!--<i class="ace-icon fa fa-trash-o bigger-95"></i>-->
131                                         删除
132                                     </button>
133                                 </div>
134                             </td>
135                         </tr>
136                     </tbody>
137                 </table>
138                 <div id="pagdiv"></div>
139             </div>
140         </div>
141         <div class="modal fade" id="modal">
142             <div class="modal-dialog">
143                 <div class="modal-content">
144                     <div class="modal-header">
145                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
146                         <h4 class="modal-title">编辑磅房</h4>
147                     </div>
148                     <div class="modal-body">
149                         <form class="form-horizontal" id="form">
150                             <div class="form-body">
151                                 <div class="form-group">
152                                     <label class="col-md-3 control-label"><span class="t-error">*</span>磅房编号</label>
153                                     <div class="col-md-6">
154                                         <!--<span style="line-height: 34px" data-bind="text: o().weighthNo"></span>-->
155                                         <input type="text" class="form-control" placeholder="" id="weighthNo" name="weighthNo" data-bind="value: o().weighthNo"/>
156                                     </div>
157                                     <div class="col-md-3">
158                                         <p class="form-control-static text-error"></p>
159                                     </div>
160                                 </div>
161                             </div>
162                             <div class="form-body">
163                                 <div class="form-group">
164                                     <label class="col-md-3 control-label"><span class="t-error">*</span>磅房名称</label>
165                                     <div class="col-md-6">
166                                         <input type="text" class="form-control" name="name" placeholder="" data-bind="value: o().name"/>
167                                     </div>
168                                     <div class="col-md-3">
169                                         <p class="form-control-static text-error"></p>
170                                     </div>
171                                 </div>
172                             </div>
173                             <div class="form-body">
174                                 <div class="form-group">
175                                     <label class="col-md-3 control-label"><span class="t-error">*</span>状态</label>
176                                     <div class="col-md-6">
177                                         <select name="" id="" class="form-control" data-bind="value: o().status, options: sList"></select>
178                                     </div>
179                                     <div class="col-md-3">
180                                         <p class="form-control-static text-error"></p>
181                                     </div>
182                                 </div>
183                             </div>
184                             <div class="form-body">
185                                 <div class="form-group">
186                                     <label class="col-md-3 control-label"><span class="t-error">*</span>所属部门</label>
187                                     <div class="col-md-6">
188                                         <input type="text" class="form-control" readonly="readonly" id="departName" placeholder="" data-bind="value: o().departname" name="departname"/>
189                                     </div>
190                                     <div class="col-md-3">
191                                         <p class="form-control-static text-error"></p>
192                                     </div>
193                                 </div>
194                             </div>
195                             <div class="form-body">
196                                 <div class="form-group">
197                                     <label class="col-md-3 control-label">地点</label>
198                                     <div class="col-md-6">
199                                         <input type="text" class="form-control" name="name" placeholder="" data-bind="value: o().address"/>
200                                     </div>
201                                 </div>
202                             </div>
203                             <div class="form-body">
204                                 <div class="form-group">
205                                     <label class="col-md-3 control-label">备注</label>
206                                     <div class="col-md-6">
207                                         <input type="text" class="form-control" name="name" placeholder="" data-bind="value: o().note"/>
208                                     </div>
209                                 </div>
210                             </div>
211                         </form>
212                     </div>
213                     <div class="modal-footer">
214                         <button type="button" class="btn btn-sm btn-default" data-dismiss="modal">取消</button>
215                         <button type="button" class="btn btn-sm btn-primary" id="save">保存</button>
216                     </div>
217                 </div>
218             </div>
219         </div>
220         <div class="modal" id="departModal" data-backdrop="false">
221             <div class="modal-dialog modal-sm">
222                 <div class="modal-content">
223                     <div class="modal-header">
224                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
225                         <h4 class="modal-title">选择部门</h4>
226                     </div>
227                     <div class="modal-body">
228                         <input type="text" class="search" id="search" placeholder="搜索"/>
229                         <div id="jstree_Enterprise"></div>
230                     </div>
231                     <div class="modal-footer">
232                         <button type="button" class="btn btn-primary btn-xs" data-dismiss="modal" id="saveDepart">保存</button>
233                     </div>
234                 </div>
235             </div>
236         </div>
237         <div class="modal fade" id="gatesModal">
238             <div class="modal-dialog">
239                 <div class="modal-content">
240                     <div class="modal-header">
241                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
242                         <h4 class="modal-title">门禁配置</h4>
243                     </div>
244                     <div class="modal-body">
245                         <div class="row">
246                             <div class="col-md-12">
247                                 <select data-placeholder="请选择门禁……"  id="dp" style="height: 34px; width: 100%;" multiple="multiple" class="chosen-select form-control tag-input-style" data-bind="selectedOptions: rList, options: gList, optionsText: 'name', optionsValue: 'id'">
248                                 </select>
249                             </div>
250                         </div>
251                     </div>
252                     <div class="modal-footer">
253                         <button type="button" class="btn btn-sm btn-default" data-dismiss="modal">取消</button>
254                         <button type="button" class="btn btn-sm btn-primary" id="saveGid">保存</button>
255                     </div>
256                 </div>
257             </div>
258         </div>
259         <div id="dialog-confirm" class="hide">
260             <div class="alert alert-info bigger-110" id="modalContent">
261             </div>
262         </div>
263     </ui:define>
264     <ui:define name="myscript">
265         <script type="text/javascript" src="#{request.contextPath}/template/nit/cdn/js/jstree.min.js"></script>
266         <script type="text/javascript" src="#{request.contextPath}/template/assets/js/chosen.jquery.js"></script>
267         <script src="js/weighthouse.js?v=2"></script>
268     </ui:define>
269 </ui:composition>
270 </html>