miaofuhao 1 year ago
parent
commit
b68c9c4e1f

+ 8 - 2
CallCenterWeb.UI/WorkOrder/WorkOrderTransfer.html

@@ -11,6 +11,9 @@
11 11
     <link rel="stylesheet" href="../css/WorkOrder/jquery.editable-select.css" />
12 12
     <link rel="stylesheet" href="../js/comboSelect/combo.select.css" />
13 13
     <link rel="stylesheet" href="../css/init.css" />
14
+    <link rel="stylesheet" href="../css/bootstrap-select.css" />
15
+	<script src="../js/bootstrap-select.js"></script>
16
+
14 17
     <title>分派</title>
15 18
     <style>
16 19
         ul li {
@@ -54,7 +57,10 @@
54 57
         button[disabled] {
55 58
             background-color: #999;
56 59
         }
57
-		
60
+		.btn-default{
61
+			background: #FFFFFF;
62
+			color:#000000
63
+		}
58 64
 		
59 65
     </style>
60 66
 </head>
@@ -76,7 +82,7 @@
76 82
 	                    <th class="submitterTitle"></th>
77 83
 	                	<td style="position: relative" class="submitterSelect">
78 84
 	                		<div class="form-group">
79
-								<select class="form-control" id="customer_submitter">
85
+								<select class="selectpicker show-tick form-control" id="customer_submitter" data-live-search="true">
80 86
 	       							<option value ="">请选择</option>
81 87
 								</select>
82 88
 							</div>

+ 431 - 0
CallCenterWeb.UI/css/bootstrap-select.css

@@ -0,0 +1,431 @@
1
+/*!
2
+ * Bootstrap-select v1.13.9 (https://developer.snapappointments.com/bootstrap-select)
3
+ *
4
+ * Copyright 2012-2019 SnapAppointments, LLC
5
+ * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)
6
+ */
7
+
8
+select.bs-select-hidden,
9
+.bootstrap-select > select.bs-select-hidden,
10
+select.selectpicker {
11
+  display: none !important;
12
+}
13
+.bootstrap-select {
14
+  width: 220px \0;
15
+  /*IE9 and below*/
16
+  vertical-align: middle;
17
+}
18
+.bootstrap-select > .dropdown-toggle {
19
+  position: relative;
20
+  width: 100%;
21
+  text-align: right;
22
+  white-space: nowrap;
23
+  display: -webkit-inline-box;
24
+  display: -webkit-inline-flex;
25
+  display: -ms-inline-flexbox;
26
+  display: inline-flex;
27
+  -webkit-box-align: center;
28
+  -webkit-align-items: center;
29
+      -ms-flex-align: center;
30
+          align-items: center;
31
+  -webkit-box-pack: justify;
32
+  -webkit-justify-content: space-between;
33
+      -ms-flex-pack: justify;
34
+          justify-content: space-between;
35
+}
36
+.bootstrap-select > .dropdown-toggle:after {
37
+  margin-top: -1px;
38
+}
39
+.bootstrap-select > .dropdown-toggle.bs-placeholder,
40
+.bootstrap-select > .dropdown-toggle.bs-placeholder:hover,
41
+.bootstrap-select > .dropdown-toggle.bs-placeholder:focus,
42
+.bootstrap-select > .dropdown-toggle.bs-placeholder:active {
43
+  color: #999;
44
+}
45
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary,
46
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary,
47
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success,
48
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger,
49
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info,
50
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark,
51
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:hover,
52
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:hover,
53
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:hover,
54
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:hover,
55
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:hover,
56
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:hover,
57
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:focus,
58
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:focus,
59
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:focus,
60
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:focus,
61
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:focus,
62
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:focus,
63
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:active,
64
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:active,
65
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:active,
66
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:active,
67
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:active,
68
+.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:active {
69
+  color: rgba(255, 255, 255, 0.5);
70
+}
71
+.bootstrap-select > select {
72
+  position: absolute !important;
73
+  bottom: 0;
74
+  left: 50%;
75
+  display: block !important;
76
+  width: 0.5px !important;
77
+  height: 100% !important;
78
+  padding: 0 !important;
79
+  opacity: 0 !important;
80
+  border: none;
81
+  z-index: 0 !important;
82
+}
83
+.bootstrap-select > select.mobile-device {
84
+  top: 0;
85
+  left: 0;
86
+  display: block !important;
87
+  width: 100% !important;
88
+  z-index: 2 !important;
89
+}
90
+.has-error .bootstrap-select .dropdown-toggle,
91
+.error .bootstrap-select .dropdown-toggle,
92
+.bootstrap-select.is-invalid .dropdown-toggle,
93
+.was-validated .bootstrap-select .selectpicker:invalid + .dropdown-toggle {
94
+  border-color: #b94a48;
95
+}
96
+.bootstrap-select.is-valid .dropdown-toggle,
97
+.was-validated .bootstrap-select .selectpicker:valid + .dropdown-toggle {
98
+  border-color: #28a745;
99
+}
100
+.bootstrap-select.fit-width {
101
+  width: auto !important;
102
+}
103
+.bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) {
104
+  width: 220px;
105
+}
106
+.bootstrap-select > select.mobile-device:focus + .dropdown-toggle,
107
+.bootstrap-select .dropdown-toggle:focus {
108
+  outline: thin dotted #333333 !important;
109
+  outline: 5px auto -webkit-focus-ring-color !important;
110
+  outline-offset: -2px;
111
+}
112
+.bootstrap-select.form-control {
113
+  margin-bottom: 0;
114
+  padding: 0;
115
+  border: none;
116
+}
117
+:not(.input-group) > .bootstrap-select.form-control:not([class*="col-"]) {
118
+  width: 100%;
119
+}
120
+.bootstrap-select.form-control.input-group-btn {
121
+  float: none;
122
+  z-index: auto;
123
+}
124
+.form-inline .bootstrap-select,
125
+.form-inline .bootstrap-select.form-control:not([class*="col-"]) {
126
+  width: auto;
127
+}
128
+.bootstrap-select:not(.input-group-btn),
129
+.bootstrap-select[class*="col-"] {
130
+  float: none;
131
+  display: inline-block;
132
+  margin-left: 0;
133
+}
134
+.bootstrap-select.dropdown-menu-right,
135
+.bootstrap-select[class*="col-"].dropdown-menu-right,
136
+.row .bootstrap-select[class*="col-"].dropdown-menu-right {
137
+  float: right;
138
+}
139
+.form-inline .bootstrap-select,
140
+.form-horizontal .bootstrap-select,
141
+.form-group .bootstrap-select {
142
+  margin-bottom: 0;
143
+}
144
+.form-group-lg .bootstrap-select.form-control,
145
+.form-group-sm .bootstrap-select.form-control {
146
+  padding: 0;
147
+}
148
+.form-group-lg .bootstrap-select.form-control .dropdown-toggle,
149
+.form-group-sm .bootstrap-select.form-control .dropdown-toggle {
150
+  height: 100%;
151
+  font-size: inherit;
152
+  line-height: inherit;
153
+  border-radius: inherit;
154
+}
155
+.bootstrap-select.form-control-sm .dropdown-toggle,
156
+.bootstrap-select.form-control-lg .dropdown-toggle {
157
+  font-size: inherit;
158
+  line-height: inherit;
159
+  border-radius: inherit;
160
+}
161
+.bootstrap-select.form-control-sm .dropdown-toggle {
162
+  padding: 0.25rem 0.5rem;
163
+}
164
+.bootstrap-select.form-control-lg .dropdown-toggle {
165
+  padding: 0.5rem 1rem;
166
+}
167
+.form-inline .bootstrap-select .form-control {
168
+  width: 100%;
169
+}
170
+.bootstrap-select.disabled,
171
+.bootstrap-select > .disabled {
172
+  cursor: not-allowed;
173
+}
174
+.bootstrap-select.disabled:focus,
175
+.bootstrap-select > .disabled:focus {
176
+  outline: none !important;
177
+}
178
+.bootstrap-select.bs-container {
179
+  position: absolute;
180
+  top: 0;
181
+  left: 0;
182
+  height: 0 !important;
183
+  padding: 0 !important;
184
+}
185
+.bootstrap-select.bs-container .dropdown-menu {
186
+  z-index: 1060;
187
+}
188
+.bootstrap-select .dropdown-toggle .filter-option {
189
+  position: static;
190
+  top: 0;
191
+  left: 0;
192
+  float: left;
193
+  height: 100%;
194
+  width: 100%;
195
+  text-align: left;
196
+  overflow: hidden;
197
+  -webkit-box-flex: 0;
198
+  -webkit-flex: 0 1 auto;
199
+      -ms-flex: 0 1 auto;
200
+          flex: 0 1 auto;
201
+}
202
+.bs3.bootstrap-select .dropdown-toggle .filter-option {
203
+  padding-right: inherit;
204
+}
205
+.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option {
206
+  position: absolute;
207
+  padding-top: inherit;
208
+  padding-bottom: inherit;
209
+  padding-left: inherit;
210
+  float: none;
211
+}
212
+.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option .filter-option-inner {
213
+  padding-right: inherit;
214
+}
215
+.bootstrap-select .dropdown-toggle .filter-option-inner-inner {
216
+  overflow: hidden;
217
+}
218
+.bootstrap-select .dropdown-toggle .filter-expand {
219
+  width: 0 !important;
220
+  float: left;
221
+  opacity: 0 !important;
222
+  overflow: hidden;
223
+}
224
+.bootstrap-select .dropdown-toggle .caret {
225
+  position: absolute;
226
+  top: 50%;
227
+  right: 12px;
228
+  margin-top: -2px;
229
+  vertical-align: middle;
230
+}
231
+.input-group .bootstrap-select.form-control .dropdown-toggle {
232
+  border-radius: inherit;
233
+}
234
+.bootstrap-select[class*="col-"] .dropdown-toggle {
235
+  width: 100%;
236
+}
237
+.bootstrap-select .dropdown-menu {
238
+  min-width: 100%;
239
+  -webkit-box-sizing: border-box;
240
+     -moz-box-sizing: border-box;
241
+          box-sizing: border-box;
242
+}
243
+.bootstrap-select .dropdown-menu > .inner:focus {
244
+  outline: none !important;
245
+}
246
+.bootstrap-select .dropdown-menu.inner {
247
+  position: static;
248
+  float: none;
249
+  border: 0;
250
+  padding: 0;
251
+  margin: 0;
252
+  border-radius: 0;
253
+  -webkit-box-shadow: none;
254
+          box-shadow: none;
255
+}
256
+.bootstrap-select .dropdown-menu li {
257
+  position: relative;
258
+}
259
+.bootstrap-select .dropdown-menu li.active small {
260
+  color: rgba(255, 255, 255, 0.5) !important;
261
+}
262
+.bootstrap-select .dropdown-menu li.disabled a {
263
+  cursor: not-allowed;
264
+}
265
+.bootstrap-select .dropdown-menu li a {
266
+  cursor: pointer;
267
+  -webkit-user-select: none;
268
+     -moz-user-select: none;
269
+      -ms-user-select: none;
270
+          user-select: none;
271
+}
272
+.bootstrap-select .dropdown-menu li a.opt {
273
+  position: relative;
274
+  padding-left: 2.25em;
275
+}
276
+.bootstrap-select .dropdown-menu li a span.check-mark {
277
+  display: none;
278
+}
279
+.bootstrap-select .dropdown-menu li a span.text {
280
+  display: inline-block;
281
+  color: #000000;
282
+  
283
+}
284
+.bootstrap-select .dropdown-menu li small {
285
+  padding-left: 0.5em;
286
+}
287
+.bootstrap-select .dropdown-menu .notify {
288
+  position: absolute;
289
+  bottom: 5px;
290
+  width: 96%;
291
+  margin: 0 2%;
292
+  min-height: 26px;
293
+  padding: 3px 5px;
294
+  background: #f5f5f5;
295
+  border: 1px solid #e3e3e3;
296
+  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
297
+          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
298
+  pointer-events: none;
299
+  opacity: 0.9;
300
+  -webkit-box-sizing: border-box;
301
+     -moz-box-sizing: border-box;
302
+          box-sizing: border-box;
303
+}
304
+.bootstrap-select .no-results {
305
+  padding: 3px;
306
+  background: #f5f5f5;
307
+  margin: 0 5px;
308
+  white-space: nowrap;
309
+}
310
+.bootstrap-select.fit-width .dropdown-toggle .filter-option {
311
+  position: static;
312
+  display: inline;
313
+  padding: 0;
314
+  width: auto;
315
+}
316
+.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner,
317
+.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner-inner {
318
+  display: inline;
319
+}
320
+.bootstrap-select.fit-width .dropdown-toggle .bs-caret:before {
321
+  content: '\00a0';
322
+}
323
+.bootstrap-select.fit-width .dropdown-toggle .caret {
324
+  position: static;
325
+  top: auto;
326
+  margin-top: -1px;
327
+}
328
+.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {
329
+  position: absolute;
330
+  display: inline-block;
331
+  right: 15px;
332
+  top: 5px;
333
+}
334
+.bootstrap-select.show-tick .dropdown-menu li a span.text {
335
+  margin-right: 34px;
336
+}
337
+.bootstrap-select .bs-ok-default:after {
338
+  content: '';
339
+  display: block;
340
+  width: 0.5em;
341
+  height: 1em;
342
+  border-style: solid;
343
+  border-width: 0 0.26em 0.26em 0;
344
+  -webkit-transform: rotate(45deg);
345
+      -ms-transform: rotate(45deg);
346
+       -o-transform: rotate(45deg);
347
+          transform: rotate(45deg);
348
+}
349
+.bootstrap-select.show-menu-arrow.open > .dropdown-toggle,
350
+.bootstrap-select.show-menu-arrow.show > .dropdown-toggle {
351
+  z-index: 1061;
352
+}
353
+.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:before {
354
+  content: '';
355
+  border-left: 7px solid transparent;
356
+  border-right: 7px solid transparent;
357
+  border-bottom: 7px solid rgba(204, 204, 204, 0.2);
358
+  position: absolute;
359
+  bottom: -4px;
360
+  left: 9px;
361
+  display: none;
362
+}
363
+.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:after {
364
+  content: '';
365
+  border-left: 6px solid transparent;
366
+  border-right: 6px solid transparent;
367
+  border-bottom: 6px solid white;
368
+  position: absolute;
369
+  bottom: -4px;
370
+  left: 10px;
371
+  display: none;
372
+}
373
+.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:before {
374
+  bottom: auto;
375
+  top: -4px;
376
+  border-top: 7px solid rgba(204, 204, 204, 0.2);
377
+  border-bottom: 0;
378
+}
379
+.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:after {
380
+  bottom: auto;
381
+  top: -4px;
382
+  border-top: 6px solid white;
383
+  border-bottom: 0;
384
+}
385
+.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:before {
386
+  right: 12px;
387
+  left: auto;
388
+}
389
+.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:after {
390
+  right: 13px;
391
+  left: auto;
392
+}
393
+.bootstrap-select.show-menu-arrow.open > .dropdown-toggle .filter-option:before,
394
+.bootstrap-select.show-menu-arrow.show > .dropdown-toggle .filter-option:before,
395
+.bootstrap-select.show-menu-arrow.open > .dropdown-toggle .filter-option:after,
396
+.bootstrap-select.show-menu-arrow.show > .dropdown-toggle .filter-option:after {
397
+  display: block;
398
+}
399
+.bs-searchbox,
400
+.bs-actionsbox,
401
+.bs-donebutton {
402
+  padding: 4px 8px;
403
+}
404
+.bs-actionsbox {
405
+  width: 100%;
406
+  -webkit-box-sizing: border-box;
407
+     -moz-box-sizing: border-box;
408
+          box-sizing: border-box;
409
+}
410
+.bs-actionsbox .btn-group button {
411
+  width: 50%;
412
+}
413
+.bs-donebutton {
414
+  float: left;
415
+  width: 100%;
416
+  -webkit-box-sizing: border-box;
417
+     -moz-box-sizing: border-box;
418
+          box-sizing: border-box;
419
+}
420
+.bs-donebutton .btn-group button {
421
+  width: 100%;
422
+}
423
+.bs-searchbox + .bs-actionsbox {
424
+  padding: 0 8px 4px;
425
+}
426
+.bs-searchbox .form-control {
427
+  margin-bottom: 0;
428
+  width: 100%;
429
+  float: none;
430
+}
431
+/*# sourceMappingURL=bootstrap-select.css.map */

