Explorar el Código

知识库修改

liuzhen %!s(int64=6) %!d(string=hace) años
padre
commit
b4f7363559

+ 9 - 1
WebUI/CallCenterWeb.UI/Script/Common/huayi.config.js

@@ -36,6 +36,14 @@ huayi.config = {
36 36
         "<a class='xg' onclick='sign(data)' title='签收'>签收</a>", //签收
37 37
         "<a class='xg' onclick='refuse(data)' title='拒收'>拒收</a>", //拒收
38 38
         "<a class='xg' onclick='withdraw(data)' title='撤单'>撤单</a>" //撤单
39
-    ]
39
+    ],
40
+    kapArr :["<a class='xg' onclick='goDetail(data,data_id)' title='查看'>查看</a>",
41
+				"<a class='xg' onclick='goEdit(data,data_id)' title='编辑'>编辑</a>",
42
+				"<a class='xg' onclick='goDel(data)' title='删除'>删除</a>",
43
+				"<a class='xg' onclick='tj(data)' title='提交'>提交</a>",
44
+				"<a class='xg' onclick='audit(data)' title='审核'>审核</a>", 
45
+				"<a class='xg' onclick='solve(data)' title='解决'>解决</a>", 
46
+				"<a class='xg' onclick='noSolve(data)' title='未解决'>未解决</a>" 
47
+			]
40 48
 
41 49
 };

+ 25 - 1
WebUI/CallCenterWeb.UI/Script/Common/huayi.http.js

@@ -281,7 +281,31 @@ helper.pager = {
281 281
         document.getElementsByTagName('head')[0].appendChild(domScript);
282 282
     }
283 283
 };
284
-
284
+helper.getDropList = {
285
+    //根据id 获取 区县,主干道、乡镇,路社区村
286
+    getOrderAreas: function (obj) {
287
+        var dtd = $.Deferred(); //在函数内部,新建一个Deferred对象
288
+        obj.empty();
289
+        $.getJSON(huayi.config.callcenter_url + "Area/GetAreaListById", {
290
+            id: 0,
291
+            token: $.cookie("token"),
292
+        }, function (data) {
293
+            if (data.state.toLowerCase() == "success") {
294
+                var content = data.data;
295
+                if (content && content.length > 0) {
296
+                    obj.append('<option selected="selected" value="0">请选择区域</option>');
297
+                    $(content).each(function (i, n) {
298
+                        $("<option value='" + n.F_AreaId + "'>" + n.F_AreaName + "</option>").appendTo(obj);
299
+                    });
300
+                } else {
301
+                    obj.append('<option selected="selected" value="0">没有数据</option>');
302
+                }
303
+                dtd.resolve(); // 改变Deferred对象的执行状态
304
+            }
305
+        });
306
+        return dtd.promise(); // 返回promise对象
307
+    },
308
+}
285 309
 helper.masklayer = {
286 310
     layer: null,
287 311
     showcount: 0,

+ 429 - 0
WebUI/CallCenterWeb.UI/css/bootstrap-select.css

@@ -0,0 +1,429 @@
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
+}
282
+.bootstrap-select .dropdown-menu li small {
283
+  padding-left: 0.5em;
284
+}
285
+.bootstrap-select .dropdown-menu .notify {
286
+  position: absolute;
287
+  bottom: 5px;
288
+  width: 96%;
289
+  margin: 0 2%;
290
+  min-height: 26px;
291
+  padding: 3px 5px;
292
+  background: #f5f5f5;
293
+  border: 1px solid #e3e3e3;
294
+  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
295
+          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
296
+  pointer-events: none;
297
+  opacity: 0.9;
298
+  -webkit-box-sizing: border-box;
299
+     -moz-box-sizing: border-box;
300
+          box-sizing: border-box;
301
+}
302
+.bootstrap-select .no-results {
303
+  padding: 3px;
304
+  background: #f5f5f5;
305
+  margin: 0 5px;
306
+  white-space: nowrap;
307
+}
308
+.bootstrap-select.fit-width .dropdown-toggle .filter-option {
309
+  position: static;
310
+  display: inline;
311
+  padding: 0;
312
+  width: auto;
313
+}
314
+.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner,
315
+.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner-inner {
316
+  display: inline;
317
+}
318
+.bootstrap-select.fit-width .dropdown-toggle .bs-caret:before {
319
+  content: '\00a0';
320
+}
321
+.bootstrap-select.fit-width .dropdown-toggle .caret {
322
+  position: static;
323
+  top: auto;
324
+  margin-top: -1px;
325
+}
326
+.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {
327
+  position: absolute;
328
+  display: inline-block;
329
+  right: 15px;
330
+  top: 5px;
331
+}
332
+.bootstrap-select.show-tick .dropdown-menu li a span.text {
333
+  margin-right: 34px;
334
+}
335
+.bootstrap-select .bs-ok-default:after {
336
+  content: '';
337
+  display: block;
338
+  width: 0.5em;
339
+  height: 1em;
340
+  border-style: solid;
341
+  border-width: 0 0.26em 0.26em 0;
342
+  -webkit-transform: rotate(45deg);
343
+      -ms-transform: rotate(45deg);
344
+       -o-transform: rotate(45deg);
345
+          transform: rotate(45deg);
346
+}
347
+.bootstrap-select.show-menu-arrow.open > .dropdown-toggle,
348
+.bootstrap-select.show-menu-arrow.show > .dropdown-toggle {
349
+  z-index: 1061;
350
+}
351
+.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:before {
352
+  content: '';
353
+  border-left: 7px solid transparent;
354
+  border-right: 7px solid transparent;
355
+  border-bottom: 7px solid rgba(204, 204, 204, 0.2);
356
+  position: absolute;
357
+  bottom: -4px;
358
+  left: 9px;
359
+  display: none;
360
+}
361
+.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:after {
362
+  content: '';
363
+  border-left: 6px solid transparent;
364
+  border-right: 6px solid transparent;
365
+  border-bottom: 6px solid white;
366
+  position: absolute;
367
+  bottom: -4px;
368
+  left: 10px;
369
+  display: none;
370
+}
371
+.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:before {
372
+  bottom: auto;
373
+  top: -4px;
374
+  border-top: 7px solid rgba(204, 204, 204, 0.2);
375
+  border-bottom: 0;
376
+}
377
+.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:after {
378
+  bottom: auto;
379
+  top: -4px;
380
+  border-top: 6px solid white;
381
+  border-bottom: 0;
382
+}
383
+.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:before {
384
+  right: 12px;
385
+  left: auto;
386
+}
387
+.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:after {
388
+  right: 13px;
389
+  left: auto;
390
+}
391
+.bootstrap-select.show-menu-arrow.open > .dropdown-toggle .filter-option:before,
392
+.bootstrap-select.show-menu-arrow.show > .dropdown-toggle .filter-option:before,
393
+.bootstrap-select.show-menu-arrow.open > .dropdown-toggle .filter-option:after,
394
+.bootstrap-select.show-menu-arrow.show > .dropdown-toggle .filter-option:after {
395
+  display: block;
396
+}
397
+.bs-searchbox,
398
+.bs-actionsbox,
399
+.bs-donebutton {
400
+  padding: 4px 8px;
401
+}
402
+.bs-actionsbox {
403
+  width: 100%;
404
+  -webkit-box-sizing: border-box;
405
+     -moz-box-sizing: border-box;
406
+          box-sizing: border-box;
407
+}
408
+.bs-actionsbox .btn-group button {
409
+  width: 50%;
410
+}
411
+.bs-donebutton {
412
+  float: left;
413
+  width: 100%;
414
+  -webkit-box-sizing: border-box;
415
+     -moz-box-sizing: border-box;
416
+          box-sizing: border-box;
417
+}
418
+.bs-donebutton .btn-group button {
419
+  width: 100%;
420
+}
421
+.bs-searchbox + .bs-actionsbox {
422
+  padding: 0 8px 4px;
423
+}
424
+.bs-searchbox .form-control {
425
+  margin-bottom: 0;
426
+  width: 100%;
427
+  float: none;
428
+}
429
+/*# sourceMappingURL=bootstrap-select.css.map */

BIN
WebUI/CallCenterWeb.UI/img/IVR2.png


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 3061 - 0
WebUI/CallCenterWeb.UI/js/bootstrap-select.js


+ 211 - 0
WebUI/CallCenterWeb.UI/js/search/screen.js

@@ -0,0 +1,211 @@
1
+$(function() {
2
+	
3
+	ZX($("#ZX"));
4
+	LY($("#source"));
5
+    LB($("#type"));
6
+    ZT($("#keyid"));
7
+    yardman($("#yardman"));
8
+    helper.getDropList.getOrderAreas($('#sourceAreas'))
9
+    tree();
10
+    //所属分类下拉
11
+    $('.inps').focus(function () {
12
+        $('.xlAdd').css('display', 'block')
13
+    })
14
+    $('.xl').click(function () {
15
+        if ($('.xlAdd').css('display') == 'block') {
16
+            $('.xlAdd').css('display', 'none')
17
+        } else {
18
+            $('.xlAdd').css('display', 'block')
19
+        }
20
+    })
21
+    $('.addTree').mouseleave(function () {
22
+        $(this).css('display', 'none')
23
+    })
24
+    //清除
25
+    $(".Cleans ").click(function () {
26
+        $('.inps').val("");
27
+        $("#PID").val("");
28
+        $("#Dpment").val("");
29
+    })
30
+	
31
+	//键盘登录事件
32
+	$('input').bind('keypress', function(event) {
33
+		if(event.keyCode == "13") {
34
+			$('.Seach').trigger("click");
35
+		}
36
+	});
37
+	///搜素
38
+	$(".Seach").click(function() {
39
+		load();
40
+		
41
+	})
42
+	//导出
43
+	$('.Export').click(function() {
44
+		dcexcel(this);
45
+	})
46
+})
47
+///坐席
48
+	function ZX(obj) {
49
+		obj.empty();
50
+		$.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", {
51
+			"token": $.cookie("token"),
52
+		}, function(data) {
53
+			if(data.state.toLowerCase() == "success") {
54
+				var content = data.data;
55
+				$(content).each(function(i, n) {
56
+					$("<option value='" + n.F_UserCode + "'>" + n.F_UserName + "</option>").appendTo(obj);
57
+
58
+				})
59
+				obj.selectpicker({
60
+					noneSelectedText: '请选择' //默认显示内容
61
+				});
62
+				obj.selectpicker('refresh');
63
+
64
+			}
65
+		})
66
+	}
67
+	//调度员
68
+	function yardman(obj) {
69
+		obj.empty();
70
+		$.getJSON(huayi.config.callcenter_url + "UserAccount/GetUsersList", {
71
+			rolecode: "ZXLD",
72
+			"token": $.cookie("token"),
73
+		}, function(data) {
74
+			if(data.state.toLowerCase() == "success") {
75
+				var content = data.data;
76
+				$(content).each(function(i, n) {
77
+					$("<option value='" + n.F_UserCode + "'>" + n.F_UserName + "</option>").appendTo(obj);
78
+
79
+				})
80
+				obj.selectpicker({
81
+					noneSelectedText: '请选择' //默认显示内容
82
+				});
83
+				obj.selectpicker('refresh');
84
+
85
+			}
86
+		})
87
+	}
88
+	//审核
89
+	function audit(str) {
90
+		layer.confirm('确认通过审核吗?', {
91
+			btn: ['是', '否'] //按钮
92
+		}, function() {
93
+			$.post(huayi.config.callcenter_url + 'WorkOrder/AuditWorkOrder ', {
94
+				workorderid: str,
95
+				"token": $.cookie("token")
96
+			}, function(result) {
97
+				result = JSON.parse(result);
98
+				if(result.state.toLowerCase() == "success") {
99
+					layer.msg("操作成功");
100
+					load();
101
+				}
102
+			})
103
+		});
104
+	}
105
+	//转督办
106
+	function zdb(str) {
107
+		layer.confirm('确定督办吗?', {
108
+			btn: ['是', '否'] //按钮
109
+		}, function() {
110
+			$.post(huayi.config.callcenter_url + 'WorkOrder/RemindWorkOrder', {
111
+				workorderid: str,
112
+				type: 1,
113
+				state: 0,
114
+				"token": $.cookie("token")
115
+			}, function(result) {
116
+				result = JSON.parse(result);
117
+				if(result.state.toLowerCase() == "success") {
118
+					layer.msg("操作成功");
119
+					load();
120
+				}
121
+			})
122
+		});
123
+	}
124
+function dcexcel(obj) {
125
+	//坐席
126
+	var usercodeID = "";
127
+	var usercode_ = $("#ZX").val(); //坐席
128
+	if(usercode_ != null) {
129
+		$(usercode_).each(function(i, n) {
130
+			var obj1 = '';
131
+			obj1 = n + ",";
132
+			usercodeID += obj1;
133
+		})
134
+	} else {
135
+		usercodeID = ""
136
+	}
137
+	var sponsorID = "";
138
+	var sponsor = $("#sponsor").val(); //坐席
139
+	if(sponsor != null) {
140
+		sponsorID = $("#sponsor").val();
141
+	} else {
142
+		sponsorID = ""
143
+	}
144
+	//调度员
145
+	var ddusercodeID = "";
146
+	var ddusercode_ = $("#yardman").val(); //坐席
147
+	if(ddusercode_ != null) {
148
+		$(ddusercode_).each(function(i, n) {
149
+			var obj2 = '';
150
+			obj2 = n + ",";
151
+			ddusercodeID += obj2;
152
+		})
153
+	} else {
154
+		ddusercodeID = ""
155
+	}
156
+	var startTime;
157
+	var endTime;
158
+	if($('#starttime').val()) {
159
+		startTime = $('#starttime').val() && $('#starttime').val().split(' ~ ')[0];
160
+		endTime = $('#starttime').val() && $('#starttime').val().split(' ~ ')[1];
161
+	} else {
162
+		startTime = "";
163
+		endTime = "";
164
+	}
165
+	var url = huayi.config.callcenter_url + "WorkOrder/GetList?token=" + $.cookie("token") + "&isdc=1";
166
+	url += "&starttime=" + startTime +
167
+		"&endtime=" + endTime +
168
+		"&workid=" + $("#wids").val() + "&state=" + $("#state").val() +
169
+		"&type=" + $("#type").val() //+ "&bigtype=" + ("#bigtype").val()
170
+		+
171
+		"&key=" + $("#key").val() +
172
+		"&tel=" + $("#tel").val() +
173
+		"&name=" + $("#name").val() +
174
+		"&keyid=" + $("#keyid").val() +
175
+		"&source=" + $("#source").val() +
176
+		"&usercode=" + usercodeID +
177
+		"&ddusercode=" + ddusercodeID +
178
+		"&deptid=" + $("#Dpment").val() +
179
+		"&type=" + $("#type").val() +
180
+		"&dealtype=" + $("#dealtype").val() +
181
+		"&sourcearea=" + $('#sourceAreas').val() +
182
+		"&isdc=1";
183
+	window.location.href = url;
184
+	//obj.href = url;
185
+}
186
+function darptSearch() {
187
+	$('.xlAdd').css('display', 'none');
188
+	$(".selDpart1").css('display', 'block');
189
+	depart();
190
+}
191
+$("#sponsor").on('click', 'li', function() {
192
+	$(".selDpart1").css('display', 'none');
193
+	$(".inps").val($(this).html());
194
+	$("#Dpment").val($(this).attr("index"));
195
+	$(".Cleans").show();
196
+})
197
+///部门
198
+function depart() {
199
+	$("#sponsor").empty();
200
+	$.getJSON(huayi.config.callcenter_url + "Department/GetDeptListByDept", {
201
+		"token": $.cookie("token"),
202
+		dept: $('.inps').val(),
203
+	}, function(data) {
204
+		if(data.state.toLowerCase() == "success") {
205
+			var content = data.data;
206
+			$(content).each(function(i, n) {
207
+				$("<li index='" + n.F_DeptId + "'>" + n.F_DeptName + "</li>").appendTo("#sponsor");
208
+			})
209
+		}
210
+	})
211
+}

+ 712 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/askRecords.html