+ 2 - 2
CallCenterWeb.UI/index.html

@@ -832,10 +832,10 @@
832 832
                                     <i class="iconfont fa-5x Meeting"></i>
833 833
                                     <p>多方通话</p>
834 834
                                 </li> -->
835
-                                <!-- <li datafun="Transfer">
835
+                                 <li datafun="Transfer">
836 836
                                     <i class="iconfont fa-5x Transfer"></i>
837 837
                                     <p>转移</p>
838
-                                </li> -->
838
+                                </li> 
839 839
                                 <li datafun="Hold">
840 840
                                     <i class="iconfont fa-5x Hold"></i>
841 841
                                     <p>保持</p>

+ 4 - 0
CallCenterWeb.UI/js/WorkOrder/WorkOrderTransfer.js

@@ -83,6 +83,10 @@ function getSalesman(obj) {
83 83
 			$(content).each(function (i, n) {
84 84
 				$("<option value='" + n.F_UserId + "'deptId='" + n.F_DeptId + "'>" + n.F_DeptName + " - " +n.F_UserName + "</option>").appendTo(obj);
85 85
 			})
86
+			obj.selectpicker({
87
+                noneSelectedText: "请选择", //默认显示内容
88
+            });
89
+            obj.selectpicker("refresh");
86 90
 	})
87 91
 }
88 92
 

File diff suppressed because it is too large
+ 3067 - 0
CallCenterWeb.UI/js/bootstrap-select.js