@@ -0,0 +1,712 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <title>索要记录</title>
7
+    <script src="../Script/Common/huayi.load.js"></script>
8
+    <link rel="stylesheet" href="../css/bootstrap-select.css">
9
+    <script src="../Script/Common/huayi.config.js"></script>
10
+    <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
11
+    <link rel="stylesheet" href="../css/init.css" />
12
+    <style>
13
+        #sqzx th {
14
+            padding: 5px 8px 5px 0;
15
+            text-align: right;
16
+            width: 50px;
17
+        }
18
+        .select {
19
+            width: 150px;
20
+            background-color: #FFF;
21
+            background-image: none;
22
+            border: 1px solid #ccc;
23
+            border-radius: 1px;
24
+            color: inherit;
25
+            padding: 6px 12px;
26
+        }
27
+        #sex {
28
+            background-color: #FFF;
29
+            background-image: none;
30
+            border: 1px solid #ccc;
31
+            border-radius: 1px;
32
+            color: inherit;
33
+            padding: 6px 12px;
34
+        }
35
+
36
+        input {
37
+            background-color: #FFF;
38
+            background-image: none;
39
+            border: 1px solid #ccc;
40
+            border-radius: 1px;
41
+            color: inherit;
42
+            padding: 6px 12px;
43
+        }
44
+
45
+        #sqzx td {
46
+            padding: 6px 0 5px 10px;
47
+            width: 150px;
48
+        }
49
+
50
+        .lxr ul li {
51
+            float: left;
52
+            list-style: none;
53
+            width: 30%;
54
+            margin-bottom: 5px;
55
+            padding-top: 10px;
56
+        }
57
+
58
+        .clearFix:after {
59
+            content: "";
60
+            display: block;
61
+            clear: both;
62
+        }
63
+
64
+        .form-group {
65
+            padding-left: 40px;
66
+            margin-bottom: 0;
67
+        }
68
+
69
+        textarea {
70
+            height: 70px;
71
+            border: 1px solid #ccc;
72
+            border-radius: 1px;
73
+            width: 50%;
74
+            resize: none;
75
+        }
76
+
77
+        .textarea_box {
78
+            margin-top: 10px;
79
+        }
80
+
81
+        .box_content {
82
+            border-bottom: 1px solid #ccc;
83
+        }
84
+
85
+        .tj_content {
86
+            border: 1px solid #e6e6e6;
87
+            border-radius: 5px;
88
+        }
89
+
90
+        .t-shade {
91
+            position: fixed;
92
+            top: 0;
93
+            left: 0;
94
+            width: 100%;
95
+            background: rgba(0, 0, 0, 0.48);
96
+            z-index: 10004;
97
+            display: none;
98
+        }
99
+
100
+        .lyxz .shade_k {
101
+            z-index: 10005;
102
+            width: 40%;
103
+            left: 30%;
104
+            position: absolute;
105
+            background-color: rgb(255, 255, 255);
106
+            box-shadow: rgba(0, 0, 0, 0.298039) 1px 1px 50px;
107
+            margin: 20% auto;
108
+            border-radius: 5px;
109
+        }
110
+
111
+        .shade_title {
112
+            padding: 0 80px 0 20px;
113
+            height: 42px;
114
+            line-height: 42px;
115
+            border-bottom: 1px solid #eee;
116
+            font-size: 16px;
117
+            color: #FFFFFF;
118
+            overflow: hidden;
119
+            background-color: #00a1cb;
120
+            border-radius: 2px 2px 0 0;
121
+            position: relative;
122
+            border-top-left-radius: 5px;
123
+            border-top-right-radius: 5px;
124
+        }
125
+
126
+        .cx {
127
+            display: block;
128
+        }
129
+
130
+        .setwin {
131
+            position: absolute;
132
+            right: 15px;
133
+            top: 5px;
134
+            font-size: 0;
135
+            line-height: initial;
136
+        }
137
+        .setwin a {
138
+            position: relative;
139
+            width: 16px;
140
+            height: 16px;
141
+            font-size: 20px;
142
+            color: #fff;
143
+        }
144
+
145
+        .xg i {
146
+            font-size: 16px;
147
+        }
148
+
149
+        .hidens {
150
+            display: none;
151
+        }
152
+
153
+        .inpBox {
154
+           border: 1px solid #cccccc;
155
+    		height: 31px;
156
+            width: 220px;
157
+            display: inline-block;
158
+            position: relative;
159
+            vertical-align: middle;
160
+            position: absolute;
161
+            left: 0px;
162
+            top: 8px;
163
+            z-index: 111;
164
+        }
165
+		.selDpart1{
166
+			position: absolute;
167
+            left: 0px;
168
+            top: 30px;
169
+            z-index: 11111;
170
+            width: 220px;
171
+            line-height: 30px;
172
+            background: #FFFFFF;
173
+            display: none;
174
+		}
175
+		#sponsor{
176
+			width: 218px;
177
+			border: 1px solid #00a1cb;
178
+			margin: 0;
179
+			padding: 0;
180
+			list-style: none;
181
+			max-height: 212px;
182
+			overflow-x: hidden;
183
+			overflow-y: scroll;
184
+		}
185
+		#sponsor li{
186
+			margin: 0;
187
+			padding-left: 10px;
188
+			width: 220px;
189
+			height: 30px;
190
+			line-height: 30px;
191
+			list-style: none;
192
+		}
193
+		#sponsor li:hover{
194
+			background: #00a1cb;
195
+		}
196
+        .addTree {
197
+            background: #fff;
198
+            position: absolute;
199
+            width: 100%;
200
+            border: 1px solid darkgrey;
201
+            right: 0;
202
+            top: 29px;
203
+            display: none;
204
+            z-index: 222;
205
+        }
206
+
207
+        .xl {
208
+            display: inline-block;
209
+            background: url(../../img/dropDown.png) no-repeat;
210
+            height: 100%;
211
+            background-position: center center;
212
+            width: 20px;
213
+            position: absolute;
214
+            right: 0;
215
+            top: 0px;
216
+            /* background-color: #f7bc8b; */
217
+            cursor: pointer;
218
+        }
219
+
220
+        .ztree li span {
221
+            border: none;
222
+            padding: 0;
223
+        }
224
+
225
+        .inps {
226
+            width: 217px;
227
+            height: 29px;
228
+            outline: none;
229
+            border: 0;
230
+            border-image-width: 0;
231
+            padding: 0;
232
+            padding-left: 3px;
233
+        }
234
+
235
+        .xl {
236
+            display: inline-block;
237
+            background: url(../img/dropDown.png) no-repeat;
238
+            height: 100%;
239
+            background-position: center center;
240
+            width: 20px;
241
+            position: absolute;
242
+            right: 0;
243
+            top: 0px;
244
+            /* background-color: #f7bc8b; */
245
+            cursor: pointer;
246
+        }
247
+
248
+        .Cleans {
249
+            display: inline-block;
250
+            width: 20px;
251
+            position: absolute;
252
+            right: 21px;
253
+            top: 8px;
254
+            display: none;
255
+        }
256
+
257
+        .Min-width {
258
+            width: 150px;
259
+        }
260
+        .btn-default{
261
+        	background: #FFFFFF;
262
+        	color: #000000;
263
+        }
264
+        .tool_downs{
265
+        	display: flex;
266
+        	justify-content: center;
267
+        }
268
+        .tool_downs span{
269
+        	display: block;
270
+        	width: 100%;
271
+        	height: 100%;
272
+        	text-align: center;
273
+        }
274
+        .tool_downs a{
275
+        	display: block;
276
+        	list-style: none;
277
+        	float: left;
278
+        	padding-left: 10px;
279
+        }
280
+        .operation_list{
281
+        	width: 270px;
282
+        }
283
+        ul{
284
+        	padding: 0;
285
+        }
286
+    </style>
287
+</head>
288
+
289
+<body class="gray-bg">
290
+    <div class="wrapper wrapper-content animated fadeInRight">
291
+        <div class="daoHang clearfix">
292
+            <div class="dhLeft">
293
+                <sapn>
294
+                    <i class="syIcon"></i>位置:
295
+                    <a href="javaScript:;" id="ReIndex">首页</a>&gt;
296
+                    <a href="javaScript:;">知识库</a>&gt;
297
+                    <a class="nowPosition">新版知识库索要记录</a>
298
+                </sapn>
299
+            </div>
300
+            <div class="dhRight">
301
+                <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
302
+            </div>
303
+        </div>
304
+        <div style="padding: 10px;" class="tj_content clearFix">
305
+            <div style="padding: 10px;" class="tj_content clearFix">
306
+                <div>
307
+                    <div class="box_content">
308
+                        <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
309
+                            <tr>
310
+                                <th>关键字:</th>
311
+                                <td>
312
+                                    <input type="text" placeholder="输入关键字" id="key" class="Min-width" />
313
+                                </td>
314
+                                <th>时间:</th>
315
+                                <td>
316
+                                    <input type="text" id="starttime" class="Min-width" placeholder="请选择时间" style="height: 32px;" />
317
+                                </td>
318
+                                <th>紧急程度:</th>
319
+                                <td>
320
+                                    <select class="select_" id="dealtype">
321
+                                        <option value="">请选择</option>
322
+                                        <option value="0">普通</option>
323
+                                        <option value="1">紧急</option>
324
+                                    </select>
325
+                                </td>
326
+                                <th>承办单位:</th>
327
+                                <td style="position: relative;">
328
+                                    <div class="inpBox">
329
+                                        <input type="text" class="inps" onkeyup="darptSearch()"/>
330
+                                        <i class="Cleans  fa fa-close"></i>
331
+                                        <i class="xl xl_one"></i>
332
+                                        <div class="addTree xlAdd">
333
+                                            <ul id="addTreeDemo" class="ztree"></ul>
334
+                                        </div>
335
+                                    </div>
336
+                                    <div class="selDpart1">
337
+                                    	<ul id="sponsor">
338
+										</ul>
339
+                                    </div>
340
+                                </td>
341
+                                <td style="padding-left: 30px;">
342
+                                    <botton class="btns Seach">搜索</botton>
343
+                                    <!--<botton class="btns Export">导出</botton>-->
344
+                                    <botton class="btns add_record">添加</botton>
345
+                                    <botton class="btns Remove">删除</botton>
346
+                                </td>
347
+                            </tr>
348
+                        </table>
349
+                    </div>
350
+                </div>
351
+                <div>
352
+                    <div style="width: 100%;padding: 10px;">
353
+                        <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
354
+                            <thead>
355
+                                <tr>
356
+                                	<th data-checkbox="true"></th>
357
+                                    <th data-field="F_Descript" data-formatter="GetCont" data-align="center">文本描述</th>
358
+                                    <th data-field="F_Level" data-align="center" data-formatter="States">级别</th>
359
+                                    <th data-field="F_DeptName" data-align="center">承办单位</th>
360
+                                    <th data-field="F_CreateTime"  data-align="center">添加时间</th>
361
+                                    <th data-field="F_CreateUserName" data-align="center">添加人</th>
362
+                                    <th data-field="F_SubmitUserName" data-align="center">提交人</th>
363
+                                    <th data-field="F_SubmitTime" data-align="center">提交时间</th>
364
+                                    <th data-field="F_LimitTime"  data-align="center">时限</th>
365
+                                    <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center" class="operation_list">操作</th>
366
+                                </tr>
367
+                            </thead>
368
+                            <tbody class="list"></tbody>
369
+                        </table>
370
+                    </div>
371
+                </div>
372
+            </div>
373
+        </div>
374
+        <input type="hidden" id="PID" />
375
+        <input type="hidden" id="Dpment" />
376
+    </div>
377
+    <script src="../js/bootstrap-select.js"></script>
378
+    <script src="../js/laydate/laydate.js"></script>
379
+    <script src="../My97DatePicker/WdatePicker.js"></script>
380
+    <script src="../js/zTree/jquery.ztree.core.js"></script>
381
+    <script src="../js/search/screen.js"></script>
382
+    <script>
383
+        $(document).ready(function () {
384
+        	load();
385
+        	var str = helper.request.queryString("str");
386
+            var wid = helper.request.queryString("wid");
387
+            if (wid) {
388
+                $('#tel').val(wid);
389
+                load();
390
+            }
391
+            laydate.render({
392
+			    elem: '#starttime' //指定元素
393
+			    ,range:'~'
394
+			});
395
+            load();
396
+        });
397
+        $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
398
+            $('.success').removeClass('success'); //去除之前选中的行的,选中样式
399
+            $(ele).addClass('success'); //添加当前选中的 success样式用于区别
400
+        });
401
+        //获取查询信息
402
+        function load() {
403
+            //先销毁表格
404
+            $('#orderlist').bootstrapTable('destroy');
405
+            //初始化表格,动态从服务器加载数据
406
+            $("#orderlist").bootstrapTable({
407
+                method: "get", //使用get请求到服务器获取数据
408
+                url: huayi.config.callcenter_url + "Repository/GetListDemands", //获取数据的Servlet地址
409
+                contentType: "application/x-www-form-urlencoded",
410
+                striped: true, //表格显示条纹
411
+                pagination: true, //启动分页
412
+                pageSize: 10, //每页显示的记录数
413
+                pageNumber: 1, //当前第几页
414
+                pageList: [10, 20, 50, 100], //记录数可选列表
415
+                search: false, //是否启用查询
416
+                showColumns: false, //显示下拉框勾选要显示的列
417
+                showRefresh: false, //显示刷新按钮
418
+                sidePagination: "server", //表示服务端请求
419
+                //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
420
+                //设置为limit可以获取limit, offset, search, sort, order
421
+                queryParamsType: "undefined",
422
+                queryParams: function queryParams(params) { //设置查询参数
423
+                	 //alert(params.pageNumber)
424
+                    var param = {
425
+                        page: params.pageNumber,
426
+                        pagesize: params.pageSize,
427
+                        stime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[0], //=开始时间
428
+                        etime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[1], //=结束时间
429
+                        deptid: $("#PID").val(),//承办单位id
430
+                        level: $("#dealtype").val(),//级别
431
+                        key:$('#key').val(),//关键字
432
+                        token: $.cookie("token")
433
+                    };
434
+                    return param;
435
+                },
436
+                onLoadSuccess: function (data) { //加载成功时执行
437
+                    //						layer.msg("加载成功");
438
+                    //console.log(data);
439
+                   
440
+                },
441
+                onLoadError: function () { //加载失败时执行
442
+                    //layer.msg("加载数据失败", { time: 1500, icon: 2 });
443
+                }
444
+            });
445
+        }
446
+        
447
+        //状态
448
+        function States(val, row) {
449
+            var html = '';
450
+            switch (val + '') {
451
+                case '0':
452
+                    html = '普通';
453
+                    break;
454
+                case '1':
455
+                    html = '紧急';
456
+                    break;
457
+            }
458
+            return html;
459
+        }
460
+        function GetCont(val) {
461
+            if (val) {
462
+                var str = '<div '
463
+                if (val.length > 30) {
464
+                    str = str + ' title="' + val + '" ';
465
+                    val = val.substr(0, 30) + "...";
466
+                }
467
+                return str + '>' + val + '</div>';
468
+            } else {
469
+                return '';
470
+            }
471
+        }
472
+        //格式化操作
473
+		function Dispose(val, row) {
474
+			if(row.F_RepositoryId&&row.F_RepositoryId!=0){
475
+				return '<div class="tool_downs">' +
476
+				'<a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="see_knowledge(' + row.F_RepositoryId +')" title="查看知识库">查看知识库</a>' +
477
+				'<a href="javascript:;" class="aBtn" style="margin-left:0px;" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="btn_details(\'' + row.F_DemandsId + '\')" title="详情">详情</a>' +
478
+				'</div>';
479
+			}else{
480
+				return '<div class="tool_downs">' +
481
+				'<a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="add_knowledge(' + row.F_DemandsId +','+row.F_Deptid+')" title="添加知识库">添加知识库</a>' +
482
+				'<a href="javascript:;" class="aBtn" style="margin-left:0px;" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="btn_details(\'' + row.F_DemandsId + '\')" title="详情">详情</a>' +
483
+				'<a href="javascript:;" class="aBtn" style="margin-left:0px;" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="btn_edit(\'' + row.F_DemandsId + '\')" title="编辑">编辑</a>' +
484
+				'<a href="javascript:;" class="aBtn hide_btn" style="margin-left:0px;" authorize="yes" id="HY_delete_' + row.F_DemandsId + '" onclick="btn_delete(' + row.F_DemandsId + ')" title="删除">删除</a>' +
485
+				'</div>';
486
+			}
487
+			
488
+		}
489
+		//查看知识库
490
+		function see_knowledge(ids){
491
+				//iframe窗
492
+			    layer.open({
493
+			      	type: 2,
494
+			      	title: '查看知识库详情',
495
+			      	area: ['70%', '60%'],
496
+			      	maxmin:true,
497
+			      	content: 'newRepositoryDetail.html?ids='+ ids
498
+			    });
499
+		}
500
+		//添加到知识库
501
+		 function add_knowledge(str,deptid) {
502
+            layer.open({
503
+                type: 2,
504
+                content: "newRepositoryAdd.html?wid=" + str +"&depId="+deptid, //iframe的url,no代表不显示滚动条
505
+                title: '新增知识库',
506
+                area: ['60%', '80%'], //宽高
507
+            });
508
+        }
509
+        //查看详情
510
+        function btn_details(str) {
511
+            layer.open({
512
+                type: 2,
513
+                scrollbar: false,
514
+                content: ["../CommonHtml/recordDatil.html?wid=" + str,'no'],//iframe的url,no代表不显示滚动条
515
+                title: '记录详情',
516
+                area: ['60%', '80%'], //宽高
517
+            });
518
+        }
519
+        //编辑
520
+        function btn_edit(str) {
521
+            layer.open({
522
+                type: 2,
523
+                scrollbar: false,
524
+                content: ["../CommonHtml/recordEdit.html?wid=" + str,'no'], //iframe的url,no代表不显示滚动条
525
+                title: '编辑记录',
526
+                area: ['60%', '80%'], //宽高
527
+            });
528
+        }
529
+        //删除
530
+        function btn_delete(str) {
531
+            layer.confirm('确定删除记录?', {
532
+                btn: ['是', '否'] //按钮
533
+            }, function () {
534
+                $.post(huayi.config.callcenter_url + "Repository/DelDemands", {
535
+                    ids: str,
536
+                    token: $.cookie("token")
537
+                }, function (result) {
538
+                    result = JSON.parse(result);
539
+                    if (result.state.toLowerCase() == "success") {
540
+                        layer.msg("删除成功");
541
+                        $("#orderlist").bootstrapTable('refresh');
542
+                    }
543
+                })
544
+            });
545
+        }
546
+    	//添加记录
547
+    	$('.add_record').on('click',function(){
548
+    		layer.open({
549
+                type: 2,
550
+                content: "../CommonHtml/addRecord.html" , //iframe的url,no代表不显示滚动条
551
+                title: '添加记录',
552
+                area: ['60%', '80%'], //宽高
553
+            });
554
+    	})
555
+        //上传文件
556
+        function upload() {
557
+            if (document.getElementById("upFile").files.length > 0) {
558
+                var formData = new FormData();
559
+                formData.append("upFile", document.getElementById("upFile").files[0]);
560
+                formData.append("token", $.cookie("token"));
561
+                $.ajax({
562
+                    url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
563
+                    type: "POST",
564
+                    data: formData,
565
+                    /**
566
+                     *必须false才会自动加上正确的Content-Type
567
+                     */
568
+                    contentType: false,
569
+                    /**
570
+                     * 必须false才会避开jQuery对 formdata 的默认处理
571
+                     * XMLHttpRequest会对 formdata 进行正确的处理
572
+                     */
573
+                    processData: false,
574
+                    success: function (result) {
575
+                        document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
576
+                        $("#upFile").change(function () {
577
+                            upload();
578
+                        });
579
+                        var r = $.parseJSON(result);
580
+                        if (r.state.toLowerCase() == "success") {
581
+                            $(".fjnr").text(r.data);
582
+                            $("#scfj").show();
583
+                        }
584
+                    }
585
+                });
586
+            } else {
587
+                layer.confirm('请上传文件!', {
588
+                    btn: ['确定']
589
+                });
590
+            }
591
+        }
592
+        //批量删除Remove
593
+			$(".Remove").click(function() {
594
+				var ids = $.map($('#orderlist').bootstrapTable('getSelections'),
595
+					function(row) {
596
+						return row.F_DemandsId;
597
+					});
598
+				/*判断长度*/
599
+				if(ids.length <= 0) {
600
+					layer.confirm('没有可删除的选项!', {
601
+						btn: ['确定'] //按钮
602
+					});
603
+					return;
604
+				}
605
+				layer.confirm('确定要删除吗?',{
606
+					btn:['确定','取消']
607
+				},function(){
608
+					$.post(huayi.config.callcenter_url + "Repository/DelDemands", {
609
+						ids: ids,
610
+						token: $.cookie("token")
611
+					}, function(result) {
612
+						result = JSON.parse(result);
613
+						if(result.state.toLowerCase() == "success") {
614
+							layer.msg("删除成功");
615
+							$("#orderlist").bootstrapTable('refresh');
616
+						}
617
+					})
618
+				})
619
+				
620
+			});
621
+        //来源
622
+        function LY(obj) {
623
+            obj.empty();
624
+            obj.append('<option selected="selected" value="">请选择</option>');
625
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
626
+                "token": $.cookie("token"),
627
+                id: 1
628
+            }, function (data) {
629
+                if (data.state.toLowerCase() == "success") {
630
+                    var content = data.data;
631
+                    $(content).each(function (i, n) {
632
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
633
+                    })
634
+                }
635
+            })
636
+        }
637
+        //类别
638
+        function LB(obj) {
639
+            obj.empty();
640
+            obj.append('<option selected="selected" value="">请选择</option>');
641
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
642
+                "token": $.cookie("token"),
643
+                id: 2
644
+            }, function (data) {
645
+                if (data.state.toLowerCase() == "success") {
646
+                    var content = data.data;
647
+                    $(content).each(function (i, n) {
648
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
649
+                    })
650
+                }
651
+            })
652
+        }
653
+        //		主题
654
+        function ZT(obj) {
655
+            obj.empty();
656
+            obj.append('<option selected="selected" value="">请选择</option>');
657
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
658
+                "token": $.cookie("token"),
659
+                id: 3
660
+            }, function (data) {
661
+                if (data.state.toLowerCase() == "success") {
662
+                    var content = data.data;
663
+                    $(content).each(function (i, n) {
664
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
665
+                    })
666
+                }
667
+            })
668
+        }
669
+        
670
+        function tree() {
671
+            $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
672
+                "token": $.cookie("token"),
673
+                //		"pid": pid
674
+            }, function (result) {
675
+                result = $.parseJSON(result);
676
+                $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
677
+            });
678
+        }
679
+        var setting1 = {
680
+            data: {
681
+                key: {
682
+                    name: "F_DeptName"
683
+                },
684
+                simpleData: {
685
+                    enable: true,
686
+                    idKey: "F_DeptId",
687
+                    pIdKey: "F_PartentId",
688
+                    rootPId: 0
689
+                }
690
+            },
691
+            callback: {
692
+                onClick: zTreeOnClick
693
+            }
694
+        };
695
+        function zTreeOnClick(event, treeId, treeNode) {
696
+            if (treeNode.level >= 2) {
697
+                $('.inps').val(treeNode.F_DeptName);
698
+                $("#PID").val(treeNode.F_DeptId);
699
+                $("#Dpment").val(treeNode.F_DeptId);
700
+                $(".Cleans").show();
701
+            }
702
+        };
703
+        function Close() {
704
+            $(".lyxz").removeClass("cx");
705
+            if ($('audio').length > 0) {
706
+                $('audio')[0].pause();
707
+            }
708
+        }
709
+    </script>
710
+</body>
711
+
712
+</html>

+ 704 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/askRecords1.html

@@ -0,0 +1,704 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <title>索要记录</title>
7
+    <script src="../Script/Common/huayi.load.js"></script>
8
+    <link rel="stylesheet" href="../css/bootstrap-select.css">
9
+    <script src="../Script/Common/huayi.config.js"></script>
10
+    <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
11
+    <link rel="stylesheet" href="../css/init.css" />
12
+    <style>
13
+        #sqzx th {
14
+            padding: 5px 8px 5px 0;
15
+            text-align: right;
16
+            width: 50px;
17
+        }
18
+        .select {
19
+            width: 150px;
20
+            background-color: #FFF;
21
+            background-image: none;
22
+            border: 1px solid #ccc;
23
+            border-radius: 1px;
24
+            color: inherit;
25
+            padding: 6px 12px;
26
+        }
27
+        #sex {
28
+            background-color: #FFF;
29
+            background-image: none;
30
+            border: 1px solid #ccc;
31
+            border-radius: 1px;
32
+            color: inherit;
33
+            padding: 6px 12px;
34
+        }
35
+
36
+        input {
37
+            background-color: #FFF;
38
+            background-image: none;
39
+            border: 1px solid #ccc;
40
+            border-radius: 1px;
41
+            color: inherit;
42
+            padding: 6px 12px;
43
+        }
44
+
45
+        #sqzx td {
46
+            padding: 6px 0 5px 10px;
47
+            width: 150px;
48
+        }
49
+
50
+        .lxr ul li {
51
+            float: left;
52
+            list-style: none;
53
+            width: 30%;
54
+            margin-bottom: 5px;
55
+            padding-top: 10px;
56
+        }
57
+
58
+        .clearFix:after {
59
+            content: "";
60
+            display: block;
61
+            clear: both;
62
+        }
63
+
64
+        .form-group {
65
+            padding-left: 40px;
66
+            margin-bottom: 0;
67
+        }
68
+
69
+        textarea {
70
+            height: 70px;
71
+            border: 1px solid #ccc;
72
+            border-radius: 1px;
73
+            width: 50%;
74
+            resize: none;
75
+        }
76
+
77
+        .textarea_box {
78
+            margin-top: 10px;
79
+        }
80
+
81
+        .box_content {
82
+            border-bottom: 1px solid #ccc;
83
+        }
84
+
85
+        .tj_content {
86
+            border: 1px solid #e6e6e6;
87
+            border-radius: 5px;
88
+        }
89
+
90
+        .t-shade {
91
+            position: fixed;
92
+            top: 0;
93
+            left: 0;
94
+            width: 100%;
95
+            background: rgba(0, 0, 0, 0.48);
96
+            z-index: 10004;
97
+            display: none;
98
+        }
99
+
100
+        .lyxz .shade_k {
101
+            z-index: 10005;
102
+            width: 40%;
103
+            left: 30%;
104
+            position: absolute;
105
+            background-color: rgb(255, 255, 255);
106
+            box-shadow: rgba(0, 0, 0, 0.298039) 1px 1px 50px;
107
+            margin: 20% auto;
108
+            border-radius: 5px;
109
+        }
110
+
111
+        .shade_title {
112
+            padding: 0 80px 0 20px;
113
+            height: 42px;
114
+            line-height: 42px;
115
+            border-bottom: 1px solid #eee;
116
+            font-size: 16px;
117
+            color: #FFFFFF;
118
+            overflow: hidden;
119
+            background-color: #00a1cb;
120
+            border-radius: 2px 2px 0 0;
121
+            position: relative;
122
+            border-top-left-radius: 5px;
123
+            border-top-right-radius: 5px;
124
+        }
125
+
126
+        .cx {
127
+            display: block;
128
+        }
129
+
130
+        .setwin {
131
+            position: absolute;
132
+            right: 15px;
133
+            top: 5px;
134
+            font-size: 0;
135
+            line-height: initial;
136
+        }
137
+        .setwin a {
138
+            position: relative;
139
+            width: 16px;
140
+            height: 16px;
141
+            font-size: 20px;
142
+            color: #fff;
143
+        }
144
+
145
+        .xg i {
146
+            font-size: 16px;
147
+        }
148
+
149
+        .hidens {
150
+            display: none;
151
+        }
152
+
153
+        .inpBox {
154
+           border: 1px solid #cccccc;
155
+    		height: 31px;
156
+            width: 220px;
157
+            display: inline-block;
158
+            position: relative;
159
+            vertical-align: middle;
160
+            position: absolute;
161
+            left: 0px;
162
+            top: 8px;
163
+            z-index: 111;
164
+        }
165
+		.selDpart1{
166
+			position: absolute;
167
+            left: 0px;
168
+            top: 30px;
169
+            z-index: 11111;
170
+            width: 220px;
171
+            line-height: 30px;
172
+            background: #FFFFFF;
173
+            display: none;
174
+		}
175
+		#sponsor{
176
+			width: 218px;
177
+			border: 1px solid #00a1cb;
178
+			margin: 0;
179
+			padding: 0;
180
+			list-style: none;
181
+			max-height: 212px;
182
+			overflow-x: hidden;
183
+			overflow-y: scroll;
184
+		}
185
+		#sponsor li{
186
+			margin: 0;
187
+			padding-left: 10px;
188
+			width: 220px;
189
+			height: 30px;
190
+			line-height: 30px;
191
+			list-style: none;
192
+		}
193
+		#sponsor li:hover{
194
+			background: #00a1cb;
195
+		}
196
+        .addTree {
197
+            background: #fff;
198
+            position: absolute;
199
+            width: 100%;
200
+            border: 1px solid darkgrey;
201
+            right: 0;
202
+            top: 29px;
203
+            display: none;
204
+            z-index: 222;
205
+        }
206
+
207
+        .xl {
208
+            display: inline-block;
209
+            background: url(../../img/dropDown.png) no-repeat;
210
+            height: 100%;
211
+            background-position: center center;
212
+            width: 20px;
213
+            position: absolute;
214
+            right: 0;
215
+            top: 0px;
216
+            /* background-color: #f7bc8b; */
217
+            cursor: pointer;
218
+        }
219
+
220
+        .ztree li span {
221
+            border: none;
222
+            padding: 0;
223
+        }
224
+
225
+        .inps {
226
+            width: 217px;
227
+            height: 29px;
228
+            outline: none;
229
+            border: 0;
230
+            border-image-width: 0;
231
+            padding: 0;
232
+            padding-left: 3px;
233
+        }
234
+
235
+        .xl {
236
+            display: inline-block;
237
+            background: url(../img/dropDown.png) no-repeat;
238
+            height: 100%;
239
+            background-position: center center;
240
+            width: 20px;
241
+            position: absolute;
242
+            right: 0;
243
+            top: 0px;
244
+            /* background-color: #f7bc8b; */
245
+            cursor: pointer;
246
+        }
247
+
248
+        .Cleans {
249
+            display: inline-block;
250
+            width: 20px;
251
+            position: absolute;
252
+            right: 21px;
253
+            top: 8px;
254
+            display: none;
255
+        }
256
+
257
+        .Min-width {
258
+            width: 150px;
259
+        }
260
+        .btn-default{
261
+        	background: #FFFFFF;
262
+        	color: #000000;
263
+        }
264
+        .tool_downs{
265
+        	display: flex;
266
+        	justify-content: center;
267
+        }
268
+        .tool_downs a{
269
+        	list-style: none;
270
+        	float: left;
271
+        	padding-left: 10px;
272
+        }
273
+        .operation_list{
274
+            width: 270px;
275
+        }
276
+        ul{
277
+            padding: 0;
278
+        }
279
+
280
+    </style>
281
+</head>
282
+
283
+<body class="gray-bg">
284
+    <div class="wrapper wrapper-content animated fadeInRight">
285
+        <div class="daoHang clearfix">
286
+            <div class="dhLeft">
287
+                <sapn>
288
+                    <i class="syIcon"></i>位置:
289
+                    <a href="javaScript:;" id="ReIndex">首页</a>&gt;
290
+                    <a href="javaScript:;">知识库</a>&gt;
291
+                    <a class="nowPosition">新版知识库索要记录</a>
292
+                </sapn>
293
+            </div>
294
+            <div class="dhRight">
295
+                <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
296
+            </div>
297
+        </div>
298
+        <div style="padding: 10px;" class="tj_content clearFix">
299
+            <div style="padding: 10px;" class="tj_content clearFix">
300
+                <div>
301
+                    <div class="box_content">
302
+                        <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
303
+                            <tr>
304
+                                <th>关键字:</th>
305
+                                <td>
306
+                                    <input type="text" placeholder="输入关键字" id="key" class="Min-width" />
307
+                                </td>
308
+                                <th>时间:</th>
309
+                                <td >
310
+                                    <input type="text" id="starttime" class="" placeholder="请选择时间" style="height: 32px;" />
311
+                                </td>
312
+                                <th>紧急程度:</th>
313
+                                <td>
314
+                                    <select class="select_" id="dealtype">
315
+                                        <option value="">请选择</option>
316
+                                        <option value="0">普通</option>
317
+                                        <option value="1">紧急</option>
318
+                                    </select>
319
+                                </td>
320
+                                <th>承办单位:</th>
321
+                                <td style="position: relative;">
322
+                                    <div class="inpBox">
323
+                                        <input type="text" class="inps" onkeyup="darptSearch()"/>
324
+                                        <i class="Cleans  fa fa-close"></i>
325
+                                        <i class="xl xl_one"></i>
326
+                                        <div class="addTree xlAdd">
327
+                                            <ul id="addTreeDemo" class="ztree"></ul>
328
+                                        </div>
329
+                                    </div>
330
+                                    <div class="selDpart1">
331
+                                    	<ul id="sponsor">
332
+										</ul>
333
+                                    </div>
334
+                                </td>
335
+                                <td style="padding-left: 30px;">
336
+                                    <botton class="btns Seach">搜索</botton>
337
+                                    <!--<botton class="btns Export">导出</botton>-->
338
+                                    <!--<botton class="btns add_record">添加</botton>-->
339
+                                    <!--<botton class="btns Remove">删除</botton>-->
340
+                                </td>
341
+                            </tr>
342
+                        </table>
343
+                    </div>
344
+                </div>
345
+                <div>
346
+                    <div style="width: 100%;padding: 10px;">
347
+                        <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
348
+                            <thead>
349
+                                <tr>
350
+                                	<!--<th data-checkbox="true"></th>-->
351
+                                    <th data-field="F_Descript" data-formatter="GetCont" data-align="center">文本描述</th>
352
+                                    <th data-field="F_Level" data-align="center" data-formatter="States">级别</th>
353
+                                    <th data-field="F_DeptName" data-align="center">承办单位</th>
354
+                                    <th data-field="F_CreateTime"  data-align="center">添加时间</th>
355
+                                    <th data-field="F_CreateUserName" data-align="center">添加人</th>
356
+                                    <th data-field="F_SubmitUserName" data-align="center">提交人</th>
357
+                                    <th data-field="F_SubmitTime" data-align="center">提交时间</th>
358
+                                    <th data-field="F_LimitTime"  data-align="center">时限</th>
359
+                                    <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center" class="operation_list">操作</th>
360
+                                </tr>
361
+                            </thead>
362
+                            <tbody class="list"></tbody>
363
+                        </table>
364
+                    </div>
365
+                </div>
366
+            </div>
367
+        </div>
368
+        <input type="hidden" id="PID" />
369
+        <input type="hidden" id="Dpment" />
370
+    </div>
371
+    <script src="../js/bootstrap-select.js"></script>
372
+    <script src="../js/laydate/laydate.js"></script>
373
+    <script src="../My97DatePicker/WdatePicker.js"></script>
374
+    <script src="../js/zTree/jquery.ztree.core.js"></script>
375
+    <script src="../js/search/screen.js"></script>
376
+    <script>
377
+        $(document).ready(function () {
378
+        	load();
379
+        	var str = helper.request.queryString("str");
380
+            var wid = helper.request.queryString("wid");
381
+            if (wid) {
382
+                $('#tel').val(wid);
383
+                load();
384
+            }
385
+            laydate.render({
386
+			    elem: '#starttime' //指定元素
387
+			    ,range:'~'
388
+			});
389
+            load();
390
+        });
391
+        $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
392
+            $('.success').removeClass('success'); //去除之前选中的行的,选中样式
393
+            $(ele).addClass('success'); //添加当前选中的 success样式用于区别
394
+        });
395
+        //获取查询信息
396
+        function load() {
397
+            //先销毁表格
398
+            $('#orderlist').bootstrapTable('destroy');
399
+            //初始化表格,动态从服务器加载数据
400
+            $("#orderlist").bootstrapTable({
401
+                method: "get", //使用get请求到服务器获取数据
402
+                url: huayi.config.callcenter_url + "Repository/GetListDemands", //获取数据的Servlet地址
403
+                contentType: "application/x-www-form-urlencoded",
404
+                striped: true, //表格显示条纹
405
+                pagination: true, //启动分页
406
+                pageSize: 10, //每页显示的记录数
407
+                pageNumber: 1, //当前第几页
408
+                pageList: [10, 20, 50, 100], //记录数可选列表
409
+                search: false, //是否启用查询
410
+                showColumns: false, //显示下拉框勾选要显示的列
411
+                showRefresh: false, //显示刷新按钮
412
+                sidePagination: "server", //表示服务端请求
413
+                //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
414
+                //设置为limit可以获取limit, offset, search, sort, order
415
+                queryParamsType: "undefined",
416
+                queryParams: function queryParams(params) { //设置查询参数
417
+                	 //alert(params.pageNumber)
418
+                    var param = {
419
+                        page: params.pageNumber,
420
+                        pagesize: params.pageSize,
421
+                        stime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[0], //=开始时间
422
+                        etime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[1], //=结束时间
423
+                        deptid: $("#PID").val(),//承办单位id
424
+                        level: $("#dealtype").val(),//级别
425
+                        key:$('#key').val(),
426
+                        token: $.cookie("token")
427
+                    };
428
+                    return param;
429
+                },
430
+                onLoadSuccess: function (data) { //加载成功时执行
431
+                    //						layer.msg("加载成功");
432
+                    //console.log(data);
433
+                   
434
+                },
435
+                onLoadError: function () { //加载失败时执行
436
+                    //layer.msg("加载数据失败", { time: 1500, icon: 2 });
437
+                }
438
+            });
439
+        }
440
+        
441
+        //状态
442
+        function States(val, row) {
443
+            var html = '';
444
+            switch (val + '') {
445
+                case '0':
446
+                    html = '普通';
447
+                    break;
448
+                case '1':
449
+                    html = '紧急';
450
+                    break;
451
+            }
452
+            return html;
453
+        }
454
+        function GetCont(val) {
455
+            if (val) {
456
+                var str = '<div '
457
+                if (val.length > 30) {
458
+                    str = str + ' title="' + val + '" ';
459
+                    val = val.substr(0, 30) + "...";
460
+                }
461
+                return str + '>' + val + '</div>';
462
+            } else {
463
+                return '';
464
+            }
465
+        }
466
+        //格式化操作
467
+		function Dispose(val, row) {
468
+			if(row.F_RepositoryId&&row.F_RepositoryId!=0){
469
+				return '<div class="tool_downs">' +
470
+				'<a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="see_knowledge(' + row.F_RepositoryId +')" title="查看知识库">查看知识库</a>' +
471
+//				'<li><a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="add_knowledge(' + row.F_DemandsId +','+row.F_Deptid+')" title="添加知识库">添加知识库</a></li>' +
472
+				'<a href="javascript:;" class="aBtn" style="margin-left:0px;" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="btn_details(\'' + row.F_DemandsId + '\')" title="详情">详情</a>' +
473
+				'</div>';
474
+			}else{
475
+				return '<div class="tool_downs">' +
476
+//				'<li><a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="see_knowledge(' + row.F_RepositoryId +')" title="查看知识库">查看知识库</a></li>' +
477
+				'<a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="add_knowledge(' + row.F_DemandsId +','+row.F_Deptid+')" title="添加知识库">添加知识库</a>' +
478
+				'<a href="javascript:;" class="aBtn" style="margin-left:0px;" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="btn_details(\'' + row.F_DemandsId + '\')" title="详情">详情</a>' +
479
+				'</div>';
480
+			}
481
+			
482
+		}
483
+		//查看知识库
484
+		function see_knowledge(ids){
485
+				//iframe窗
486
+			    layer.open({
487
+			      	type: 2,
488
+			      	title: '查看知识库详情',
489
+			      	area: ['70%', '60%'],
490
+			      	maxmin:true,
491
+			      	content: 'newRepositoryDetail.html?ids='+ ids
492
+			    });
493
+		}
494
+		//添加到知识库
495
+		 function add_knowledge(str,deptid) {
496
+            layer.open({
497
+                type: 2,
498
+                content: "newRepositoryAdd.html?wid=" + str +"&depId="+deptid, //iframe的url,no代表不显示滚动条
499
+                title: '新增知识库',
500
+                area: ['60%', '80%'], //宽高
501
+            });
502
+        }
503
+        //查看详情
504
+        function btn_details(str) {
505
+            layer.open({
506
+                type: 2,
507
+                content: "../CommonHtml/recordDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
508
+                title: '记录详情',
509
+                area: ['60%', '80%'], //宽高
510
+            });
511
+        }
512
+        //编辑
513
+        function btn_edit(str) {
514
+            layer.open({
515
+                type: 2,
516
+                content: ["../CommonHtml/recordEdit.html?wid=" + str,'no'], //iframe的url,no代表不显示滚动条
517
+                title: '编辑记录',
518
+                area: ['60%', '90%'], //宽高
519
+            });
520
+        }
521
+        //删除
522
+        function btn_delete(str) {
523
+            layer.confirm('确定删除记录?', {
524
+                btn: ['是', '否'] //按钮
525
+            }, function () {
526
+                $.post(huayi.config.callcenter_url + "Repository/DelDemands", {
527
+                    ids: str,
528
+                    token: $.cookie("token")
529
+                }, function (result) {
530
+                    result = JSON.parse(result);
531
+                    if (result.state.toLowerCase() == "success") {
532
+                        layer.msg("删除成功");
533
+                        $("#orderlist").bootstrapTable('refresh');
534
+                    }
535
+                })
536
+            });
537
+        }
538
+    	//添加记录
539
+    	$('.add_record').on('click',function(){
540
+    		layer.open({
541
+                type: 2,
542
+                content: "../CommonHtml/addRecord.html" , //iframe的url,no代表不显示滚动条
543
+                title: '添加记录',
544
+                area: ['60%', '80%'], //宽高
545
+            });
546
+    	})
547
+        //上传文件
548
+        function upload() {
549
+            if (document.getElementById("upFile").files.length > 0) {
550
+                var formData = new FormData();
551
+                formData.append("upFile", document.getElementById("upFile").files[0]);
552
+                formData.append("token", $.cookie("token"));
553
+                $.ajax({
554
+                    url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
555
+                    type: "POST",
556
+                    data: formData,
557
+                    /**
558
+                     *必须false才会自动加上正确的Content-Type
559
+                     */
560
+                    contentType: false,
561
+                    /**
562
+                     * 必须false才会避开jQuery对 formdata 的默认处理
563
+                     * XMLHttpRequest会对 formdata 进行正确的处理
564
+                     */
565
+                    processData: false,
566
+                    success: function (result) {
567
+                        document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
568
+                        $("#upFile").change(function () {
569
+                            upload();
570
+                        });
571
+                        var r = $.parseJSON(result);
572
+                        if (r.state.toLowerCase() == "success") {
573
+                            $(".fjnr").text(r.data);
574
+                            $("#scfj").show();
575
+                        }
576
+                    }
577
+                });
578
+            } else {
579
+                layer.confirm('请上传文件!', {
580
+                    btn: ['确定']
581
+                });
582
+            }
583
+        }
584
+        //批量删除Remove
585
+			$(".Remove").click(function() {
586
+				var ids = $.map($('#orderlist').bootstrapTable('getSelections'),
587
+					function(row) {
588
+						return row.F_DemandsId;
589
+					});
590
+				/*判断长度*/
591
+				if(ids.length <= 0) {
592
+					layer.confirm('没有可删除的选项!', {
593
+						btn: ['确定'] //按钮
594
+					});
595
+					return;
596
+				}
597
+				layer.confirm('确定要删除吗?',{
598
+					btn:['确定','取消']
599
+				},function(){
600
+					$.post(huayi.config.callcenter_url + "Repository/DelDemands", {
601
+						ids: ids,
602
+						token: $.cookie("token")
603
+					}, function(result) {
604
+						result = JSON.parse(result);
605
+						if(result.state.toLowerCase() == "success") {
606
+							layer.msg("删除成功");
607
+							$("#orderlist").bootstrapTable('refresh');
608
+						}
609
+					})
610
+				})
611
+				
612
+			});
613
+        //来源
614
+        function LY(obj) {
615
+            obj.empty();
616
+            obj.append('<option selected="selected" value="">请选择</option>');
617
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
618
+                "token": $.cookie("token"),
619
+                id: 1
620
+            }, function (data) {
621
+                if (data.state.toLowerCase() == "success") {
622
+                    var content = data.data;
623
+                    $(content).each(function (i, n) {
624
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
625
+                    })
626
+                }
627
+            })
628
+        }
629
+        //类别
630
+        function LB(obj) {
631
+            obj.empty();
632
+            obj.append('<option selected="selected" value="">请选择</option>');
633
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
634
+                "token": $.cookie("token"),
635
+                id: 2
636
+            }, function (data) {
637
+                if (data.state.toLowerCase() == "success") {
638
+                    var content = data.data;
639
+                    $(content).each(function (i, n) {
640
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
641
+                    })
642
+                }
643
+            })
644
+        }
645
+        //		主题
646
+        function ZT(obj) {
647
+            obj.empty();
648
+            obj.append('<option selected="selected" value="">请选择</option>');
649
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
650
+                "token": $.cookie("token"),
651
+                id: 3
652
+            }, function (data) {
653
+                if (data.state.toLowerCase() == "success") {
654
+                    var content = data.data;
655
+                    $(content).each(function (i, n) {
656
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
657
+                    })
658
+                }
659
+            })
660
+        }
661
+        
662
+        function tree() {
663
+            $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
664
+                "token": $.cookie("token"),
665
+                //		"pid": pid
666
+            }, function (result) {
667
+                result = $.parseJSON(result);
668
+                $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
669
+            });
670
+        }
671
+        var setting1 = {
672
+            data: {
673
+                key: {
674
+                    name: "F_DeptName"
675
+                },
676
+                simpleData: {
677
+                    enable: true,
678
+                    idKey: "F_DeptId",
679
+                    pIdKey: "F_PartentId",
680
+                    rootPId: 0
681
+                }
682
+            },
683
+            callback: {
684
+                onClick: zTreeOnClick
685
+            }
686
+        };
687
+        function zTreeOnClick(event, treeId, treeNode) {
688
+            if (treeNode.level >= 2) {
689
+                $('.inps').val(treeNode.F_DeptName);
690
+                $("#PID").val(treeNode.F_DeptId);
691
+                $("#Dpment").val(treeNode.F_DeptId);
692
+                $(".Cleans").show();
693
+            }
694
+        };
695
+        function Close() {
696
+            $(".lyxz").removeClass("cx");
697
+            if ($('audio').length > 0) {
698
+                $('audio')[0].pause();
699
+            }
700
+        }
701
+    </script>
702
+</body>
703
+
704
+</html>

+ 1 - 1
WebUI/CallCenterWeb.UI/zhiShiKu/css/newRepository.css

@@ -78,7 +78,7 @@
78 78
 	.line:before {
79 79
 		content: "";
80 80
 		height: 3px;
81
-		background: #19aad0;
81
+		/*background: #19aad0;*/
82 82
 		position: absolute;
83 83
 		width: 150px;
84 84
 		left: 0;

+ 394 - 212
WebUI/CallCenterWeb.UI/zhiShiKu/js/newRepository.js

@@ -1,215 +1,397 @@
1
-    
2
-var token = $.cookie("token");
3
-var table = $('#table1');
4
-$('#depID').val(0);
5
-$(document).ready(function () {
6
-    //      		$('#firstOne').trigger("click");
7
-    //右侧搜索事件
8
-    initTable($('#depID').val());
9
-    $('#rightSearch').click(function () {
10
-        initTable($('#depID').val());
11
-    })
12
-
13
-    if ($('.allAdd').hasClass('active')) {
14
-        $('.addTo').hide();
15
-    } else {
16
-        $('.addTo').show();
17
-    }
18
-
19
-    //右侧关键字鼠标移入效果
20
-    $('.keyList li').hover(function () {
21
-        $('.keyList li').removeClass('active')
22
-        $(this).addClass('active');
23
-
24
-    }, function () {
25
-        $(this).removeClass('active');
26
-    })
27
-    $('.addTo').click(function () {
28
-        var depid = $('#depID').val();
29
-        goAdd(depid);
30
-    })
31
-
32
-    var headhtml = '<div class="swiper-slide swiper-no-swiping"><ul class="unitList clearfix" >';
33
-    var foothtml = '</ul ></div >';
34
-    var lbhtml = headhtml + '      <li data-id="0" class="active allAdd">'
35
-        + '             <a href="javaScript:;" title="全部">'
36
-        + '                <i class="cityGovernment"></i>'
37
-        + '                <div>全部</div>'
38
-        + '             </a>'
39
-        + '          </li>';
40
-    $.getJSON(huayi.config.callcenter_url + "Department/GetDealDeptList", {
41
-        "token": $.cookie("token")
42
-    }, function (data) {
43
-        if (data.state == "success") {
44
-            $(data.data).each(function (i, n) {
45
-                lbhtml += '      <li data-id="' + n.F_DeptId + '" >'
46
-                    + '             <a href="javaScript:;" title="' + n.F_DeptName + '">'
47
-                    + '                <i class="cityGovernment"></i>'
48
-                    + '                <div>' + n.F_DeptName + '</div>'
49
-                    + '             </a>'
50
-                    + '          </li>';
51
-                if (i + 1 != data.data.length) {
52
-                    if ((i + 2) % 18 == 0) {
53
-                        lbhtml += foothtml + headhtml;
54
-                    }
55
-                }
56
-                else {
57
-                    lbhtml += foothtml;
58
-                }
59
-            })
60
-            $(lbhtml).appendTo($(".swiper-container"));
61
-            var mySwiper = new Swiper('.swiper-container', {
62
-                //					    direction: 'vertical',
63
-                //					    loop: true,
64
-
65
-                // 如果需要分页器
66
-                pagination: {
67
-                    el: '.swiper-pagination',
68
-                    clickable: true,
69
-                }
70
-            })
71
-
72
-            $('.unitList li').click(function () {
73
-                $('.unitList li').removeClass('active')
74
-                $(this).addClass('active');
75
-                if ($('.allAdd').hasClass('active')) {
76
-                    $('.addTo').hide();
77
-                } else {
78
-                    $('.addTo').show();
79
-                }
80
-                var depId = $(this).attr('data-id');
81
-                var keyWord = $(this).find('div').html();
82
-                $('.rightTabKey').html(keyWord);
83
-                $('#depID').val(depId);
84
-                initTable(depId);
85
-            })
86
-
87
-            //左侧单位鼠标移入效果
88
-            $('.unitList li').hover(function () {
89
-                $(this).addClass('acs');
90
-
91
-            }, function () {
92
-                $(this).removeClass('acs');
93
-            })
94
-        }
95
-    })
96
-})
97
-function goAdd(ids) {
98
-    //iframe窗
99
-    layer.open({
100
-        type: 2,
101
-        title: '新增知识库',
102
-        area: ['70%', '60%'],
103
-        content: 'newRepositoryAdd.html?depId=' + ids + ''
104
-    });
105
-}
106
-function initTable(ids) {
107
-    //先销毁表格
108
-    table.bootstrapTable('destroy');
109
-    //初始化表格,动态从服务器加载数据
110
-    table.bootstrapTable({
111
-        method: "get", //使用get请求到服务器获取数据
112
-        url: huayi.config.callcenter_url + "Repository/GetList", //获取数据的Servlet地址
113
-        contentType: "application/x-www-form-urlencoded", striped: true,
114
-        striped: true, //表格显示条纹
115
-        pagination: true, //启动分页
116
-        pageSize: 10, //每页显示的记录数
117
-        pageNumber: 1, //当前第几页
118
-        pageList: [10, 15, 25], //记录数可选列表
119
-        search: false, //是否启用查询
120
-        showColumns: false, //显示下拉框勾选要显示的列
121
-        showRefresh: false, //显示刷新按钮
122
-        sidePagination: "server", //表示服务端请求
123
-        //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
124
-        //设置为limit可以获取limit, offset, search, sort, order
125
-        queryParamsType: "undefined",
126
-        queryParams: function queryParams(params) { //设置查询参数
127
-            var param = {
128
-                page: params.pageNumber,
129
-                pagesize: params.pageSize,
130
-                token: token,
131
-                deptid: ids,
132
-                key: $('.rightSearchKey').val(),
133
-                //								starttime:	否	string	开始时间 (2017-01-09)
134
-                //								endtime:
135
-            };
136
-            return param;
137
-        },
138
-        onLoadSuccess: function () { //加载成功时执行
139
-            //layer.msg("加载成功");
140
-        },
141
-        onLoadError: function () { //加载失败时执行
142
-            //layer.msg("加载数据失败", { time: 1500, icon: 2 });
143
-        }
144
-    });
145
-}
1
+ var mySwiper = new Swiper ('.swiper-container', {
2
+//					    direction: 'vertical',
3
+//					    loop: true,
4
+					    // 如果需要分页器
5
+					    pagination: {
6
+					      el: '.swiper-pagination',
7
+					       clickable: true,
8
+					    },
9
+					  })        
10
+			var token = $.cookie("token");
11
+        	var table = $('#table1');
12
+        	 $('#depID').val(0);
13
+        	$(document).ready(function(){
14
+//      		$('#firstOne').trigger("click");
15
+				//右侧搜索事件
16
+				bindtree();
17
+	        	initTable($('#depID').val());
18
+	        	$('#rightSearch').click(function(){
19
+	        			initTable($('#depID').val());
20
+	        	})
21
+				function initTable(ids) {
22
+		            //先销毁表格
23
+		            table.bootstrapTable('destroy');
24
+		            //初始化表格,动态从服务器加载数据
25
+		            table.bootstrapTable({
26
+		                method: "get", //使用get请求到服务器获取数据
27
+		                url: huayi.config.callcenter_url + "Repository/GetList", //获取数据的Servlet地址
28
+		                contentType: "application/x-www-form-urlencoded", striped: true,
29
+		                striped: true, //表格显示条纹
30
+		                pagination: true, //启动分页
31
+		                pageSize: 10, //每页显示的记录数
32
+		                pageNumber: 1, //当前第几页
33
+		                pageList: [10, 15, 25], //记录数可选列表
34
+		                search: false, //是否启用查询
35
+		                showColumns: false, //显示下拉框勾选要显示的列
36
+		                showRefresh: false, //显示刷新按钮
37
+		                sidePagination: "server", //表示服务端请求
38
+		                //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
39
+		                //设置为limit可以获取limit, offset, search, sort, order
40
+		                queryParamsType: "undefined",
41
+		                queryParams: function queryParams(params) { //设置查询参数
42
+		                    var param = {
43
+		                        page: params.pageNumber,
44
+		                        pagesize: params.pageSize,
45
+		                        token: token,
46
+		                        deptid:ids,
47
+		                        type:1,
48
+		                        key:$('.rightSearchKey').val(),
49
+//								starttime:	否	string	开始时间 (2017-01-09)
50
+//								endtime:
51
+		                    };
52
+		                    return param;
53
+		                },
54
+		                onLoadSuccess: function () { //加载成功时执行
55
+		                    //layer.msg("加载成功");
56
+		                },
57
+		                onLoadError: function () { //加载失败时执行
58
+		                    //layer.msg("加载数据失败", { time: 1500, icon: 2 });
59
+		                }
60
+	            });
61
+	        }
62
+        		function bindtree() {
63
+			    $.getJSON(huayi.config.callcenter_url + "Department/GetDeptList", { "token": $.cookie("token") }, function (result) {
64
+			        if (result.state.toLowerCase() == "success") {
65
+			            tree = $.fn.zTree.init($("#treeDemo"), setting1, result.data);
66
+			        }
67
+			    })
68
+			}
69
+			//获取所属部门
70
+			var setting1 = {
71
+					data: {
72
+						key: {
73
+							name: "F_DeptName"
74
+						},
75
+						simpleData: {
76
+							enable: true,
77
+							idKey: "F_DeptId",
78
+							pIdKey: "F_PartentId",
79
+							rootPId: 0
80
+						}
81
+					},
82
+					callback: {
83
+						onClick: zTreeOnClick
84
+					}
85
+				};
86
+			function zTreeOnClick(event, treeId, treeNode) {
87
+				$('#urgent').css('color','red');
88
+				$('#policies').css('color','red');
89
+				$('.polices').css('display','none');
90
+        		$('.addTo').css('display','block');
91
+				$('#depID').val('');
92
+			    if (treeNode.level >= 2) {
93
+			    	$('.mechanism').css('visibility','visible');
94
+			    	var depId=treeNode.F_DeptId;
95
+					$('#depID').val(depId);
96
+					$.getJSON(huayi.config.callcenter_url + "Department/GetDept", { id:depId,"token": $.cookie("token") }, function (result) {
97
+				        if (result.state.toLowerCase() == "success") {
98
+				            $('#mechanism').val(result.data.F_Remark);
99
+				        }
100
+				   })
101
+			        initTable(depId);
102
+			    }
103
+			    
104
+			};
105
+//      		if($('.allAdd').hasClass('active')){
106
+//      			$('.addTo').hide();
107
+//      		}else{
108
+//      			$('.addTo').show();
109
+//      		}
110
+        		
111
+        		$('.unitList li').click(function(){
112
+        			$('.unitList li').removeClass('active')
113
+        			$(this).addClass('active');
114
+    				if($('.allAdd').hasClass('active')){
115
+	        			$('.addTo').hide();
116
+	        		}else{
117
+	        			$('.addTo').show();
118
+	        		}
119
+        			var depId=$(this).attr('data-id');
120
+        			var keyWord=$(this).find('div').html();
121
+        			$('.rightTabKey').html(keyWord);
122
+        			$('#depID').val(depId);
123
+        			initTable(depId);
124
+        		})
125
+        		
126
+        		//左侧单位鼠标移入效果
127
+        		$('.unitList li').hover(function(){
128
+        			$(this).addClass('acs');
129
+        			
130
+        		},function(){
131
+        			$(this).removeClass('acs');
132
+        		})
133
+        		//右侧关键字鼠标移入效果
134
+        		$('.keyList li').hover(function(){
135
+        			$('.keyList li').removeClass('active')
136
+        			$(this).addClass('active');
137
+        			
138
+        		},function(){
139
+        			$(this).removeClass('active');
140
+        		})
141
+        		$('.addTo').click(function(){
142
+        			var depid=$('#depID').val();
143
+        			if(!depid||depid==0){
144
+        				layer.msg('请选择一个承办单位');
145
+        				return;
146
+        			}
147
+        			goAdd(depid)
148
+        			
149
+        		})
150
+        		//紧急事件添加
151
+        		$('#urgent').click(function(){
152
+        			$('#depID').val('99999');
153
+        			$('.mechanism').css('visibility','hidden');
154
+        			$('.polices').css('display','none');
155
+        			$('.addTo').css('display','block');
156
+        			$('#policies').css('color','red');
157
+        			$('#urgent').css('color','#048aad');
158
+        			$('#mechanism').val('');
159
+        			initTable($('#depID').val());
160
+        		})
161
+        		//政策法规添加
162
+        		$('#policies').click(function(){
163
+        			$('#depID').val('100000');
164
+        			$('.mechanism').css('visibility','hidden');
165
+        			$('.polices').css('display','block');
166
+        			$('.addTo').css('display','none');
167
+        			$('#urgent').css('color','red');
168
+        			$('#policies').css('color','#048aad');
169
+        			$('#mechanism').val('');
170
+        			initTable($('#depID').val());
171
+        		})
172
+        		$('.polices').click(function(){
173
+        			var depid=$('#depID').val();
174
+        			policesAdd(depid)
175
+        			
176
+        		})
177
+        		//机构职能保存
178
+        		$('.btn_save').click(function(){
179
+        			if($('#depID').val()==0||$('#depID').val()==99999||$('#depID').val()==100000){
180
+        				layer.msg('请选择一个承办单位');
181
+        				return;
182
+        			}
183
+        			$.ajax({
184
+						type: "post",
185
+						url: huayi.config.callcenter_url + "Department/UpdateDeptRemark",
186
+						async: true,
187
+						dataType: 'json',
188
+						data: {
189
+						    token: $.cookie("token"),
190
+							id: $('#depID').val(),
191
+							remark:$('#mechanism').val(),
192
+						},
193
+						success: function(data) {
194
+							if(data.state.toLowerCase() == 'success') {
195
+								layer.msg("保存成功!");
196
+//								location=location
197
+							}
198
+						}
199
+					});
200
+        		})
201
+        		function policesAdd(ids){
202
+					//iframe窗
203
+				    layer.open({
204
+				      	type: 2,
205
+				      	title: '新增知识库',
206
+				      	area: ['70%', '60%'],
207
+				      	content: 'policesAdd.html?depId='+ ids +''
208
+				    });
209
+				}
210
+        		function goAdd(ids){
211
+					//iframe窗
212
+				    layer.open({
213
+				      	type: 2,
214
+				      	title: '新增知识库',
215
+				      	area: ['70%', '60%'],
216
+				      	content: 'newRepositoryAdd.html?depId='+ ids +''
217
+				    });
218
+				}
219
+        	})
146 220
         	//操作
147
-function CZ(val, row) {
148
-    var str = '';
149
-    if (top.$("#RoleCode").val() == 'GLY') {
150
-        str = '<div>' +
151
-            '<a class="xg" onclick="goDetail(' + row.F_Id + ')" title="点击查看详情">查看</a>' +
152
-            '<a class="xg" onclick="goEdit(' + row.F_Id + ')" title="点击编辑">编辑</a>' +
153
-            '<a class="xg" onclick="goDel(' + row.F_Id + ')" title="点击编辑">删除</a>' +
154
-            '</div>'
155
-    } else {
156
-        str = '<div>' +
157
-            '<a class="xg" onclick="goDetail(' + row.F_Id + ')" title="点击查看详情">查看</a>' +
158
-            '<a class="xg" onclick="goEdit(' + row.F_Id + ')" title="点击编辑">编辑</a>' +
159
-            '</div>'
160
-    }
161
-    return str
162
-
163
-}
221
+			function CZ(val,row){
222
+				var Rows = row.Buttons;
223
+	            var html = '';
224
+	            for (var i = 0; i < Rows.length; i++) {
225
+	
226
+	                var html1 = huayi.config.kapArr[Rows[i].key * 1 - 1];
227
+	                if (html1) {
228
+	                    html1 = html1.replace("data", row.F_Id);
229
+	                     html1 = html1.replace("data_id", row.F_DeptId);
230
+	                }
231
+	                html += html1;
232
+	            }
233
+	            return html;
234
+	        }
164 235
 			//详情
165
-function goDetail(ids) {
166
-    //iframe窗
167
-    layer.open({
168
-        type: 2,
169
-        title: '查看知识库详情',
170
-        area: ['70%', '60%'],
171
-        maxmin: true,
172
-        content: 'newRepositoryDetail.html?ids=' + ids + ''
173
-    });
174
-}
175
-			//修改
176
-function goEdit(ids) {
177
-    //iframe窗
178
-    layer.open({
179
-        type: 2,
180
-        title: '编辑知识库',
181
-        area: ['70%', '60%'],
182
-        maxmin: true,
183
-        content: 'newRepositoryAdd.html?ids=' + ids + '&depId=' + $('#depID').val()
184
-    });
185
-}
236
+			function goDetail(ids,DeptId){
237
+				if(DeptId==100000){
238
+					layer.open({
239
+				      	type: 2,
240
+				      	title: '查看知识库详情',
241
+				      	area: ['70%', '60%'],
242
+				      	maxmin:true,
243
+				      	content: 'policiesDetails.html?ids='+ ids
244
+				    });
245
+				}else{
246
+					//iframe窗
247
+				    layer.open({
248
+				      	type: 2,
249
+				      	title: '查看知识库详情',
250
+				      	area: ['70%', '60%'],
251
+				      	maxmin:true,
252
+				      	content: 'newRepositoryDetail.html?ids='+ ids+'&&DeptId='+DeptId
253
+				    });
254
+				}
255
+					
256
+			}
257
+			//解决
258
+			function solve(id) {
259
+				var laye = layer.confirm('确定解决?', {
260
+					btn: ['确定', '取消'] //可以无限个按钮
261
+				}, function() {
262
+					//按钮【按钮一】的回调
263
+					$.ajax({
264
+						type: "post",
265
+						url: huayi.config.callcenter_url + "Repository/DelRepository",
266
+						async: true,
267
+						dataType: 'json',
268
+						data: {
269
+						    token: $.cookie("token"),
270
+							type: id
271
+						},
272
+						success: function(data) {
273
+							if(data.state.toLowerCase() == 'success') {
274
+								layer.msg("提交成功!");
275
+								layer.close(laye);
276
+								table.bootstrapTable('refresh');
277
+							}
278
+						}
279
+					});
280
+				}, function(index) {
281
+					//按钮【按钮二】的回调
282
+					layer.close(laye)
283
+				});
284
+			}
285
+			//解决
286
+			function solve(id) {
287
+				var laye = layer.confirm('确定解决?', {
288
+					btn: ['确定', '取消'] //可以无限个按钮
289
+				}, function() {
290
+					//按钮【按钮一】的回调
291
+					$.ajax({
292
+						type: "post",
293
+						url: huayi.config.callcenter_url + "Repository/OptRep",
294
+						async: true,
295
+						dataType: 'json',
296
+						data: {
297
+						    token: $.cookie("token"),
298
+							repid: id,
299
+							type:1
300
+						},
301
+						success: function(data) {
302
+							if(data.state.toLowerCase() == 'success') {
303
+								layer.msg("提交成功!");
304
+								layer.close(laye);
305
+								table.bootstrapTable('refresh');
306
+							}
307
+						}
308
+					});
309
+				}, function(index) {
310
+					//按钮【按钮二】的回调
311
+					layer.close(laye)
312
+				});
313
+			}
314
+			//未解决
315
+			function noSolve(id) {
316
+				var laye = layer.confirm('确定未解决?', {
317
+					btn: ['确定', '取消'] //可以无限个按钮
318
+				}, function() {
319
+					//按钮【按钮一】的回调
320
+					$.ajax({
321
+						type: "post",
322
+						url: huayi.config.callcenter_url + "Repository/OptRep",
323
+						async: true,
324
+						dataType: 'json',
325
+						data: {
326
+						    token: $.cookie("token"),
327
+							repid: id,
328
+							type:2
329
+						},
330
+						success: function(data) {
331
+							if(data.state.toLowerCase() == 'success') {
332
+								layer.msg("提交成功!");
333
+								layer.close(laye);
334
+								table.bootstrapTable('refresh');
335
+							}
336
+						}
337
+					});
338
+				}, function(index) {
339
+					//按钮【按钮二】的回调
340
+					layer.close(laye)
341
+				});
342
+			}
343
+			//编辑
344
+			function goEdit(ids,DeptId){
345
+				if(DeptId==100000){
346
+					 //iframe窗
347
+				    layer.open({
348
+				      	type: 2,
349
+				      	title: '编辑知识库',
350
+				      	area: ['70%', '60%'],
351
+				      	maxmin:true,
352
+				      	content: 'policesAdd.html?ids='+ ids +'&depId='+$('#depID').val() 
353
+				    });
354
+				}else{
355
+					//iframe窗
356
+				    layer.open({
357
+				      	type: 2,
358
+				      	title: '编辑知识库',
359
+				      	area: ['70%', '60%'],
360
+				      	maxmin:true,
361
+//				      	content: 'newRepositoryAdd.html?ids='+ ids +'&depId='+$('#depID').val()
362
+				      	content: 'newRepositoryAdd.html?ids='+ ids +'&depId='+DeptId
363
+				    });
364
+				}
365
+						
366
+			}
186 367
 			//删除
187
-function goDel(id) {
188
-    var arr = [];
189
-    arr.push(id);
190
-    var laye = layer.confirm('您确定要删除吗?', {
191
-        btn: ['确定', '取消'] //可以无限个按钮
192
-    }, function () {
193
-        //按钮【按钮一】的回调
194
-        $.ajax({
195
-            type: "post",
196
-            url: huayi.config.callcenter_url + "Repository/DelRepository",
197
-            async: true,
198
-            dataType: 'json',
199
-            data: {
200
-                token: $.cookie("token"),
201
-                ids: arr
202
-            },
203
-            success: function (data) {
204
-                if (data.state.toLowerCase() == 'success') {
205
-                    layer.msg("删除成功!");
206
-                    layer.close(laye);
207
-                    table.bootstrapTable('refresh');
208
-                }
209
-            }
210
-        });
211
-    }, function (index) {
212
-        //按钮【按钮二】的回调
213
-        layer.close(laye)
214
-    });
215
-}
368
+			function goDel(id) {
369
+				var arr=[];
370
+				arr.push(id);
371
+				var laye = layer.confirm('您确定要删除吗?', {
372
+					btn: ['确定', '取消'] //可以无限个按钮
373
+				}, function() {
374
+					//按钮【按钮一】的回调
375
+					$.ajax({
376
+						type: "post",
377
+						url: huayi.config.callcenter_url + "Repository/DelRepository",
378
+						async: true,
379
+						dataType: 'json',
380
+						data: {
381
+						    token: $.cookie("token"),
382
+							ids: arr
383
+						},
384
+						success: function(data) {
385
+							if(data.state.toLowerCase() == 'success') {
386
+								layer.msg("删除成功!");
387
+								layer.close(laye);
388
+								table.bootstrapTable('refresh');
389
+							}
390
+						}
391
+					});
392
+				}, function(index) {
393
+					//按钮【按钮二】的回调
394
+					layer.close(laye)
395
+				});
396
+			}
397
+

+ 215 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/js/newRepository20200110.js

@@ -0,0 +1,215 @@
1
+    
2
+var token = $.cookie("token");
3
+var table = $('#table1');
4
+$('#depID').val(0);
5
+$(document).ready(function () {
6
+    //      		$('#firstOne').trigger("click");
7
+    //右侧搜索事件
8
+    initTable($('#depID').val());
9
+    $('#rightSearch').click(function () {
10
+        initTable($('#depID').val());
11
+    })
12
+
13
+    if ($('.allAdd').hasClass('active')) {
14
+        $('.addTo').hide();
15
+    } else {
16
+        $('.addTo').show();
17
+    }
18
+
19
+    //右侧关键字鼠标移入效果
20
+    $('.keyList li').hover(function () {
21
+        $('.keyList li').removeClass('active')
22
+        $(this).addClass('active');
23
+
24
+    }, function () {
25
+        $(this).removeClass('active');
26
+    })
27
+    $('.addTo').click(function () {
28
+        var depid = $('#depID').val();
29
+        goAdd(depid);
30
+    })
31
+
32
+    var headhtml = '<div class="swiper-slide swiper-no-swiping"><ul class="unitList clearfix" >';
33
+    var foothtml = '</ul ></div >';
34
+    var lbhtml = headhtml + '      <li data-id="0" class="active allAdd">'
35
+        + '             <a href="javaScript:;" title="全部">'
36
+        + '                <i class="cityGovernment"></i>'
37
+        + '                <div>全部</div>'
38
+        + '             </a>'
39
+        + '          </li>';
40
+    $.getJSON(huayi.config.callcenter_url + "Department/GetDealDeptList", {
41
+        "token": $.cookie("token")
42
+    }, function (data) {
43
+        if (data.state == "success") {
44
+            $(data.data).each(function (i, n) {
45
+                lbhtml += '      <li data-id="' + n.F_DeptId + '" >'
46
+                    + '             <a href="javaScript:;" title="' + n.F_DeptName + '">'
47
+                    + '                <i class="cityGovernment"></i>'
48
+                    + '                <div>' + n.F_DeptName + '</div>'
49
+                    + '             </a>'
50
+                    + '          </li>';
51
+                if (i + 1 != data.data.length) {
52
+                    if ((i + 2) % 18 == 0) {
53
+                        lbhtml += foothtml + headhtml;
54
+                    }
55
+                }
56
+                else {
57
+                    lbhtml += foothtml;
58
+                }
59
+            })
60
+            $(lbhtml).appendTo($(".swiper-container"));
61
+            var mySwiper = new Swiper('.swiper-container', {
62
+                //					    direction: 'vertical',
63
+                //					    loop: true,
64
+
65
+                // 如果需要分页器
66
+                pagination: {
67
+                    el: '.swiper-pagination',
68
+                    clickable: true,
69
+                }
70
+            })
71
+
72
+            $('.unitList li').click(function () {
73
+                $('.unitList li').removeClass('active')
74
+                $(this).addClass('active');
75
+                if ($('.allAdd').hasClass('active')) {
76
+                    $('.addTo').hide();
77
+                } else {
78
+                    $('.addTo').show();
79
+                }
80
+                var depId = $(this).attr('data-id');
81
+                var keyWord = $(this).find('div').html();
82
+                $('.rightTabKey').html(keyWord);
83
+                $('#depID').val(depId);
84
+                initTable(depId);
85
+            })
86
+
87
+            //左侧单位鼠标移入效果
88
+            $('.unitList li').hover(function () {
89
+                $(this).addClass('acs');
90
+
91
+            }, function () {
92
+                $(this).removeClass('acs');
93
+            })
94
+        }
95
+    })
96
+})
97
+function goAdd(ids) {
98
+    //iframe窗
99
+    layer.open({
100
+        type: 2,
101
+        title: '新增知识库',
102
+        area: ['70%', '60%'],
103
+        content: 'newRepositoryAdd.html?depId=' + ids + ''
104
+    });
105
+}
106
+function initTable(ids) {
107
+    //先销毁表格
108
+    table.bootstrapTable('destroy');
109
+    //初始化表格,动态从服务器加载数据
110
+    table.bootstrapTable({
111
+        method: "get", //使用get请求到服务器获取数据
112
+        url: huayi.config.callcenter_url + "Repository/GetList", //获取数据的Servlet地址
113
+        contentType: "application/x-www-form-urlencoded", striped: true,
114
+        striped: true, //表格显示条纹
115
+        pagination: true, //启动分页
116
+        pageSize: 10, //每页显示的记录数
117
+        pageNumber: 1, //当前第几页
118
+        pageList: [10, 15, 25], //记录数可选列表
119
+        search: false, //是否启用查询
120
+        showColumns: false, //显示下拉框勾选要显示的列
121
+        showRefresh: false, //显示刷新按钮
122
+        sidePagination: "server", //表示服务端请求
123
+        //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
124
+        //设置为limit可以获取limit, offset, search, sort, order
125
+        queryParamsType: "undefined",
126
+        queryParams: function queryParams(params) { //设置查询参数
127
+            var param = {
128
+                page: params.pageNumber,
129
+                pagesize: params.pageSize,
130
+                token: token,
131
+                deptid: ids,
132
+                key: $('.rightSearchKey').val(),
133
+                //								starttime:	否	string	开始时间 (2017-01-09)
134
+                //								endtime:
135
+            };
136
+            return param;
137
+        },
138
+        onLoadSuccess: function () { //加载成功时执行
139
+            //layer.msg("加载成功");
140
+        },
141
+        onLoadError: function () { //加载失败时执行
142
+            //layer.msg("加载数据失败", { time: 1500, icon: 2 });
143
+        }
144
+    });
145
+}
146
+        	//操作
147
+function CZ(val, row) {
148
+    var str = '';
149
+    if (top.$("#RoleCode").val() == 'GLY') {
150
+        str = '<div>' +
151
+            '<a class="xg" onclick="goDetail(' + row.F_Id + ')" title="点击查看详情">查看</a>' +
152
+            '<a class="xg" onclick="goEdit(' + row.F_Id + ')" title="点击编辑">编辑</a>' +
153
+            '<a class="xg" onclick="goDel(' + row.F_Id + ')" title="点击编辑">删除</a>' +
154
+            '</div>'
155
+    } else {
156
+        str = '<div>' +
157
+            '<a class="xg" onclick="goDetail(' + row.F_Id + ')" title="点击查看详情">查看</a>' +
158
+            '<a class="xg" onclick="goEdit(' + row.F_Id + ')" title="点击编辑">编辑</a>' +
159
+            '</div>'
160
+    }
161
+    return str
162
+
163
+}
164
+			//详情
165
+function goDetail(ids) {
166
+    //iframe窗
167
+    layer.open({
168
+        type: 2,
169
+        title: '查看知识库详情',
170
+        area: ['70%', '60%'],
171
+        maxmin: true,
172
+        content: 'newRepositoryDetail.html?ids=' + ids + ''
173
+    });
174
+}
175
+			//修改
176
+function goEdit(ids) {
177
+    //iframe窗
178
+    layer.open({
179
+        type: 2,
180
+        title: '编辑知识库',
181
+        area: ['70%', '60%'],
182
+        maxmin: true,
183
+        content: 'newRepositoryAdd.html?ids=' + ids + '&depId=' + $('#depID').val()
184
+    });
185
+}
186
+			//删除
187
+function goDel(id) {
188
+    var arr = [];
189
+    arr.push(id);
190
+    var laye = layer.confirm('您确定要删除吗?', {
191
+        btn: ['确定', '取消'] //可以无限个按钮
192
+    }, function () {
193
+        //按钮【按钮一】的回调
194
+        $.ajax({
195
+            type: "post",
196
+            url: huayi.config.callcenter_url + "Repository/DelRepository",
197
+            async: true,
198
+            dataType: 'json',
199
+            data: {
200
+                token: $.cookie("token"),
201
+                ids: arr
202
+            },
203
+            success: function (data) {
204
+                if (data.state.toLowerCase() == 'success') {
205
+                    layer.msg("删除成功!");
206
+                    layer.close(laye);
207
+                    table.bootstrapTable('refresh');
208
+                }
209
+            }
210
+        });
211
+    }, function (index) {
212
+        //按钮【按钮二】的回调
213
+        layer.close(laye)
214
+    });
215
+}

+ 49 - 14
WebUI/CallCenterWeb.UI/zhiShiKu/js/newRepositoryAdd.js

@@ -1,7 +1,7 @@
1 1
 
2 2
 var ids=helper.request.queryString("ids");
3 3
 var depId=helper.request.queryString("depId");
4
-
4
+var demandsid=helper.request.queryString("wid");
5 5
 //编辑器配置
6 6
 		KindEditor.ready(function(K) {
7 7
 			window.baseon = K.create('#baseon', {
@@ -40,7 +40,13 @@ var depId=helper.request.queryString("depId");
40 40
 		});
41 41
 		
42 42
 $(document).ready(function() {
43
-		
43
+		if(depId==99999){
44
+			var isurgent=1
45
+//			$('.radio-inline input').attr('checked','false');
46
+//			$('.radio-inline input:first').attr('checked','true');
47
+		}else{
48
+			var isurgent=0
49
+		}
44 50
 		$('.tab_list li').click(function() {
45 51
 			var index = $(this).index();
46 52
 			$(this).addClass('active').siblings().removeClass('active');
@@ -49,9 +55,13 @@ $(document).ready(function() {
49 55
 
50 56
 		
51 57
 		$('.save').click(function(){
52
-			saveCon();
58
+			issubmit=0;
59
+			saveCon(issubmit);
60
+		})
61
+		$('.savetj').click(function(){
62
+			issubmit=1;
63
+			saveCon(issubmit);
53 64
 		})
54
-		
55 65
 		//上传附件
56 66
 		$("#scwj").click(function() {
57 67
 			$("#upFile").trigger("click");
@@ -62,6 +72,9 @@ $(document).ready(function() {
62 72
 		
63 73
 		//保存
64 74
 		function saveCon(){
75
+			if(!demandsid){
76
+				demandsid=''
77
+			}
65 78
 			var paymoney=$('#paymoney').val()*1;
66 79
 			var a=paymoney.toFixed(2)
67 80
 //			var reg=/^([+-]?)\d*\.?\d+$/;
@@ -122,11 +135,12 @@ $(document).ready(function() {
122 135
 //			}
123 136
 			$.ajax({
124 137
 				type:'post',
125
-				url:huayi.config.callcenter_url +'Repository/AddRepository',
138
+				url:huayi.config.callcenter_url +'Repository/SaveRepository',
126 139
 				async:true,
127 140
 				dataType:'json',
128 141
 				data:{
129 142
 					token:$.cookie("token"),
143
+					demandsid:demandsid,//索要记录添加到知识库id
130 144
 					deptid:depId,//单位id
131 145
 					id:ids,//知识库id
132 146
 					key:$('#key').val(),//关键字
@@ -138,11 +152,14 @@ $(document).ready(function() {
138 152
 					privatephone2:$('#privatephone2').val(),//内部电话2
139 153
 					points:$('#points').val(),//询问要点
140 154
 					baseanswer:$('#baseanswer').val(),//标准话术
141
-					endanswer:$('#endanswer').val(),//结案参考
155
+					endanswer:$('#endanswer').val(),//参考答案
142 156
 					dealtype:$('#dealtype').val(),//办理方式
143 157
 					legallimittime:$('#legallimittime').val(),//法定办结时限
144 158
 					promiselimittime:$('#promiselimittime').val(),//承诺办结时限
145
-					ispay: $('input[name="ispay"]:checked ').val(),//是否收费
159
+//					ispay: $('input[name="ispay"]:checked ').val(),//是否收费
160
+					issubmit: issubmit,//是否审核
161
+//					isurgent: $('input[name="isUrgency"]:checked ').val(),//是否紧急事项
162
+					isurgent: isurgent,//是否紧急事项 1是 0 否
146 163
 					paymoney: a,//收费标准
147 164
 					officeaddress: $('#officeaddress').val(),//办公地点
148 165
 					serobject: $('#serobject').val(),//办理对象
@@ -165,11 +182,34 @@ $(document).ready(function() {
165 182
 						parent.layer.close(index); //再执行关闭  
166 183
 						parent.layer.msg(data.message); //再执行关闭  
167 184
 						parent.$('#table1').bootstrapTable('refresh'); //再执行关闭  
185
+						parent.$('#orderlist').bootstrapTable('refresh'); //再执行关闭  
168 186
 					}
169 187
 					
170 188
 				}
171 189
 			});
172 190
 		}
191
+	    
192
+	     if(depId&&depId!=99999&&depId!=0){
193
+	  	 $.ajax({
194
+				type:"get",
195
+				url:huayi.config.callcenter_url +"Department/GetDept",
196
+				async:true,
197
+				dataType:'json',
198
+				data:{
199
+					token: $.cookie("token"),
200
+					id:depId
201
+				},
202
+				success:function(result){
203
+					if(result.state.toLowerCase()=='success'){
204
+						var con=result.data;
205
+						$('#mechanism').val(con.F_Remark);
206
+					}
207
+										
208
+				}
209
+			});
210
+		}else{
211
+			$('.mechanism').css('display','none')
212
+		}
173 213
 	    //获取知识库详情
174 214
 	  if(ids){
175 215
 	  	 $.ajax({
@@ -198,7 +238,8 @@ $(document).ready(function() {
198 238
 								$('#legallimittime').val(con.F_LegalLimitTime);//法定办结时限
199 239
 								$('#promiselimittime').val(con.F_PromiseLimitTime);//承诺办结时限
200 240
 //								$('input[name="ispay"]:checked ').val(F_PayMoney);//是否收费
201
-								$('input[name="ispay"][value="'+con.F_IsPay+'"]').prop("checked","checked");//是否收费
241
+//								$('input[name="ispay"][value="'+con.F_IsPay+'"]').prop("checked","checked"),//是否收费
242
+								$('input[name="isUrgency"][value="'+con.F_IsPay+'"]').prop("checked","checked"),//是否紧急事项
202 243
 								$('#paymoney').val(con.F_PayMoney);//收费标准
203 244
 								$('#officeaddress').val(con.F_OfficeAddress);//办公地点
204 245
 								$('#serobject').val(con.F_Object);//办理对象
@@ -214,12 +255,6 @@ $(document).ready(function() {
214 255
 								template.html(con.F_Template);
215 256
 								payinfo.html(con.F_PayInfo);
216 257
 								depId=con.F_DeptId;
217
-//								$('#baseon').val(con.F_BaseOn);//设定依据
218
-//								$('#process').val(con.F_Process);//办理流程
219
-//								$('#material').val(con.F_Material);//办理材料
220
-//								$('#template').val(con.F_Template);//办理结果样本
221
-//								$('#payinfo').val(con.F_PayInfo);//收费标准及依据
222
-			//					$('#files').val() //收费标准及依据
223 258
 								$(result.data.file).each(function(k,q){
224 259
 										var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName.substring(19) +'<i class="fa fa-remove del_file"></i></span>'
225 260
 										$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){

+ 332 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/js/newRepositoryAdd20200110.js

@@ -0,0 +1,332 @@
1
+
2
+var ids=helper.request.queryString("ids");
3
+var depId=helper.request.queryString("depId");
4
+var demandsid=helper.request.queryString("wid");
5
+//编辑器配置
6
+		KindEditor.ready(function(K) {
7
+			window.baseon = K.create('#baseon', {
8
+				uploadJson: '../../js/kindeditor/asp.net/upload_json.ashx',
9
+				fileManagerJson: '../../js/kindeditor/asp.net/file_manager_json.ashx',
10
+				allowFileManager: true
11
+			}); //添加弹出框编辑器
12
+		});
13
+		KindEditor.ready(function(K) {
14
+			window.process = K.create('#process', {
15
+				uploadJson: '../../js/kindeditor/asp.net/upload_json.ashx',
16
+				fileManagerJson: '../../js/kindeditor/asp.net/file_manager_json.ashx',
17
+				allowFileManager: true
18
+			}); //添加弹出框编辑器
19
+		});
20
+		KindEditor.ready(function(K) {
21
+			window.material = K.create('#material', {
22
+				uploadJson: '../../js/kindeditor/asp.net/upload_json.ashx',
23
+				fileManagerJson: '../../js/kindeditor/asp.net/file_manager_json.ashx',
24
+				allowFileManager: true
25
+			}); //添加弹出框编辑器
26
+		});
27
+		KindEditor.ready(function(K) {
28
+			window.template = K.create('#template', {
29
+				uploadJson: '../../js/kindeditor/asp.net/upload_json.ashx',
30
+				fileManagerJson: '../../js/kindeditor/asp.net/file_manager_json.ashx',
31
+				allowFileManager: true
32
+			}); //添加弹出框编辑器
33
+		});
34
+		KindEditor.ready(function(K) {
35
+			window.payinfo = K.create('#payinfo', {
36
+				uploadJson: '../../js/kindeditor/asp.net/upload_json.ashx',
37
+				fileManagerJson: '../../js/kindeditor/asp.net/file_manager_json.ashx',
38
+				allowFileManager: true
39
+			}); //添加弹出框编辑器
40
+		});
41
+		
42
+$(document).ready(function() {
43
+		
44
+		$('.tab_list li').click(function() {
45
+			var index = $(this).index();
46
+			$(this).addClass('active').siblings().removeClass('active');
47
+			$('.tab_content>div').eq(index).show().siblings().hide();
48
+		})
49
+
50
+		
51
+		$('.save').click(function(){
52
+			saveCon();
53
+		})
54
+		
55
+		//上传附件
56
+		$("#scwj").click(function() {
57
+			$("#upFile").trigger("click");
58
+		})
59
+		$("#upFile").change(function() {
60
+			upload();
61
+		})
62
+		
63
+		//保存
64
+		function saveCon(){
65
+			var paymoney=$('#paymoney').val()*1;
66
+			var a=paymoney.toFixed(2)
67
+//			var reg=/^([+-]?)\d*\.?\d+$/;
68
+//			if($("#publicphone1").val()!==''){
69
+//				if(!reg.test($.trim($("#publicphone1").val()))) { 
70
+//	           		layer.confirm('请输入有效的公开电话!', {
71
+//						btn: ['确定'] //按钮
72
+//					});
73
+//	           		$("#publicphone1").val(''); 
74
+//	           		$("#publicphone1").focus(); 
75
+//	           		return; 
76
+//			}
77
+//			}if($("#publicphone2").val()!==''){
78
+//					if(!reg.test($.trim($("#publicphone2").val()))){
79
+//					layer.confirm('请输入有效的公开电话!', {
80
+//							btn: ['确定'] //按钮
81
+//						});
82
+//						$("#publicphone2").val(''); 
83
+//		           		$("#publicphone2").focus(); 
84
+//		           		return;
85
+//				}
86
+//			}if($("#privatephone1").val()!==''){
87
+//					if(!reg.test($.trim($("#privatephone1").val()))){
88
+//					layer.confirm('请输入有效的内部电话!', {
89
+//							btn: ['确定'] //按钮
90
+//						});
91
+//						$("#privatephone1").val(''); 
92
+//		           		$("#privatephone1").focus(); 
93
+//		           		return;
94
+//				}
95
+//			}if($("#privatephone2").val()!==''){
96
+//					 if(!reg.test($.trim($("#privatephone2").val()))){
97
+//					layer.confirm('请输入有效的内部电话!', {
98
+//							btn: ['确定'] //按钮
99
+//						});
100
+//		           		$("#privatephone2").val(''); 
101
+//		           		$("#privatephone2").focus(); 
102
+//		           		return;
103
+//				}
104
+//			}if($("#otherpublicphone").val()!==''){
105
+//					 if(!reg.test($.trim($("#otherpublicphone").val()))){
106
+//					layer.confirm('请输入有效的协办单位公开电话!', {
107
+//							btn: ['确定'] //按钮
108
+//						});
109
+//		           		$("#otherpublicphone").val(''); 
110
+//		           		$("#otherpublicphone").focus(); 
111
+//		           		return;
112
+//				}
113
+//			}if($("#otherprivatephone").val()!==''){
114
+//					 if(!reg.test($.trim($("#otherprivatephone").val()))){
115
+//					layer.confirm('请输入有效的协办单位内部电话!', {
116
+//							btn: ['确定'] //按钮
117
+//						});
118
+//		           		$("#otherprivatephone").val(''); 
119
+//		           		$("#otherprivatephone").focus(); 
120
+//		           		return;
121
+//				}
122
+//			}
123
+			$.ajax({
124
+				type:'post',
125
+				url:huayi.config.callcenter_url +'Repository/AddRepository',
126
+				async:true,
127
+				dataType:'json',
128
+				data:{
129
+					token:$.cookie("token"),
130
+					deptid:depId,//单位id
131
+					id:ids,//知识库id
132
+					key:$('#key').val(),//关键字
133
+					title:$('#title').val(),//事件名称
134
+					maindept:$('#maindept').val(),//主办单位
135
+					publicphone1:$('#publicphone1').val(),//公开电话1
136
+					publicphone2:$('#publicphone2').val(),//公开电话2
137
+					privatephone1:$('#privatephone1').val(),//内部电话1
138
+					privatephone2:$('#privatephone2').val(),//内部电话2
139
+					points:$('#points').val(),//询问要点
140
+					baseanswer:$('#baseanswer').val(),//标准话术
141
+					endanswer:$('#endanswer').val(),//结案参考
142
+					dealtype:$('#dealtype').val(),//办理方式
143
+					legallimittime:$('#legallimittime').val(),//法定办结时限
144
+					promiselimittime:$('#promiselimittime').val(),//承诺办结时限
145
+					ispay: $('input[name="ispay"]:checked ').val(),//是否收费
146
+					paymoney: a,//收费标准
147
+					officeaddress: $('#officeaddress').val(),//办公地点
148
+					serobject: $('#serobject').val(),//办理对象
149
+					busline: $('#busline').val(),//乘车路线
150
+					officetime: $('#officetime').val(),//办公时间
151
+					otherdept: $('#otherdept').val(),//	协办单位
152
+					otherpublicphone: $('#otherpublicphone').val(),//	协办单位公开电话
153
+					otherprivatephone: $('#otherprivatephone').val(),//协办单位内部电话
154
+					remark: $('#remark').val(),//备注
155
+					baseon: encodeURIComponent(baseon.html()),//设定依据
156
+					process: encodeURIComponent(process.html()),//办理流程
157
+					material: encodeURIComponent(material.html()),//办理材料
158
+					template: encodeURIComponent(template.html()),//办理结果样本
159
+					payinfo: encodeURIComponent(payinfo.html()),//收费标准及依据
160
+					files: $('#file').val() //收费标准及依据
161
+				},
162
+				success:function(data){
163
+					if(data.state.toLowerCase()=='success'){
164
+						var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
165
+						parent.layer.close(index); //再执行关闭  
166
+						parent.layer.msg(data.message); //再执行关闭  
167
+						parent.$('#table1').bootstrapTable('refresh'); //再执行关闭  
168
+					}
169
+					
170
+				}
171
+			});
172
+		}
173
+		 if(depId&&depId!=99999&&depId!=0){
174
+	  	 $.ajax({
175
+				type:"get",
176
+				url:huayi.config.callcenter_url +"Department/GetDept",
177
+				async:true,
178
+				dataType:'json',
179
+				data:{
180
+					token: $.cookie("token"),
181
+					id:depId
182
+				},
183
+				success:function(result){
184
+					if(result.state.toLowerCase()=='success'){
185
+						var con=result.data;
186
+						$('#mechanism').val(con.F_Remark);
187
+					}
188
+										
189
+				}
190
+			});
191
+		}else{
192
+			$('.mechanism').css('display','none')
193
+		}
194
+	    //获取知识库详情
195
+	  if(ids){
196
+	  	 $.ajax({
197
+						type:"get",
198
+						url:huayi.config.callcenter_url +"Repository/GetRepository",
199
+						async:true,
200
+						dataType:'json',
201
+						data:{
202
+							token: $.cookie("token"),
203
+							id:ids
204
+						},
205
+						success:function(result){
206
+							if(result.state.toLowerCase()=='success'){
207
+								var con=result.data.data;
208
+								$('#key').val(con.F_Key);//关键字
209
+								$('#title').val(con.F_Title);//事件名称
210
+								$('#maindept').val(con.F_MainDept);//主办单位
211
+								$('#publicphone1').val(con.F_PublicPhone1);//公开电话1
212
+								$('#publicphone2').val(con.F_PublicPhone2);//公开电话2
213
+								$('#privatephone1').val(con.F_PrivatePhone1);//内部电话1
214
+								$('#privatephone2').val(con.F_PrivatePhone2);//内部电话2
215
+								$('#points').val(con.F_Points);//询问要点
216
+								$('#baseanswer').val(con.F_BaseAnswer);//标准话术
217
+								$('#endanswer').val(con.F_EndAnswer);//结案参考
218
+								$('#dealtype').val(con.F_DealType);//办理方式
219
+								$('#legallimittime').val(con.F_LegalLimitTime);//法定办结时限
220
+								$('#promiselimittime').val(con.F_PromiseLimitTime);//承诺办结时限
221
+//								$('input[name="ispay"]:checked ').val(F_PayMoney);//是否收费
222
+								$('input[name="ispay"][value="'+con.F_IsPay+'"]').prop("checked","checked");//是否收费
223
+								$('#paymoney').val(con.F_PayMoney);//收费标准
224
+								$('#officeaddress').val(con.F_OfficeAddress);//办公地点
225
+								$('#serobject').val(con.F_Object);//办理对象
226
+								$('#busline').val(con.F_BusLine);//乘车路线
227
+								$('#officetime').val(con.F_OfficeTime);//办公时间
228
+								$('#otherdept').val(con.F_OtherDept);//	协办单位
229
+								$('#otherpublicphone').val(con.F_OtherPublicPhone);//	协办单位公开电话
230
+								$('#otherprivatephone').val(con.F_OtherPrivatePhone);//协办单位内部电话
231
+								$('#remark').val(con.F_Remark);//备注
232
+								baseon.html(con.F_BaseOn);
233
+								process.html(con.F_Process);
234
+								material.html(con.F_Material);
235
+								template.html(con.F_Template);
236
+								payinfo.html(con.F_PayInfo);
237
+								depId=con.F_DeptId;
238
+//								$('#baseon').val(con.F_BaseOn);//设定依据
239
+//								$('#process').val(con.F_Process);//办理流程
240
+//								$('#material').val(con.F_Material);//办理材料
241
+//								$('#template').val(con.F_Template);//办理结果样本
242
+//								$('#payinfo').val(con.F_PayInfo);//收费标准及依据
243
+			//					$('#files').val() //收费标准及依据
244
+								$(result.data.file).each(function(k,q){
245
+										var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName.substring(19) +'<i class="fa fa-remove del_file"></i></span>'
246
+										$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
247
+											event.stopPropagation();
248
+											$(this).parent().remove();
249
+												file_num()
250
+												console.log($('.fileBox').find('.del_file'))
251
+										})
252
+										file_num()
253
+									})
254
+													
255
+							}
256
+												
257
+						}
258
+			});
259
+			
260
+	  }
261
+	  
262
+	
263
+})
264
+		
265
+		//上传文件
266
+		function upload() {
267
+			var Files = document.getElementById("upFile").files;
268
+			if(Files.length > 0) {
269
+				var formData = new FormData();
270
+				for(var i = 0; i < Files.length; i++) {
271
+					formData.append('file' + i, Files[i]);;
272
+				}
273
+				console.log(formData)
274
+				formData.append("token", $.cookie("token"));
275
+				var typeName=Files[0].name.split('.')[1];
276
+                if (typeName=="png"||typeName=='jpg'||typeName=='mp4'||typeName=='mp3'||typeName=='pdf'||typeName=='doc'||typeName=='docx'||typeName=='xls'||typeName=='xlsx') {
277
+					$.ajax({
278
+						url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
279
+						type: "POST",
280
+						data: formData,
281
+						/**
282
+						 *必须false才会自动加上正确的Content-Type
283
+						 */
284
+						contentType: false,
285
+						/**
286
+						 * 必须false才会避开jQuery对 formdata 的默认处理
287
+						 * XMLHttpRequest会对 formdata 进行正确的处理
288
+						 */
289
+						processData: false,
290
+						success: function(result) {
291
+							document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
292
+							$("#upFile").change(function() {
293
+								upload();
294
+							});
295
+							var r = $.parseJSON(result);
296
+							if(r.state.toLowerCase() == "success") {
297
+								//								$(".fjnr").text(r.data[0].F_FileName);
298
+								var a = r.data;
299
+								$(a).each(function(i, n) {
300
+									var strs = '<span class="files" fiel-num="' + n.F_FileId + '">' + n.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
301
+									$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event) {
302
+										event.stopPropagation();
303
+										$(this).parent().remove();
304
+										file_num()
305
+									})
306
+								})
307
+								file_num()
308
+							}
309
+						}
310
+					});
311
+				}else{
312
+		    		layer.msg("格式不正确");
313
+		    	}
314
+			} else {
315
+				layer.confirm('请上传文件!', {
316
+					btn: ['确定']
317
+				});
318
+			}
319
+		}
320
+		//上传文件隐藏域值
321
+		function file_num() {
322
+			var str = '';
323
+			var Str;
324
+			$('.fileBox .files').each(function(j, m) {
325
+				var aa = $(m).attr("fiel-num")
326
+				console.log(aa);
327
+				str += aa + ",";
328
+				Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
329
+			})
330
+			$("#file").val(Str);
331
+		}
332
+		

+ 325 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/js/policesAdd.js

@@ -0,0 +1,325 @@
1
+
2
+var ids=helper.request.queryString("ids");
3
+var depId=helper.request.queryString("depId");
4
+var demandsid=helper.request.queryString("wid");
5
+//编辑器配置
6
+		KindEditor.ready(function(K) {
7
+			window.baseon = K.create('#baseon', {
8
+				uploadJson: '../../js/kindeditor/asp.net/upload_json.ashx',
9
+				fileManagerJson: '../../js/kindeditor/asp.net/file_manager_json.ashx',
10
+				allowFileManager: true
11
+			}); //添加弹出框编辑器
12
+		});
13
+		KindEditor.ready(function(K) {
14
+			window.process = K.create('#process', {
15
+				uploadJson: '../../js/kindeditor/asp.net/upload_json.ashx',
16
+				fileManagerJson: '../../js/kindeditor/asp.net/file_manager_json.ashx',
17
+				allowFileManager: true
18
+			}); //添加弹出框编辑器
19
+		});
20
+		KindEditor.ready(function(K) {
21
+			window.material = K.create('#material', {
22
+				uploadJson: '../../js/kindeditor/asp.net/upload_json.ashx',
23
+				fileManagerJson: '../../js/kindeditor/asp.net/file_manager_json.ashx',
24
+				allowFileManager: true
25
+			}); //添加弹出框编辑器
26
+		});
27
+		KindEditor.ready(function(K) {
28
+			window.template = K.create('#template', {
29
+				uploadJson: '../../js/kindeditor/asp.net/upload_json.ashx',
30
+				fileManagerJson: '../../js/kindeditor/asp.net/file_manager_json.ashx',
31
+				allowFileManager: true
32
+			}); //添加弹出框编辑器
33
+		});
34
+		KindEditor.ready(function(K) {
35
+			window.payinfo = K.create('#payinfo', {
36
+				uploadJson: '../../js/kindeditor/asp.net/upload_json.ashx',
37
+				fileManagerJson: '../../js/kindeditor/asp.net/file_manager_json.ashx',
38
+				allowFileManager: true
39
+			}); //添加弹出框编辑器
40
+		});
41
+		
42
+$(document).ready(function() {
43
+		if(depId==99999){
44
+			var isurgent=1
45
+//			$('.radio-inline input').attr('checked','false');
46
+//			$('.radio-inline input:first').attr('checked','true');
47
+		}else{
48
+			var isurgent=0
49
+		}
50
+		$('.tab_list li').click(function() {
51
+			var index = $(this).index();
52
+			$(this).addClass('active').siblings().removeClass('active');
53
+			$('.tab_content>div').eq(index).show().siblings().hide();
54
+		})
55
+
56
+		
57
+		$('.save').click(function(){
58
+			issubmit=0;
59
+			saveCon(issubmit);
60
+		})
61
+		$('.savetj').click(function(){
62
+			issubmit=1;
63
+			saveCon(issubmit);
64
+		})
65
+		//上传附件
66
+		$("#scwj").click(function() {
67
+			$("#upFile").trigger("click");
68
+		})
69
+		$("#upFile").change(function() {
70
+			upload();
71
+		})
72
+		
73
+		//保存
74
+		function saveCon(){
75
+			if(!demandsid){
76
+				demandsid=''
77
+			}
78
+			var paymoney=$('#paymoney').val()*1;
79
+			var a=paymoney.toFixed(2)
80
+//			var reg=/^([+-]?)\d*\.?\d+$/;
81
+//			if($("#publicphone1").val()!==''){
82
+//				if(!reg.test($.trim($("#publicphone1").val()))) { 
83
+//	           		layer.confirm('请输入有效的公开电话!', {
84
+//						btn: ['确定'] //按钮
85
+//					});
86
+//	           		$("#publicphone1").val(''); 
87
+//	           		$("#publicphone1").focus(); 
88
+//	           		return; 
89
+//			}
90
+//			}if($("#publicphone2").val()!==''){
91
+//					if(!reg.test($.trim($("#publicphone2").val()))){
92
+//					layer.confirm('请输入有效的公开电话!', {
93
+//							btn: ['确定'] //按钮
94
+//						});
95
+//						$("#publicphone2").val(''); 
96
+//		           		$("#publicphone2").focus(); 
97
+//		           		return;
98
+//				}
99
+//			}if($("#privatephone1").val()!==''){
100
+//					if(!reg.test($.trim($("#privatephone1").val()))){
101
+//					layer.confirm('请输入有效的内部电话!', {
102
+//							btn: ['确定'] //按钮
103
+//						});
104
+//						$("#privatephone1").val(''); 
105
+//		           		$("#privatephone1").focus(); 
106
+//		           		return;
107
+//				}
108
+//			}if($("#privatephone2").val()!==''){
109
+//					 if(!reg.test($.trim($("#privatephone2").val()))){
110
+//					layer.confirm('请输入有效的内部电话!', {
111
+//							btn: ['确定'] //按钮
112
+//						});
113
+//		           		$("#privatephone2").val(''); 
114
+//		           		$("#privatephone2").focus(); 
115
+//		           		return;
116
+//				}
117
+//			}if($("#otherpublicphone").val()!==''){
118
+//					 if(!reg.test($.trim($("#otherpublicphone").val()))){
119
+//					layer.confirm('请输入有效的协办单位公开电话!', {
120
+//							btn: ['确定'] //按钮
121
+//						});
122
+//		           		$("#otherpublicphone").val(''); 
123
+//		           		$("#otherpublicphone").focus(); 
124
+//		           		return;
125
+//				}
126
+//			}if($("#otherprivatephone").val()!==''){
127
+//					 if(!reg.test($.trim($("#otherprivatephone").val()))){
128
+//					layer.confirm('请输入有效的协办单位内部电话!', {
129
+//							btn: ['确定'] //按钮
130
+//						});
131
+//		           		$("#otherprivatephone").val(''); 
132
+//		           		$("#otherprivatephone").focus(); 
133
+//		           		return;
134
+//				}
135
+//			}
136
+			$.ajax({
137
+				type:'post',
138
+				url:huayi.config.callcenter_url +'Repository/SaveRepository',
139
+				async:true,
140
+				dataType:'json',
141
+				data:{
142
+					token:$.cookie("token"),
143
+					demandsid:demandsid,//索要记录添加到知识库id
144
+					deptid:depId,//单位id
145
+					id:ids,//知识库id
146
+					key:$('#key').val(),//关键字
147
+					title:$('#title').val(),//事件名称
148
+					maindept:$('#maindept').val(),//主办单位
149
+					publicphone1:$('#publicphone1').val(),//公开电话1
150
+					publicphone2:$('#publicphone2').val(),//公开电话2
151
+					privatephone1:$('#privatephone1').val(),//内部电话1
152
+					privatephone2:$('#privatephone2').val(),//内部电话2
153
+					points:$('#points').val(),//询问要点
154
+					baseanswer:$('#baseanswer').val(),//标准话术
155
+					endanswer:$('#endanswer').val(),//结案参考
156
+					dealtype:$('#dealtype').val(),//办理方式
157
+					legallimittime:$('#legallimittime').val(),//法定办结时限
158
+					promiselimittime:$('#promiselimittime').val(),//承诺办结时限
159
+//					ispay: $('input[name="ispay"]:checked ').val(),//是否收费
160
+					issubmit: issubmit,//是否审核
161
+//					isurgent: $('input[name="isUrgency"]:checked ').val(),//是否紧急事项
162
+					isurgent: isurgent,//是否紧急事项 1是 0 否
163
+					paymoney: a,//收费标准
164
+					officeaddress: $('#officeaddress').val(),//办公地点
165
+					serobject: $('#serobject').val(),//办理对象
166
+					busline: $('#busline').val(),//乘车路线
167
+					officetime: $('#officetime').val(),//办公时间
168
+					otherdept: $('#otherdept').val(),//	协办单位
169
+					otherpublicphone: $('#otherpublicphone').val(),//	协办单位公开电话
170
+					otherprivatephone: $('#otherprivatephone').val(),//协办单位内部电话
171
+					remark: $('#remark').val(),//备注
172
+//					baseon: encodeURIComponent(baseon.html()),//设定依据
173
+//					process: encodeURIComponent(process.html()),//办理流程
174
+//					material: encodeURIComponent(material.html()),//办理材料
175
+//					template: encodeURIComponent(template.html()),//办理结果样本
176
+//					payinfo: encodeURIComponent(payinfo.html()),//收费标准及依据
177
+					files: $('#file').val() //收费标准及依据
178
+				},
179
+				success:function(data){
180
+					if(data.state.toLowerCase()=='success'){
181
+						debugger
182
+						var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
183
+						parent.layer.close(index); //再执行关闭  
184
+						parent.layer.msg(data.message); //再执行关闭  
185
+						parent.$('#table1').bootstrapTable('refresh'); //再执行关闭  
186
+						parent.$('#orderlist').bootstrapTable('refresh'); //再执行关闭  
187
+					}
188
+					
189
+				}
190
+			});
191
+		}
192
+	    //获取知识库详情
193
+	  if(ids){
194
+	  	 $.ajax({
195
+						type:"get",
196
+						url:huayi.config.callcenter_url +"Repository/GetRepository",
197
+						async:true,
198
+						dataType:'json',
199
+						data:{
200
+							token: $.cookie("token"),
201
+							id:ids
202
+						},
203
+						success:function(result){
204
+							if(result.state.toLowerCase()=='success'){
205
+								var con=result.data.data;
206
+								$('#key').val(con.F_Key);//关键字
207
+								$('#title').val(con.F_Title);//事件名称
208
+								$('#maindept').val(con.F_MainDept);//主办单位
209
+								$('#publicphone1').val(con.F_PublicPhone1);//公开电话1
210
+								$('#publicphone2').val(con.F_PublicPhone2);//公开电话2
211
+								$('#privatephone1').val(con.F_PrivatePhone1);//内部电话1
212
+								$('#privatephone2').val(con.F_PrivatePhone2);//内部电话2
213
+								$('#points').val(con.F_Points);//询问要点
214
+								$('#baseanswer').val(con.F_BaseAnswer);//标准话术
215
+								$('#endanswer').val(con.F_EndAnswer);//结案参考
216
+								$('#dealtype').val(con.F_DealType);//办理方式
217
+								$('#legallimittime').val(con.F_LegalLimitTime);//法定办结时限
218
+								$('#promiselimittime').val(con.F_PromiseLimitTime);//承诺办结时限
219
+//								$('input[name="ispay"]:checked ').val(F_PayMoney);//是否收费
220
+//								$('input[name="ispay"][value="'+con.F_IsPay+'"]').prop("checked","checked"),//是否收费
221
+								$('input[name="isUrgency"][value="'+con.F_IsPay+'"]').prop("checked","checked"),//是否紧急事项
222
+								$('#paymoney').val(con.F_PayMoney);//收费标准
223
+								$('#officeaddress').val(con.F_OfficeAddress);//办公地点
224
+								$('#serobject').val(con.F_Object);//办理对象
225
+								$('#busline').val(con.F_BusLine);//乘车路线
226
+								$('#officetime').val(con.F_OfficeTime);//办公时间
227
+								$('#otherdept').val(con.F_OtherDept);//	协办单位
228
+								$('#otherpublicphone').val(con.F_OtherPublicPhone);//	协办单位公开电话
229
+								$('#otherprivatephone').val(con.F_OtherPrivatePhone);//协办单位内部电话
230
+								$('#remark').val(con.F_Remark);//备注
231
+//								baseon.html(con.F_BaseOn);
232
+//								process.html(con.F_Process);
233
+//								material.html(con.F_Material);
234
+//								template.html(con.F_Template);
235
+//								payinfo.html(con.F_PayInfo);
236
+								depId=con.F_DeptId;
237
+								$(result.data.file).each(function(k,q){
238
+										var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName.substring(19) +'<i class="fa fa-remove del_file"></i></span>'
239
+										$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
240
+											event.stopPropagation();
241
+											$(this).parent().remove();
242
+												file_num()
243
+												console.log($('.fileBox').find('.del_file'))
244
+										})
245
+										file_num()
246
+									})
247
+													
248
+							}
249
+												
250
+						}
251
+			});
252
+			
253
+	  }
254
+	  
255
+	
256
+})
257
+		
258
+		//上传文件
259
+		function upload() {
260
+			var Files = document.getElementById("upFile").files;
261
+			if(Files.length > 0) {
262
+				var formData = new FormData();
263
+				for(var i = 0; i < Files.length; i++) {
264
+					formData.append('file' + i, Files[i]);;
265
+				}
266
+				console.log(formData)
267
+				formData.append("token", $.cookie("token"));
268
+				var typeName=Files[0].name.split('.')[1];
269
+                if (typeName=="png"||typeName=='jpg'||typeName=='mp4'||typeName=='mp3'||typeName=='pdf'||typeName=='doc'||typeName=='docx'||typeName=='xls'||typeName=='xlsx') {
270
+					$.ajax({
271
+						url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
272
+						type: "POST",
273
+						data: formData,
274
+						/**
275
+						 *必须false才会自动加上正确的Content-Type
276
+						 */
277
+						contentType: false,
278
+						/**
279
+						 * 必须false才会避开jQuery对 formdata 的默认处理
280
+						 * XMLHttpRequest会对 formdata 进行正确的处理
281
+						 */
282
+						processData: false,
283
+						success: function(result) {
284
+							document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
285
+							$("#upFile").change(function() {
286
+								upload();
287
+							});
288
+							var r = $.parseJSON(result);
289
+							if(r.state.toLowerCase() == "success") {
290
+								//								$(".fjnr").text(r.data[0].F_FileName);
291
+								var a = r.data;
292
+								$(a).each(function(i, n) {
293
+									var strs = '<span class="files" fiel-num="' + n.F_FileId + '">' + n.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
294
+									$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event) {
295
+										event.stopPropagation();
296
+										$(this).parent().remove();
297
+										file_num()
298
+									})
299
+								})
300
+								file_num()
301
+							}
302
+						}
303
+					});
304
+				}else{
305
+		    		layer.msg("格式不正确");
306
+		    	}
307
+			} else {
308
+				layer.confirm('请上传文件!', {
309
+					btn: ['确定']
310
+				});
311
+			}
312
+		}
313
+		//上传文件隐藏域值
314
+		function file_num() {
315
+			var str = '';
316
+			var Str;
317
+			$('.fileBox .files').each(function(j, m) {
318
+				var aa = $(m).attr("fiel-num")
319
+				console.log(aa);
320
+				str += aa + ",";
321
+				Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
322
+			})
323
+			$("#file").val(Str);
324
+		}
325
+		

+ 341 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/js/repositoryDrafts.js

@@ -0,0 +1,341 @@
1
+ var mySwiper = new Swiper ('.swiper-container', {
2
+//					    direction: 'vertical',
3
+//					    loop: true,
4
+					    // 如果需要分页器
5
+					    pagination: {
6
+					      el: '.swiper-pagination',
7
+					       clickable: true,
8
+					    },
9
+					  })        
10
+			var token = $.cookie("token");
11
+        	var table = $('#table1');
12
+        	 $('#depID').val(0);
13
+        	$(document).ready(function(){
14
+//      		$('#firstOne').trigger("click");
15
+				//右侧搜索事件
16
+				bindtree();
17
+	        	initTable($('#depID').val());
18
+	        	$('#rightSearch').click(function(){
19
+	        			initTable($('#depID').val());
20
+	        	})
21
+				function initTable(ids) {
22
+		            //先销毁表格
23
+		            table.bootstrapTable('destroy');
24
+		            //初始化表格,动态从服务器加载数据
25
+		            table.bootstrapTable({
26
+		                method: "get", //使用get请求到服务器获取数据
27
+		                url: huayi.config.callcenter_url + "Repository/GetList", //获取数据的Servlet地址
28
+		                contentType: "application/x-www-form-urlencoded", striped: true,
29
+		                striped: true, //表格显示条纹
30
+		                pagination: true, //启动分页
31
+		                pageSize: 10, //每页显示的记录数
32
+		                pageNumber: 1, //当前第几页
33
+		                pageList: [10, 15, 25], //记录数可选列表
34
+		                search: false, //是否启用查询
35
+		                showColumns: false, //显示下拉框勾选要显示的列
36
+		                showRefresh: false, //显示刷新按钮
37
+		                sidePagination: "server", //表示服务端请求
38
+		                //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
39
+		                //设置为limit可以获取limit, offset, search, sort, order
40
+		                queryParamsType: "undefined",
41
+		                queryParams: function queryParams(params) { //设置查询参数
42
+		                    var param = {
43
+		                        page: params.pageNumber,
44
+		                        pagesize: params.pageSize,
45
+		                        token: token,
46
+		                        deptid:ids,
47
+		                        type:0,
48
+		                        key:$('.rightSearchKey').val(),
49
+//								starttime:	否	string	开始时间 (2017-01-09)
50
+//								endtime:
51
+		                    };
52
+		                    return param;
53
+		                },
54
+		                onLoadSuccess: function () { //加载成功时执行
55
+		                    //layer.msg("加载成功");
56
+		                },
57
+		                onLoadError: function () { //加载失败时执行
58
+		                    //layer.msg("加载数据失败", { time: 1500, icon: 2 });
59
+		                }
60
+	            });
61
+	        }
62
+        		function bindtree() {
63
+			    $.getJSON(huayi.config.callcenter_url + "Department/GetDeptList", { "token": $.cookie("token") }, function (result) {
64
+			        if (result.state.toLowerCase() == "success") {
65
+			            tree = $.fn.zTree.init($("#treeDemo"), setting1, result.data);
66
+			        }
67
+			    })
68
+			}
69
+			//获取所属部门
70
+			var setting1 = {
71
+					data: {
72
+						key: {
73
+							name: "F_DeptName"
74
+						},
75
+						simpleData: {
76
+							enable: true,
77
+							idKey: "F_DeptId",
78
+							pIdKey: "F_PartentId",
79
+							rootPId: 0
80
+						}
81
+					},
82
+					callback: {
83
+						onClick: zTreeOnClick
84
+					}
85
+				};
86
+			function zTreeOnClick(event, treeId, treeNode) {
87
+				$('#urgent').css('color','red');
88
+				$('#policies').css('color','red');
89
+				$('.polices').css('display','none');
90
+        		$('.addTo').css('display','block');
91
+				$('#depID').val('');
92
+			    if (treeNode.level >= 2) {
93
+			    	$('.mechanism').css('visibility','visible');
94
+			    	var depId=treeNode.F_DeptId;
95
+					$('#depID').val(depId);
96
+					$.getJSON(huayi.config.callcenter_url + "Department/GetDept", { id:depId,"token": $.cookie("token") }, function (result) {
97
+				        if (result.state.toLowerCase() == "success") {
98
+				            $('#mechanism').val(result.data.F_Remark);
99
+				        }
100
+				   })
101
+			        initTable(depId);
102
+			    }
103
+			    
104
+			};
105
+//      		if($('.allAdd').hasClass('active')){
106
+//      			$('.addTo').hide();
107
+//      		}else{
108
+//      			$('.addTo').show();
109
+//      		}
110
+        		
111
+        		$('.unitList li').click(function(){
112
+        			$('.unitList li').removeClass('active')
113
+        			$(this).addClass('active');
114
+    				if($('.allAdd').hasClass('active')){
115
+	        			$('.addTo').hide();
116
+	        		}else{
117
+	        			$('.addTo').show();
118
+	        		}
119
+        			var depId=$(this).attr('data-id');
120
+        			var keyWord=$(this).find('div').html();
121
+        			$('.rightTabKey').html(keyWord);
122
+        			$('#depID').val(depId);
123
+        			initTable(depId);
124
+        		})
125
+        		
126
+        		//左侧单位鼠标移入效果
127
+        		$('.unitList li').hover(function(){
128
+        			$(this).addClass('acs');
129
+        			
130
+        		},function(){
131
+        			$(this).removeClass('acs');
132
+        		})
133
+        		//右侧关键字鼠标移入效果
134
+        		$('.keyList li').hover(function(){
135
+        			$('.keyList li').removeClass('active')
136
+        			$(this).addClass('active');
137
+        			
138
+        		},function(){
139
+        			$(this).removeClass('active');
140
+        		})
141
+        		$('.addTo').click(function(){
142
+        			var depid=$('#depID').val();
143
+        			if(!depid||depid==0){
144
+        				layer.msg('请选择一个承办单位');
145
+        				return;
146
+        			}
147
+        			goAdd(depid)
148
+        			
149
+        		})
150
+        		//紧急事件添加
151
+        		$('#urgent').click(function(){
152
+        			$('#depID').val('99999');
153
+        			$('.mechanism').css('visibility','hidden');
154
+        			$('.polices').css('display','none');
155
+        			$('.addTo').css('display','block');
156
+        			$('#policies').css('color','red');
157
+        			$('#urgent').css('color','#048aad');
158
+        			$('#mechanism').val('');
159
+        			initTable($('#depID').val());
160
+        		})
161
+        		//政策法规添加
162
+        		$('#policies').click(function(){
163
+        			$('#depID').val('100000');
164
+        			$('.mechanism').css('visibility','hidden');
165
+        			$('.polices').css('display','block');
166
+        			$('.addTo').css('display','none');
167
+        			$('#urgent').css('color','red');
168
+        			$('#policies').css('color','#048aad');
169
+        			$('#mechanism').val('');
170
+        			initTable($('#depID').val());
171
+        		})
172
+        		$('.polices').click(function(){
173
+        			var depid=$('#depID').val();
174
+        			policesAdd(depid)
175
+        			
176
+        		})
177
+        		//机构职能保存
178
+        		$('.btn_save').click(function(){
179
+        			if($('#depID').val()==0||$('#depID').val()==99999||$('#depID').val()==100000){
180
+        				layer.msg('请选择一个承办单位');
181
+        				return;
182
+        			}
183
+        			$.ajax({
184
+						type: "post",
185
+						url: huayi.config.callcenter_url + "Department/UpdateDeptRemark",
186
+						async: true,
187
+						dataType: 'json',
188
+						data: {
189
+						    token: $.cookie("token"),
190
+							id: $('#depID').val(),
191
+							remark:$('#mechanism').val(),
192
+						},
193
+						success: function(data) {
194
+							if(data.state.toLowerCase() == 'success') {
195
+								layer.msg("保存成功!");
196
+//								location=location
197
+							}
198
+						}
199
+					});
200
+        		})
201
+        		function policesAdd(ids){
202
+					//iframe窗
203
+				    layer.open({
204
+				      	type: 2,
205
+				      	title: '新增知识库',
206
+				      	area: ['70%', '60%'],
207
+				      	content: 'policesAdd.html?depId='+ ids +''
208
+				    });
209
+				}
210
+        		function goAdd(ids){
211
+					//iframe窗
212
+				    layer.open({
213
+				      	type: 2,
214
+				      	title: '新增知识库',
215
+				      	area: ['70%', '60%'],
216
+				      	content: 'newRepositoryAdd.html?depId='+ ids +''
217
+				    });
218
+				}
219
+        	})
220
+        	//操作
221
+			function CZ(val,row){
222
+				var Rows = row.Buttons;
223
+	            var html = '';
224
+	            for (var i = 0; i < Rows.length; i++) {
225
+	
226
+	                var html1 = huayi.config.kapArr[Rows[i].key * 1 - 1];
227
+	                if (html1) {
228
+	                    html1 = html1.replace("data", row.F_Id);
229
+	                    html1 = html1.replace("data_id", row.F_DeptId);
230
+	                }
231
+	                html += html1;
232
+	            }
233
+	            return html;
234
+				
235
+	        }
236
+			//详情
237
+			function goDetail(ids,DeptId){
238
+				if(DeptId==100000){
239
+					layer.open({
240
+				      	type: 2,
241
+				      	title: '查看知识库详情',
242
+				      	area: ['70%', '60%'],
243
+				      	maxmin:true,
244
+				      	content: 'policiesDetails.html?ids='+ ids
245
+				    });
246
+				}else{
247
+					//iframe窗
248
+				    layer.open({
249
+				      	type: 2,
250
+				      	title: '查看知识库详情',
251
+				      	area: ['70%', '60%'],
252
+				      	maxmin:true,
253
+				      	content: 'newRepositoryDetail.html?ids='+ ids+'&&DeptId='+DeptId
254
+				    });
255
+				}
256
+					
257
+			}
258
+			//提交
259
+			function tj(id) {
260
+				var laye = layer.confirm('确定提交?', {
261
+					btn: ['确定', '取消'] //可以无限个按钮
262
+				}, function() {
263
+					//按钮【按钮一】的回调
264
+					$.ajax({
265
+						type: "post",
266
+						url: huayi.config.callcenter_url + "Repository/OptRep",
267
+						async: true,
268
+						dataType: 'json',
269
+						data: {
270
+						    token: $.cookie("token"),
271
+							repid: id,
272
+							type:3
273
+						},
274
+						success: function(data) {
275
+							if(data.state.toLowerCase() == 'success') {
276
+								layer.msg("提交成功!");
277
+								layer.close(laye);
278
+								table.bootstrapTable('refresh');
279
+							}
280
+						}
281
+					});
282
+				}, function(index) {
283
+					//按钮【按钮二】的回调
284
+					layer.close(laye)
285
+				});
286
+			}
287
+			//编辑
288
+			function goEdit(ids,DeptId){
289
+				if(DeptId==100000){
290
+					 //iframe窗
291
+				    layer.open({
292
+				      	type: 2,
293
+				      	title: '编辑知识库',
294
+				      	area: ['70%', '60%'],
295
+				      	maxmin:true,
296
+				      	content: 'policesAdd.html?ids='+ ids +'&depId='+$('#depID').val() 
297
+				    });
298
+				}else{
299
+					//iframe窗
300
+				    layer.open({
301
+				      	type: 2,
302
+				      	title: '编辑知识库',
303
+				      	area: ['70%', '60%'],
304
+				      	maxmin:true,
305
+//				      	content: 'newRepositoryAdd.html?ids='+ ids +'&depId='+$('#depID').val()
306
+				      	content: 'newRepositoryAdd.html?ids='+ ids +'&depId='+DeptId 
307
+				    });
308
+				}
309
+						
310
+			}
311
+			//删除
312
+			function goDel(id) {
313
+				var arr=[];
314
+				arr.push(id);
315
+				var laye = layer.confirm('您确定要删除吗?', {
316
+					btn: ['确定', '取消'] //可以无限个按钮
317
+				}, function() {
318
+					//按钮【按钮一】的回调
319
+					$.ajax({
320
+						type: "post",
321
+						url: huayi.config.callcenter_url + "Repository/DelRepository",
322
+						async: true,
323
+						dataType: 'json',
324
+						data: {
325
+						    token: $.cookie("token"),
326
+							ids: arr
327
+						},
328
+						success: function(data) {
329
+							if(data.state.toLowerCase() == 'success') {
330
+								layer.msg("删除成功!");
331
+								layer.close(laye);
332
+								table.bootstrapTable('refresh');
333
+							}
334
+						}
335
+					});
336
+				}, function(index) {
337
+					//按钮【按钮二】的回调
338
+					layer.close(laye)
339
+				});
340
+			}
341
+			

+ 162 - 111
WebUI/CallCenterWeb.UI/zhiShiKu/newRepository.html

@@ -1,116 +1,167 @@
1
-<!DOCTYPE html>
1
+<!DOCTYPE html>
2 2
 <html>
3 3
 
4
-<head>
5
-    <meta charset="UTF-8">
6
-    <script src="../Script/Common/huayi.load.js"></script>
7
-    <script src="../Script/Common/huayi.config.js"></script>
8
-    <link rel="stylesheet" href="css/swiper.min.css" />
9
-    <link rel="stylesheet" href="../css/init.css" />
10
-    <link rel="stylesheet" href="css/newRepository.css" />
11
-    <title>新版知识库</title>
12
-    <style>
13
-        .swiper-container {
14
-            width: 100%;
15
-            /*height: 300px;*/
16
-        }
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<script src="../Script/Common/huayi.load.js"></script>
7
+		<script src="../Script/Common/huayi.config.js"></script>
8
+		<link rel="stylesheet" href="css/swiper.min.css" />
9
+		<link rel="stylesheet" href="../css/init.css" />
10
+		<link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
11
+		<link rel="stylesheet" href="css/newRepository.css" />
12
+		<title>新版知识库</title>
13
+		<style>
14
+			.swiper-container {
15
+			    width: 100%;
16
+			    /*height: 300px;*/
17
+			}
18
+			.swiper-pagination-bullet{
19
+				height: 15px;
20
+				width: 15px;
21
+			}
22
+			#policies,
23
+			#urgent{
24
+				color: red;
25
+				font-size: 14px;
26
+				font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif;
27
+				padding-left: 25px;
28
+				cursor: pointer;
29
+			}
30
+			.ztree{
31
+				padding-top: 0px;
32
+			}
33
+			.ztree *{
34
+				font-size: 14px;
35
+			}
36
+			.treeCon{
37
+				padding-top: 5px;
38
+				position: relative;
39
+			}
40
+			.mechanism{
41
+				padding: 20px 0;
42
+				visibility: hidden;
43
+			}
44
+			#mechanism{
45
+				width: 70%;
46
+				height: 40px;
47
+				vertical-align: middle;
48
+			}
49
+			.line {
50
+				border: none;
51
+			}
52
+			img{
53
+				width: 14px;
54
+				height: 14px;
55
+			}
56
+			.img1{
57
+				position: absolute;
58
+				top: 9px;
59
+				left: 7px;
60
+			}
61
+			.img2{
62
+				position: absolute;
63
+				top: 28px;
64
+				left: 7px;
65
+			}
66
+			.daoHang{
67
+				border-bottom: none;
68
+			}
69
+		</style>
70
+	</head>
17 71
 
18
-        .swiper-pagination-bullet {
19
-            height: 15px;
20
-            width: 15px;
21
-        }
22
-    </style>
23
-</head>
24
-
25
-<body class="gray-bg">
26
-    <div class="container-fluid wrapper-content animated fadeInRight">
27
-        <div class="daoHang clearfix">
28
-            <div class="dhLeft">
29
-                <sapn>
30
-                    <i class="syIcon"></i>位置:
31
-                    <a id="ReIndex">首页</a>&gt;
32
-                    <a href="javaScript:;">知识库</a>&gt;
33
-                    <a href="" class="nowPosition">新版知识库</a>
34
-                </sapn>
35
-            </div>
36
-            <div class="dhRight">
37
-                <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
38
-            </div>
39
-        </div>
40
-        <div class="reposCon clearfix" style="margin-top:5px;">
41
-            <!--左侧-->
42
-            <div class="conleft col-md-3">
43
-                <div class="search " style="height: 30px;">
44
-                    <!--<div class="secon clearfix">
45
-                        <p class="secl"><input type="text" placeholder="请输入关键字" class="searCon" /></p><button href="javaScript:;" class="stb"></button>
46
-                    </div>-->
47
-                </div>
48
-                <p style="color: #4c4c4c;font-size: 14px; margin: 10px 0;">服务单位列表</p>
49
-                <div class="line"></div>
50
-                <div class="siderCon">
51
-                    <div class="swiper-container">
52
-                        <div class="swiper-wrapper">
53
-                            <!--<div class="swiper-slide swiper-no-swiping">
54
-                                <ul class="unitList clearfix">
55
-                                    <li data-id="0" class="active allAdd">
56
-                                        <a href="javaScript:;" title="全部">
57
-                                            <i class="cityGovernment"></i>
58
-                                            <div>全部</div>
59
-                                        </a>
60
-                                    </li>
61
-                                </ul>
62
-                            </div>-->
63
-                        </div>
64
-                        <div class="swiper-pagination"></div>
65
-                    </div>
66
-                </div>
67
-            </div>
68
-
69
-            <!--右侧-->
70
-            <div class="conRight col-md-9">
71
-                <div class="search clearfix">
72
-                    <div class="secon clearfix" style="width: 80%; float:left;">
73
-                        <p class="secl"><input type="text" placeholder="请输入关键字" class="searCon rightSearchKey" /></p><button href="javaScript:;" class="stb" id="rightSearch"></button>
74
-                    </div>
75
-                    <button class="btns addTo" style="float: right;">添加</button>
76
-                </div>
77
-                <!--<ul class="keyList clearfix" style="height: 38px;">
78
-                    <li>市民反馈问题 </li>
79
-                    <li>车辆管理条例 </li>
80
-                    <li>市长重要讲话   </li>
81
-                    <li>社保资料 </li>
82
-                    <li> 投诉  </li>
83
-                    <li> 建议  </li>
84
-                    <li>鹤壁政要   </li>
85
-                    <li>鹤壁政府 </li>
86
-                    <li>公积金 </li>
87
-                    <li>市长热线  </li>
88
-                    <li>鹤壁政府  </li>
89
-                </ul>-->
90
-                <p style="color: #4c4c4c;font-size: 14px; margin: 10px 0;" class="rightTabKey">市教育体育局</p>
91
-                <div class="line"></div>
92
-
93
-                <div class="tableBox">
94
-                    <table id="table1" data-row-style="rowStyle" data-classes="table table-no-bordered" data-query-params="queryParams">
95
-                        <thead>
96
-                            <tr>
97
-                                <th data-field="F_Title" data-align="center">事件名称</th>
98
-                                <th data-field="DeptName" data-align="center">单位名称</th>
99
-                                <th data-field="F_CreateTime" data-align="center">时间</th>
100
-                                <th data-field="UserName" data-align="center">创建人</th>
101
-                                <th data-formatter="CZ" data-align="center">操作</th>
102
-                            </tr>
103
-                        </thead>
104
-                    </table>
105
-                </div>
106
-
107
-            </div>
108
-            <input type="hidden" id="depID" />
109
-        </div>
110
-    </div>
111
-    <script src="js/swiper.min.js"></script>
112
-    <script src="js/newRepository.js"></script>
113
-
114
-</body>
72
+	<body class="gray-bg">
73
+		<div class="container-fluid wrapper-content animated fadeInRight">
74
+			<div class="daoHang clearfix">
75
+				<div class="dhLeft">
76
+					<sapn><i class="syIcon"></i>位置:
77
+						<a id="ReIndex">首页</a>&gt;
78
+						<a href="javaScript:;">知识库</a>&gt;
79
+						<a href="" class="nowPosition">新版知识库</a>
80
+					</sapn>
81
+				</div>
82
+				<div class="dhRight">
83
+					<a href="" title="刷新"><i class="fa fa-refresh"></i></a>
84
+				</div>
85
+			</div>
86
+			<div class="reposCon clearfix">
87
+				<!--左侧-->
88
+				<div class="conleft col-md-3">
89
+					<!--<div class="search " style="height: 30px;">-->
90
+						<!--<div class="secon clearfix">
91
+							<p class="secl"><input type="text" placeholder="请输入关键字" class="searCon" /></p><button href="javaScript:;" class="stb"></button>
92
+						</div>-->
93
+					<!--</div>-->
94
+					<p style="color: #4c4c4c;font-size: 14px; margin: 10px 0;">服务单位列表</p>
95
+					<div class="line"></div>
96
+					<div class="treeCon">
97
+						<img src="../img/IVR2.png"/ class="img1">
98
+						<span id="urgent">
99
+							紧急公告
100
+						</span>
101
+						<br />
102
+						<img src="../img/IVR2.png"/ class="img2">
103
+						<span id="policies">
104
+							政策法规
105
+						</span>
106
+	                    <ul id="treeDemo" class="ztree">
107
+	                        <!--类名为ztree是必须的-->
108
+	                    </ul>
109
+	                </div>
110
+				</div>
111
+				
112
+				<!--右侧-->
113
+				<div class="conRight col-md-9">
114
+					<div class="search clearfix">
115
+						<div class="secon clearfix" style="width: 80%; float:left;">
116
+							<p class="secl"><input type="text" placeholder="请输入关键字" class="searCon rightSearchKey" /></p><button href="javaScript:;" class="stb" id="rightSearch"></button></div>
117
+					        <button class="btns addTo" style="float: right;">添加</button>
118
+					        <button class="btns polices" style="float: right;display: none;">添加</button>
119
+					</div>
120
+					<div class="mechanism" >
121
+						机构职能:
122
+						<textarea type="" name="" id="mechanism" value="" ></textarea>
123
+						<button class="btns btn_save" >保存</button>
124
+					</div>
125
+					<!--<ul class="keyList clearfix" style="height: 38px;">
126
+						<li>市民反馈问题 </li>
127
+						<li>车辆管理条例 </li>
128
+						<li>市长重要讲话   </li>
129
+						<li>社保资料 </li>
130
+						<li> 投诉  </li>
131
+						<li> 建议  </li>
132
+						<li>鹤壁政要   </li>
133
+						<li>鹤壁政务 </li>
134
+						<li>公积金 </li>
135
+						<li>市长热线  </li>
136
+						<li>鹤壁政务  </li>
137
+					</ul>-->
138
+					<!--<p style="color: #4c4c4c;font-size: 14px; margin: 10px 0;" class="rightTabKey">市教育体育局</p>-->
139
+					<div class="line"></div>
140
+					
141
+					<div class="tableBox">
142
+						 <table id="table1" data-row-style="rowStyle" data-classes="table table-no-bordered" data-query-params="queryParams">
143
+			                <thead>
144
+			                    <tr>
145
+			                    	<th data-field="F_Title" data-align="center">标题</th>
146
+			                        <!--<th data-field="F_Title" data-align="center">事件名称</th>-->
147
+			                        <th data-field="F_MainDept" data-align="center">单位名称</th>
148
+			                        <th data-field="F_CreateTime" data-align="center">时间</th>
149
+			                        <th data-field="UserName" data-align="center">创建人</th>
150
+			                        <th data-formatter="CZ" data-align="center">操作</th>
151
+			                    </tr>
152
+			                </thead>
153
+			            </table>
154
+					</div>
155
+					
156
+				</div>
157
+				<input type="hidden" id="depID"/>
158
+				<input type="hidden" name="" id="remark" value="" />
159
+			</div>
160
+		</div>
161
+		<script src="js/swiper.min.js"></script>
162
+		<script src="../js/zTree/jquery.ztree.core.js"></script>
163
+		<script src="js/newRepository.js"></script>
164
+		
165
+	</body>
115 166
 
116 167
 </html>

+ 116 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/newRepository20200110.html

@@ -0,0 +1,116 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <script src="../Script/Common/huayi.load.js"></script>
7
+    <script src="../Script/Common/huayi.config.js"></script>
8
+    <link rel="stylesheet" href="css/swiper.min.css" />
9
+    <link rel="stylesheet" href="../css/init.css" />
10
+    <link rel="stylesheet" href="css/newRepository.css" />
11
+    <title>新版知识库</title>
12
+    <style>
13
+        .swiper-container {
14
+            width: 100%;
15
+            /*height: 300px;*/
16
+        }
17
+
18
+        .swiper-pagination-bullet {
19
+            height: 15px;
20
+            width: 15px;
21
+        }
22
+    </style>
23
+</head>
24
+
25
+<body class="gray-bg">
26
+    <div class="container-fluid wrapper-content animated fadeInRight">
27
+        <div class="daoHang clearfix">
28
+            <div class="dhLeft">
29
+                <sapn>
30
+                    <i class="syIcon"></i>位置:
31
+                    <a id="ReIndex">首页</a>&gt;
32
+                    <a href="javaScript:;">知识库</a>&gt;
33
+                    <a href="" class="nowPosition">新版知识库</a>
34
+                </sapn>
35
+            </div>
36
+            <div class="dhRight">
37
+                <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
38
+            </div>
39
+        </div>
40
+        <div class="reposCon clearfix" style="margin-top:5px;">
41
+            <!--左侧-->
42
+            <div class="conleft col-md-3">
43
+                <div class="search " style="height: 30px;">
44
+                    <!--<div class="secon clearfix">
45
+                        <p class="secl"><input type="text" placeholder="请输入关键字" class="searCon" /></p><button href="javaScript:;" class="stb"></button>
46
+                    </div>-->
47
+                </div>
48
+                <p style="color: #4c4c4c;font-size: 14px; margin: 10px 0;">服务单位列表</p>
49
+                <div class="line"></div>
50
+                <div class="siderCon">
51
+                    <div class="swiper-container">
52
+                        <div class="swiper-wrapper">
53
+                            <!--<div class="swiper-slide swiper-no-swiping">
54
+                                <ul class="unitList clearfix">
55
+                                    <li data-id="0" class="active allAdd">
56
+                                        <a href="javaScript:;" title="全部">
57
+                                            <i class="cityGovernment"></i>
58
+                                            <div>全部</div>
59
+                                        </a>
60
+                                    </li>
61
+                                </ul>
62
+                            </div>-->
63
+                        </div>
64
+                        <div class="swiper-pagination"></div>
65
+                    </div>
66
+                </div>
67
+            </div>
68
+
69
+            <!--右侧-->
70
+            <div class="conRight col-md-9">
71
+                <div class="search clearfix">
72
+                    <div class="secon clearfix" style="width: 80%; float:left;">
73
+                        <p class="secl"><input type="text" placeholder="请输入关键字" class="searCon rightSearchKey" /></p><button href="javaScript:;" class="stb" id="rightSearch"></button>
74
+                    </div>
75
+                    <button class="btns addTo" style="float: right;">添加</button>
76
+                </div>
77
+                <!--<ul class="keyList clearfix" style="height: 38px;">
78
+                    <li>市民反馈问题 </li>
79
+                    <li>车辆管理条例 </li>
80
+                    <li>市长重要讲话   </li>
81
+                    <li>社保资料 </li>
82
+                    <li> 投诉  </li>
83
+                    <li> 建议  </li>
84
+                    <li>鹤壁政要   </li>
85
+                    <li>鹤壁政府 </li>
86
+                    <li>公积金 </li>
87
+                    <li>市长热线  </li>
88
+                    <li>鹤壁政府  </li>
89
+                </ul>-->
90
+                <p style="color: #4c4c4c;font-size: 14px; margin: 10px 0;" class="rightTabKey">市教育体育局</p>
91
+                <div class="line"></div>
92
+
93
+                <div class="tableBox">
94
+                    <table id="table1" data-row-style="rowStyle" data-classes="table table-no-bordered" data-query-params="queryParams">
95
+                        <thead>
96
+                            <tr>
97
+                                <th data-field="F_Title" data-align="center">事件名称</th>
98
+                                <th data-field="DeptName" data-align="center">单位名称</th>
99
+                                <th data-field="F_CreateTime" data-align="center">时间</th>
100
+                                <th data-field="UserName" data-align="center">创建人</th>
101
+                                <th data-formatter="CZ" data-align="center">操作</th>
102
+                            </tr>
103
+                        </thead>
104
+                    </table>
105
+                </div>
106
+
107
+            </div>
108
+            <input type="hidden" id="depID" />
109
+        </div>
110
+    </div>
111
+    <script src="js/swiper.min.js"></script>
112
+    <script src="js/newRepository.js"></script>
113
+
114
+</body>
115
+
116
+</html>

+ 24 - 69
WebUI/CallCenterWeb.UI/zhiShiKu/newRepositoryAdd.html

@@ -49,7 +49,7 @@
49 49
 			    background: #f3f3f4;
50 50
 			    outline: none;
51 51
 		        border: 1px solid #e7e7e7;
52
-		        padding-left: 10px;
52
+		        /*padding-left: 10px;*/
53 53
 			}
54 54
 			.radio-inline input[type=radio]{
55 55
 				margin-top: 2px;
@@ -60,9 +60,11 @@
60 60
 			    background: #f3f3f4;
61 61
 			    border: 1px solid #e7e7e7;
62 62
 			    resize: none;
63
+			    padding: 0px;
64
+			    /*padding-left: 10px;*/
63 65
 			}
64 66
 			#scwj{
65
-				    background-color: #FFF;
67
+				background-color: #FFF;
66 68
 			    background-image: none;
67 69
 			    border: 1px solid #ccc;
68 70
 			    border-radius: 1px;
@@ -96,17 +98,21 @@
96 98
 			<div class="container-fluid wrapper-content animated fadeInRight">
97 99
 				<table class="table table-bordered table-condensed">
98 100
 					<tr>
99
-						<td width="100">关键词</td>
100
-						<td colspan="3"><input type="text" id="key"/></td>
101
+						<td width="100">标题</td>
102
+						<td colspan="3"> <input type="text" id="title" /></td>
101 103
 					</tr>
102 104
 					<tr>
103
-						<td width="100">事件名称</td>
104
-						<td colspan="3"> <input type="text" id="title" /></td>
105
+						<td width="100" height="100"> 参考答案</td>
106
+						<td colspan="3" height="100"> <textarea name="" rows="" cols="" id="endanswer"></textarea></td>
105 107
 					</tr>
106 108
 					<tr>
107
-						<td width="100">主办单位</td>
109
+						<td width="100">单位</td>
108 110
 						<td colspan="3"> <input type="text" id="maindept" /></td>
109 111
 					</tr>
112
+					<tr>
113
+						<td width="100"> 办公地点</td>
114
+						<td colspan="3"><textarea name="" rows="" cols="" id="officeaddress"></textarea></td>
115
+					</tr>
110 116
 					<tr >
111 117
 						<td rowspan="2" width="100">公开电话</td>
112 118
 						<td> <input type="text" id="publicphone1" /></td>
@@ -119,43 +125,11 @@
119 125
 						<td> <input type="text" id="privatephone2" /></td>
120 126
 					</tr>
121 127
 					<tr>
122
-						<td width="100" height="100"> 咨询要点</td>
123
-						<td colspan="3" height="100"> <textarea name="" rows="" cols="" id="points"></textarea></td>
124
-					</tr>
125
-					<tr>
126
-						<td width="100" height="100"> 标准话术</td>
127
-						<td colspan="3" height="100"> <textarea name="" rows="" cols="" id="baseanswer"></textarea></td>
128
-					</tr>
129
-					<tr>
130
-						<td width="100" height="100"> 结案参考</td>
131
-						<td colspan="3" height="100"> <textarea name="" rows="" cols="" id="endanswer"></textarea></td>
132
-					</tr>
133
-					<tr>
134 128
 						<td width="100"> 办理方式</td>
135 129
 						<td><input type="text" id="dealtype"/></td>
136
-						<td width="100"> 法定办结时限</td>
137
-						<td><input type="text" id="legallimittime" /></td>
138
-					</tr>
139
-					<tr>
140
-						<td width="100"> 是否收费</td>
141
-						<td> 
142
-						<label class="radio-inline">
143
-						  <input type="radio" name="ispay" id="ispay1" value="1"> 是
144
-						</label>
145
-						<label class="radio-inline">
146
-						  <input type="radio" name="ispay" id="ispay2" value="0"> 否
147
-						</label>
148
-						
149
-						
150
-						</td>
151
-						<td width="100"> 承诺办结时限</td>
152
-						<td><input type="text" id="promiselimittime" /></td>
153
-					</tr>
154
-					<tr>
155 130
 						<td width="100"> 收费标准</td>
156 131
 						<td> <input type="text" id="paymoney" /></td>
157
-						<td width="100"> 办公地点</td>
158
-						<td><textarea name="" rows="" cols="" id="officeaddress"></textarea></td>
132
+						
159 133
 					</tr>
160 134
 					<tr>
161 135
 						<td width="100"> 办理对象</td>
@@ -164,39 +138,17 @@
164 138
 						<td><textarea name="" rows="" cols=""id="busline"></textarea></td>
165 139
 					</tr>
166 140
 					<tr>
167
-						<td width="100"> 办公时间</td>
168
-						<td colspan="3">
169
-							<input type="text" id="officetime"/>
170
-							<!--<div class="form-group time-box">
171
-								<i class="tub fa fa-calendar"></i>
172
-								<input class="form-control" type="text"  placeholder="请选择开始时间">
173
-							</div>
174
-						-->
175
-						</td>
176
-					</tr>
177
-					<tr>
178
-						<td width="100" rowspan="2"> 协办单位</td>
179
-						<td rowspan="2"><input type="text" name="otherdept" id="otherdept" style="border: 0;" /></td>
180
-						<td width="100"> 公开电话</td>
181
-						<td><input type="text" id="otherpublicphone" /></td>
182
-					</tr>
183
-					<tr>
184
-						<td width="100"> 内部电话</td>
185
-						<td><input type="text" id="otherprivatephone" /></td>
186
-					</tr>
187
-					<tr>
188 141
 						<td width="100" height="100"> 备注</td>
189 142
 						<td colspan="3" height="100">
190
-							<!--<input type="text" />-->
191 143
 							<textarea name="" rows="" cols="" id="remark"></textarea>
192 144
 						</td>
193 145
 					</tr>
194
-					<!--<tr>
195
-						<td width="100" > 修改人</td>
196
-						<td></td>
197
-						<td width="100" > 修改日期</td>
198
-						<td></td>
199
-					</tr>-->
146
+					<tr class='mechanism'>
147
+						<td width="100" height="100"> 机构职能</td>
148
+						<td colspan="3" height="100">
149
+							<textarea name="" rows="" cols="" id="mechanism" disabled></textarea>
150
+						</td>
151
+					</tr>
200 152
 				</table>
201 153
 			
202 154
 					<ul class="tab_list clearfix">
@@ -241,7 +193,10 @@
241 193
 					</div>
242 194
 			
243 195
 			
244
-			   <p style="text-align: center;"><button class="btns save">确认保存</button></p>  
196
+			   <p style="text-align: center;">
197
+			   	<button class="btns save">保存</button>
198
+			   	<button class="btns savetj">提交</button>
199
+			   </p>  
245 200
 			
246 201
 			
247 202
 			</div>

+ 257 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/newRepositoryAdd20200110.html

@@ -0,0 +1,257 @@
1
+<!DOCTYPE html>
2
+<html>
3
+	<head>
4
+		<meta charset="UTF-8">
5
+		<script src="../Script/Common/huayi.load.js"></script>
6
+		<script src="../Script/Common/huayi.config.js"></script>
7
+		<link rel="stylesheet" href="../css/init.css" />
8
+		<title>新版知识库添加</title>
9
+		<style type="text/css">
10
+			ul,li{
11
+				padding: 0;
12
+				margin: 0;
13
+				list-style: none;
14
+			}
15
+			.tab_list{
16
+				border-bottom: 1px solid #d5d5d5;
17
+			}
18
+			.tab_list li{
19
+				padding: 10px 15px;
20
+				float: left;
21
+				color: #333333;
22
+				font-size: 14px;
23
+				position: relative;
24
+			}
25
+			.tab_list li.active{
26
+				color: #19aad0;
27
+			}
28
+			.tab_list li.active:after{
29
+				content: "";
30
+				width: 100%;
31
+				height: 2px;
32
+				background: #19aad0;
33
+				position: absolute;
34
+				bottom: -1px;
35
+				left: 0;
36
+			}
37
+			.tab_content{
38
+				font-size: 14px;
39
+				color: #4c4c4c;
40
+				padding: 15px 0;
41
+				/*text-indent: 28px;*/
42
+			}
43
+			.tab_content>div{
44
+				display: none;
45
+			}
46
+			.table tr td input[type="text"]{
47
+			    width: 100%;
48
+			    height: 34px;
49
+			    background: #f3f3f4;
50
+			    outline: none;
51
+		        border: 1px solid #e7e7e7;
52
+		        padding-left: 10px;
53
+			}
54
+			.radio-inline input[type=radio]{
55
+				margin-top: 2px;
56
+			}
57
+			.table tr td textarea{
58
+			    width: 100%;
59
+			    height: 100%;
60
+			    background: #f3f3f4;
61
+			    border: 1px solid #e7e7e7;
62
+			    resize: none;
63
+			}
64
+			#scwj{
65
+				    background-color: #FFF;
66
+			    background-image: none;
67
+			    border: 1px solid #ccc;
68
+			    border-radius: 1px;
69
+			    color: inherit;
70
+			    padding: 6px 12px!important;
71
+			}
72
+			.files{
73
+				    padding: 5px!important;
74
+			}
75
+			.time-box{
76
+			    position: relative;
77
+			    width: 197px!important;
78
+			    height: 34px;
79
+			    margin: 0;
80
+			}
81
+			.tub + input {
82
+			    padding-right: 30px;
83
+			    border: 1px solid #e5e6e7!important;
84
+			}
85
+			i.tub {
86
+			    position: absolute;
87
+			    right: 8px;
88
+			    top: 8px;
89
+			    font-size: 18px;
90
+			    color: #00a0ca;
91
+			}
92
+			
93
+		</style>
94
+	</head>
95
+		<body class="gray-bg">
96
+			<div class="container-fluid wrapper-content animated fadeInRight">
97
+				<table class="table table-bordered table-condensed">
98
+					<tr>
99
+						<td width="100">关键词</td>
100
+						<td colspan="3"><input type="text" id="key"/></td>
101
+					</tr>
102
+					<tr>
103
+						<td width="100">事件名称</td>
104
+						<td colspan="3"> <input type="text" id="title" /></td>
105
+					</tr>
106
+					<tr>
107
+						<td width="100">主办单位</td>
108
+						<td colspan="3"> <input type="text" id="maindept" /></td>
109
+					</tr>
110
+					<tr >
111
+						<td rowspan="2" width="100">公开电话</td>
112
+						<td> <input type="text" id="publicphone1" /></td>
113
+						<td rowspan="2" width="100">内部电话</td>
114
+						<td> <input type="text" id="privatephone1" /></td>
115
+						
116
+					</tr>
117
+					<tr>
118
+						<td>  <input type="text" id="publicphone2" /></td>
119
+						<td> <input type="text" id="privatephone2" /></td>
120
+					</tr>
121
+					<tr>
122
+						<td width="100" height="100"> 咨询要点</td>
123
+						<td colspan="3" height="100"> <textarea name="" rows="" cols="" id="points"></textarea></td>
124
+					</tr>
125
+					<tr>
126
+						<td width="100" height="100"> 标准话术</td>
127
+						<td colspan="3" height="100"> <textarea name="" rows="" cols="" id="baseanswer"></textarea></td>
128
+					</tr>
129
+					<tr>
130
+						<td width="100" height="100"> 结案参考</td>
131
+						<td colspan="3" height="100"> <textarea name="" rows="" cols="" id="endanswer"></textarea></td>
132
+					</tr>
133
+					<tr>
134
+						<td width="100"> 办理方式</td>
135
+						<td><input type="text" id="dealtype"/></td>
136
+						<td width="100"> 法定办结时限</td>
137
+						<td><input type="text" id="legallimittime" /></td>
138
+					</tr>
139
+					<tr>
140
+						<td width="100"> 是否收费</td>
141
+						<td> 
142
+						<label class="radio-inline">
143
+						  <input type="radio" name="ispay" id="ispay1" value="1"> 是
144
+						</label>
145
+						<label class="radio-inline">
146
+						  <input type="radio" name="ispay" id="ispay2" value="0"> 否
147
+						</label>
148
+						
149
+						
150
+						</td>
151
+						<td width="100"> 承诺办结时限</td>
152
+						<td><input type="text" id="promiselimittime" /></td>
153
+					</tr>
154
+					<tr>
155
+						<td width="100"> 收费标准</td>
156
+						<td> <input type="text" id="paymoney" /></td>
157
+						<td width="100"> 办公地点</td>
158
+						<td><textarea name="" rows="" cols="" id="officeaddress"></textarea></td>
159
+					</tr>
160
+					<tr>
161
+						<td width="100"> 办理对象</td>
162
+						<td><input type="text" id="serobject" /></td>
163
+						<td width="100"> 乘车路线</td>
164
+						<td><textarea name="" rows="" cols=""id="busline"></textarea></td>
165
+					</tr>
166
+					<tr>
167
+						<td width="100"> 办公时间</td>
168
+						<td colspan="3">
169
+							<input type="text" id="officetime"/>
170
+							<!--<div class="form-group time-box">
171
+								<i class="tub fa fa-calendar"></i>
172
+								<input class="form-control" type="text"  placeholder="请选择开始时间">
173
+							</div>
174
+						-->
175
+						</td>
176
+					</tr>
177
+					<tr>
178
+						<td width="100" rowspan="2"> 协办单位</td>
179
+						<td rowspan="2"><input type="text" name="otherdept" id="otherdept" style="border: 0;" /></td>
180
+						<td width="100"> 公开电话</td>
181
+						<td><input type="text" id="otherpublicphone" /></td>
182
+					</tr>
183
+					<tr>
184
+						<td width="100"> 内部电话</td>
185
+						<td><input type="text" id="otherprivatephone" /></td>
186
+					</tr>
187
+					<tr>
188
+						<td width="100" height="100"> 备注</td>
189
+						<td colspan="3" height="100">
190
+							<!--<input type="text" />-->
191
+							<textarea name="" rows="" cols="" id="remark"></textarea>
192
+						</td>
193
+					</tr>
194
+					<!--<tr>
195
+						<td width="100" > 修改人</td>
196
+						<td></td>
197
+						<td width="100" > 修改日期</td>
198
+						<td></td>
199
+					</tr>-->
200
+				</table>
201
+			
202
+					<ul class="tab_list clearfix">
203
+						<li class="active">设定依据</li>
204
+						<li>办理流程</li>
205
+						<li>办理材料</li>
206
+						<li>办理结果样本</li>
207
+						<li>收费标准及依据</li>
208
+						<li>附件</li>
209
+					</ul>
210
+					<div class="tab_content">
211
+						<div class="cons" style="display: block;">
212
+							<textarea name="" data-adaptheight id="baseon"  style="width: 100%;height: 300px;"></textarea> 
213
+						</div>
214
+						<div class="cons">
215
+							<textarea name="" data-adaptheight  id="process" style="width: 100%;height: 300px;"></textarea> 
216
+						</div>
217
+						<div class="cons">
218
+								<textarea name="" data-adaptheight id="material" style="width: 100%;height: 300px;"></textarea> 
219
+						</div>
220
+						<div class="cons">
221
+								<textarea name="" data-adaptheight id="template" style="width: 100%;height: 300px;"></textarea> 
222
+						</div>
223
+						<div class="cons">
224
+								<textarea name="" data-adaptheight id="payinfo" style="width: 100%;height: 300px;"></textarea> 
225
+						</div>
226
+						
227
+						<div class="cons">
228
+							<div class="fileBox">
229
+									<!--<span class="files">文件1<i class="fa fa-remove"></i></span>-->
230
+								</div>
231
+								<!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
232
+								<!--<span class="fjnr"></span>-->
233
+								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
234
+								<input class="input" type="button" value="上传" id="scwj" />
235
+								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
236
+								<input type="hidden" id="file" />
237
+								<span style="color:#FF0000; border: none;">
238
+	                            	(文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
239
+	                            </span>
240
+						</div>
241
+					</div>
242
+			
243
+			
244
+			   <p style="text-align: center;"><button class="btns save">确认保存</button></p>  
245
+			
246
+			
247
+			</div>
248
+			
249
+			
250
+			<script src="../js/kindeditor/kindeditor-all-min.js"></script>
251
+			<script src="../js/kindeditor/lang/zh-CN.js"></script>
252
+			<script src="../js/adjustHeight.js"></script>
253
+			<script src="../js/laydate/laydate.js"></script>
254
+			<script src="js/newRepositoryAdd.js"></script>
255
+			
256
+</body>
257
+</html>

+ 28 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/newRepositoryDetail.html

@@ -209,6 +209,12 @@
209 209
 						<td width="100" height="100"> 备注</td>
210 210
 						<td colspan="3" height="100"><textarea name="" rows="" cols=""  id="remark" readonly="readonly"></textarea> </td>
211 211
 					</tr>
212
+					<tr class='mechanism'>
213
+						<td width="100" height="100"> 机构职能</td>
214
+						<td colspan="3" height="100">
215
+							<textarea name="" rows="" cols="" id="mechanism" disabled></textarea>
216
+						</td>
217
+					</tr>
212 218
 					<!--<tr>
213 219
 						<td width="100" > 修改人</td>
214 220
 						<td></td>
@@ -285,6 +291,7 @@
285 291
 			<script>
286 292
 				
287 293
 				var ids=helper.request.queryString("ids");
294
+				var depId=helper.request.queryString("DeptId");
288 295
 				$(document).ready(function(){
289 296
 					$('.tab_list li').click(function(){
290 297
 					   var index=$(this).index();
@@ -292,6 +299,27 @@
292 299
 					   $('.tab_content>div').eq(index).show().siblings().hide();
293 300
 					   
294 301
 					})
302
+					if(depId&&depId!=99999&&depId!=0){
303
+				  	 $.ajax({
304
+							type:"get",
305
+							url:huayi.config.callcenter_url +"Department/GetDept",
306
+							async:true,
307
+							dataType:'json',
308
+							data:{
309
+								token: $.cookie("token"),
310
+								id:depId
311
+							},
312
+							success:function(result){
313
+								if(result.state.toLowerCase()=='success'){
314
+									var con=result.data;
315
+									$('#mechanism').val(con.F_Remark);
316
+								}
317
+													
318
+							}
319
+						});
320
+					}else{
321
+						$('.mechanism').css('display','none')
322
+					}
295 323
 					$.ajax({
296 324
 						type:"get",
297 325
 						url:huayi.config.callcenter_url +"Repository/GetRepository",

+ 214 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/policesAdd.html

@@ -0,0 +1,214 @@
1
+<!DOCTYPE html>
2
+<html>
3
+	<head>
4
+		<meta charset="UTF-8">
5
+		<script src="../Script/Common/huayi.load.js"></script>
6
+		<script src="../Script/Common/huayi.config.js"></script>
7
+		<link rel="stylesheet" href="../css/init.css" />
8
+		<title>新版知识库添加</title>
9
+		<style type="text/css">
10
+			ul,li{
11
+				padding: 0;
12
+				margin: 0;
13
+				list-style: none;
14
+			}
15
+			.tab_list{
16
+				border-bottom: 1px solid #d5d5d5;
17
+			}
18
+			.tab_list li{
19
+				padding: 10px 15px;
20
+				float: left;
21
+				color: #333333;
22
+				font-size: 14px;
23
+				position: relative;
24
+			}
25
+			.tab_list li.active{
26
+				color: #19aad0;
27
+			}
28
+			.tab_list li.active:after{
29
+				content: "";
30
+				width: 100%;
31
+				height: 2px;
32
+				background: #19aad0;
33
+				position: absolute;
34
+				bottom: -1px;
35
+				left: 0;
36
+			}
37
+			.tab_content{
38
+				font-size: 14px;
39
+				color: #4c4c4c;
40
+				padding: 15px 0;
41
+				/*text-indent: 28px;*/
42
+			}
43
+			.tab_content>div{
44
+				display: none;
45
+			}
46
+			.table tr td input[type="text"]{
47
+			    width: 100%;
48
+			    height: 34px;
49
+			    background: #f3f3f4;
50
+			    outline: none;
51
+		        border: 1px solid #e7e7e7;
52
+		        padding-left: 10px;
53
+			}
54
+			.radio-inline input[type=radio]{
55
+				margin-top: 2px;
56
+			}
57
+			.table tr td textarea{
58
+			    width: 100%;
59
+			    height: 100%;
60
+			    background: #f3f3f4;
61
+			    border: 1px solid #e7e7e7;
62
+			    resize: none;
63
+			}
64
+			#scwj{
65
+				    background-color: #FFF;
66
+			    background-image: none;
67
+			    border: 1px solid #ccc;
68
+			    border-radius: 1px;
69
+			    color: inherit;
70
+			    padding: 6px 12px!important;
71
+			}
72
+			.files{
73
+				    padding: 5px!important;
74
+			}
75
+			.time-box{
76
+			    position: relative;
77
+			    width: 197px!important;
78
+			    height: 34px;
79
+			    margin: 0;
80
+			}
81
+			.tub + input {
82
+			    padding-right: 30px;
83
+			    border: 1px solid #e5e6e7!important;
84
+			}
85
+			i.tub {
86
+			    position: absolute;
87
+			    right: 8px;
88
+			    top: 8px;
89
+			    font-size: 18px;
90
+			    color: #00a0ca;
91
+			}
92
+			
93
+		</style>
94
+	</head>
95
+		<body class="gray-bg">
96
+			<div class="container-fluid wrapper-content animated fadeInRight">
97
+				<table class="table table-bordered table-condensed">
98
+					<tr>
99
+						<td width="100">文件编号</td>
100
+						<td colspan="3"> <input type="text" id="title" /></td>
101
+					</tr>
102
+					<tr>
103
+						<td width="100">单位名称</td>
104
+						<td colspan="3"> <input type="text" id="maindept" /></td>
105
+					</tr>
106
+					<!--<tr>
107
+						<td width="100"> 办公地点</td>
108
+						<td colspan="3"><textarea name="" rows="" cols="" id="officeaddress"></textarea></td>
109
+					</tr>
110
+					<tr >
111
+						<td rowspan="2" width="100">公开电话</td>
112
+						<td> <input type="text" id="publicphone1" /></td>
113
+						<td rowspan="2" width="100">内部电话</td>
114
+						<td> <input type="text" id="privatephone1" /></td>
115
+						
116
+					</tr>
117
+					<tr>
118
+						<td>  <input type="text" id="publicphone2" /></td>
119
+						<td> <input type="text" id="privatephone2" /></td>
120
+					</tr>
121
+					<tr>
122
+						<td width="100"> 办理方式</td>
123
+						<td><input type="text" id="dealtype"/></td>
124
+						<td width="100"> 收费标准</td>
125
+						<td> <input type="text" id="paymoney" /></td>
126
+						
127
+					</tr>
128
+					<tr>
129
+						<td width="100"> 办理对象</td>
130
+						<td><input type="text" id="serobject" /></td>
131
+						<td width="100"> 乘车路线</td>
132
+						<td><textarea name="" rows="" cols=""id="busline"></textarea></td>
133
+					</tr>
134
+					<tr>
135
+						<td width="100" height="100"> 备注</td>
136
+						<td colspan="3" height="100">
137
+							<textarea name="" rows="" cols="" id="remark"></textarea>
138
+						</td>
139
+					</tr>-->
140
+					
141
+				</table>
142
+					<div class="cons">
143
+						<div class="fileBox">
144
+								<!--<span class="files">文件1<i class="fa fa-remove"></i></span>-->
145
+							</div>
146
+							<!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
147
+							<!--<span class="fjnr"></span>-->
148
+							<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
149
+							<input class="input" type="button" value="上传" id="scwj" />
150
+							<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
151
+							<input type="hidden" id="file" />
152
+							<span style="color:#FF0000; border: none;">
153
+                            	(文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
154
+                            </span>
155
+					</div>
156
+					<!--<ul class="tab_list clearfix">
157
+						<li class="active">设定依据</li>
158
+						<li>办理流程</li>
159
+						<li>办理材料</li>
160
+						<li>办理结果样本</li>
161
+						<li>收费标准及依据</li>
162
+						<li>附件</li>
163
+					</ul>-->
164
+					<!--<div class="tab_content">
165
+						<div class="cons" style="display: block;">
166
+							<textarea name="" data-adaptheight id="baseon"  style="width: 100%;height: 300px;"></textarea> 
167
+						</div>
168
+						<div class="cons">
169
+							<textarea name="" data-adaptheight  id="process" style="width: 100%;height: 300px;"></textarea> 
170
+						</div>
171
+						<div class="cons">
172
+								<textarea name="" data-adaptheight id="material" style="width: 100%;height: 300px;"></textarea> 
173
+						</div>
174
+						<div class="cons">
175
+								<textarea name="" data-adaptheight id="template" style="width: 100%;height: 300px;"></textarea> 
176
+						</div>
177
+						<div class="cons">
178
+								<textarea name="" data-adaptheight id="payinfo" style="width: 100%;height: 300px;"></textarea> 
179
+						</div>
180
+						
181
+						<div class="cons">
182
+							<div class="fileBox">
183
+									<span class="files">文件1<i class="fa fa-remove"></i></span>
184
+								</div>
185
+								<input type="text" placeholder="输入附件详情" style="width:66%" />
186
+								<span class="fjnr"></span>
187
+								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
188
+								<input class="input" type="button" value="上传" id="scwj" />
189
+								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
190
+								<input type="hidden" id="file" />
191
+								<span style="color:#FF0000; border: none;">
192
+	                            	(文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
193
+	                            </span>
194
+						</div>
195
+					</div>-->
196
+			
197
+			
198
+			   <p style="text-align: center;">
199
+			   	<button class="btns save">保存</button>
200
+			   	<button class="btns savetj">提交</button>
201
+			   </p>  
202
+			
203
+			
204
+			</div>
205
+			
206
+			
207
+			<script src="../js/kindeditor/kindeditor-all-min.js"></script>
208
+			<script src="../js/kindeditor/lang/zh-CN.js"></script>
209
+			<script src="../js/adjustHeight.js"></script>
210
+			<script src="../js/laydate/laydate.js"></script>
211
+			<script src="js/policesAdd.js"></script>
212
+			
213
+</body>
214
+</html>

+ 164 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/repositoryDrafts.html

@@ -0,0 +1,164 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<script src="../Script/Common/huayi.load.js"></script>
7
+		<script src="../Script/Common/huayi.config.js"></script>
8
+		<link rel="stylesheet" href="css/swiper.min.css" />
9
+		<link rel="stylesheet" href="../css/init.css" />
10
+		<link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
11
+		<link rel="stylesheet" href="css/newRepository.css" />
12
+		<title>草稿箱</title>
13
+		<style>
14
+			.swiper-container {
15
+			    width: 100%;
16
+			    /*height: 300px;*/
17
+			}
18
+			.swiper-pagination-bullet{
19
+				height: 15px;
20
+				width: 15px;
21
+			}
22
+			#policies,
23
+			#urgent{
24
+				color: red;
25
+				font-size: 14px;
26
+				font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif;
27
+				padding-left: 25px;
28
+				cursor: pointer;
29
+			}
30
+			.ztree{
31
+				padding-top: 0px;
32
+			}
33
+			.ztree *{
34
+				font-size: 14px;
35
+			}
36
+			.siderCon,
37
+			.treeCon{
38
+				padding-top: 5px;
39
+				position: relative;
40
+			}
41
+			.mechanism{
42
+				padding: 20px 0;
43
+				visibility: hidden;
44
+			}
45
+			#mechanism{
46
+				width: 70%;
47
+				height: 40px;
48
+				vertical-align: middle;
49
+			}
50
+			.line {
51
+				border: none;
52
+			}
53
+			img{
54
+				width: 14px;
55
+				height: 14px;
56
+			}
57
+			.img1{
58
+				position: absolute;
59
+				top: 9px;
60
+				left: 7px;
61
+			}
62
+			.img2{
63
+				position: absolute;
64
+				top: 28px;
65
+				left: 7px;
66
+			}
67
+		</style>
68
+	</head>
69
+
70
+	<body class="gray-bg">
71
+		<div class="container-fluid wrapper-content animated fadeInRight">
72
+			<div class="daoHang clearfix">
73
+				<div class="dhLeft">
74
+					<sapn><i class="syIcon"></i>位置:
75
+						<a id="ReIndex">首页</a>&gt;
76
+						<a href="javaScript:;">知识库</a>&gt;
77
+						<a href="" class="nowPosition">草稿箱</a>
78
+					</sapn>
79
+				</div>
80
+				<div class="dhRight">
81
+					<a href="" title="刷新"><i class="fa fa-refresh"></i></a>
82
+				</div>
83
+			</div>
84
+			<div class="reposCon clearfix">
85
+				<!--左侧-->
86
+				<div class="conleft col-md-3">
87
+					<!--<div class="search " style="height: 30px;">-->
88
+						<!--<div class="secon clearfix">
89
+							<p class="secl"><input type="text" placeholder="请输入关键字" class="searCon" /></p><button href="javaScript:;" class="stb"></button>
90
+						</div>-->
91
+					<!--</div>-->
92
+					<p style="color: #4c4c4c;font-size: 14px; margin: 10px 0;">服务单位列表</p>
93
+					<div class="line"></div>
94
+					<div class="siderCon">
95
+						<img src="../img/IVR2.png"/ class="img1">
96
+						<span id="urgent">
97
+							紧急事项
98
+						</span>
99
+						<br />
100
+						<img src="../img/IVR2.png"/ class="img2">
101
+						<span id="policies">
102
+							政策法规
103
+						</span>
104
+	                    <ul id="treeDemo" class="ztree">
105
+	                        <!--类名为ztree是必须的-->
106
+	                    </ul>
107
+					</div>
108
+				</div>
109
+				
110
+				<!--右侧-->
111
+				<div class="conRight col-md-9">
112
+					<div class="search clearfix">
113
+						<div class="secon clearfix" style="width: 80%; float:left;">
114
+							<p class="secl"><input type="text" placeholder="请输入关键字" class="searCon rightSearchKey" /></p><button href="javaScript:;" class="stb" id="rightSearch"></button></div>
115
+					        <button class="btns addTo" style="float: right;">添加</button>
116
+					        <button class="btns polices" style="float: right;display: none;">添加</button>
117
+					</div>
118
+					<div class="mechanism" >
119
+						机构职能:
120
+						<textarea type="" name="" id="mechanism" value="" ></textarea>
121
+						<button class="btns btn_save" >保存</button>
122
+					</div>
123
+					<!--<ul class="keyList clearfix" style="height: 38px;">
124
+						<li>市民反馈问题 </li>
125
+						<li>车辆管理条例 </li>
126
+						<li>市长重要讲话   </li>
127
+						<li>社保资料 </li>
128
+						<li> 投诉  </li>
129
+						<li> 建议  </li>
130
+						<li>鹤壁政要   </li>
131
+						<li>鹤壁政务 </li>
132
+						<li>公积金 </li>
133
+						<li>市长热线  </li>
134
+						<li>鹤壁政务  </li>
135
+					</ul>-->
136
+					<!--<p style="color: #4c4c4c;font-size: 14px; margin: 10px 0;" class="rightTabKey">市教育体育局</p>-->
137
+					<div class="line"></div>
138
+					
139
+					<div class="tableBox">
140
+						 <table id="table1" data-row-style="rowStyle" data-classes="table table-no-bordered" data-query-params="queryParams">
141
+			                <thead>
142
+			                    <tr>
143
+			                    	<th data-field="F_Title" data-align="center">标题</th>
144
+			                        <!--<th data-field="F_Title" data-align="center">事件名称</th>-->
145
+			                        <th data-field="F_MainDept" data-align="center">单位名称</th>
146
+			                        <th data-field="F_CreateTime" data-align="center">时间</th>
147
+			                        <th data-field="UserName" data-align="center">创建人</th>
148
+			                        <th data-formatter="CZ" data-align="center">操作</th>
149
+			                    </tr>
150
+			                </thead>
151
+			            </table>
152
+					</div>
153
+					
154
+				</div>
155
+				<input type="hidden" id="depID"/>
156
+			</div>
157
+		</div>
158
+		<script src="js/swiper.min.js"></script>
159
+		<script src="../js/zTree/jquery.ztree.core.js"></script>
160
+		<script src="js/repositoryDrafts.js"></script>
161
+		
162
+	</body>
163
+
164
+</html>