Kaynağa Gözat

新版知识库操作按钮及弹框显示更改

liuzhen 5 yıl önce
ebeveyn
işleme
bbdaac1b78

Dosya farkı çok büyük olduğundan ihmal edildi
+ 6592 - 0
WebUI/CallCenterWeb.UI/SystemManager/js/fullcalendar.js


+ 203 - 0
WebUI/CallCenterWeb.UI/SystemManager/workOffDays.html

@@ -0,0 +1,203 @@
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
+    <link href="../js/fullcalendar/fullcalendar.css" rel="stylesheet" />
9
+    <script src="../js/fullcalendar/fullcalendar.min.js"></script>
10
+    <script src="js/fullcalendar.js"></script>
11
+    <title>系统管理-->工作日管理</title>
12
+    <style>
13
+        .fc-event-title {
14
+            color: white;
15
+        }
16
+
17
+        .group {
18
+            margin-bottom: 5px;
19
+        }
20
+
21
+        .seatuser {
22
+            color: black;
23
+            padding: 5px 10px;
24
+            border-radius: 2px;
25
+            cursor: pointer;
26
+            margin-bottom: 5px;
27
+            background-color: #f3f3f4;
28
+        }
29
+
30
+        .active {
31
+            background-color: #1ab394;
32
+            color: #fff;
33
+        }
34
+
35
+        .lable {
36
+            /*display: none;*/
37
+            background-color: #d1dade;
38
+            color: #5e5e5e;
39
+            font-size: 10px;
40
+            padding: 3px 8px;
41
+            text-shadow: none;
42
+            font-size: 75%;
43
+            font-weight: 700;
44
+            line-height: 1;
45
+            text-align: center;
46
+            white-space: nowrap;
47
+            vertical-align: baseline;
48
+            border-radius: .25em;
49
+            margin: 3px;
50
+            float: left;
51
+            cursor: pointer;
52
+        }
53
+
54
+        .active ~ .lable {
55
+            display: inline;
56
+        }
57
+
58
+        .fc-ltr .fc-event-hori.fc-event-end,
59
+        .fc-rtl .fc-event-hori.fc-event-start {
60
+            display: none;
61
+        }
62
+    </style>
63
+</head>
64
+
65
+<body class="gray-bg">
66
+    <div class="container-fluid wrapper-content animated fadeInRight">
67
+        <div class="col-sm-12">
68
+            <div id="calendar"></div>
69
+        </div>
70
+    </div>
71
+    <script>
72
+			var bl = false;
73
+			var flag = true;
74
+			blur();
75
+			$(document).ready(function() {
76
+				blur();
77
+
78
+				function blur() {
79
+
80
+					var rl = $('#RoleCode', top.document).val();
81
+					var gcode = $('#GroupCode', top.document).val();
82
+					$('#calendar').html("");
83
+					var dates = new Date();
84
+					var time = dates.getFullYear() + "-" + (dates.getMonth() + 1) + '-' + dates.getDate();
85
+					var date = new Date();
86
+					var d = date.getDate();
87
+					var m = date.getMonth();
88
+					var y = date.getFullYear();
89
+					$('#calendar').fullCalendar({
90
+						header: {
91
+							//left: 'month,agendaWeek,agendaDay',
92
+							left: 'month',
93
+							center: 'title',
94
+							right: 'today, prev, next'
95
+						},
96
+						monthNames: ['年1月', '年2月', '年3月', '年4月', '年5月', '年6月', '年7月', '年8月', '年9月', '年10月', '年11月', '年12月'],
97
+						monthNamesShort: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
98
+						dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
99
+						dayNamesShort: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
100
+						titleFormat: {
101
+							month: "yyyy MMMM "
102
+						},
103
+						firstDay: "1",
104
+						editable: false,
105
+						droppable: bl,
106
+						weekMode: 'liquid',
107
+						events: function(start, end, callback) {
108
+							var st = $.fullCalendar.formatDate(start, "yyyy-MM-dd");
109
+							var ed = $.fullCalendar.formatDate(end, "yyyy-MM-dd");
110
+							console.log(st);
111
+							$.ajax({
112
+								type: "get",
113
+								url: huayi.config.callcenter_url + "Workcalendar/GetList",
114
+								dataType: 'json',
115
+								async: true,
116
+								data: {
117
+									"token": $.cookie("token")
118
+								},
119
+								success: function(data) {
120
+									/*验证请求*/
121
+									//工作日
122
+									$(".fc-day").each(function(i, n) {
123
+										var state = '<font class="redFont" style="font-weight: bold;background: #FFAB3D;color: #fff;padding: 5px;font-size: 16px;border-radius: 5px;">班</font>';
124
+										$(n).children().find('.fc-day-content').append(state);
125
+										var a = $(this).attr("data-date")
126
+                                        $(data.data).each(function(j, k) {
127
+											if(k.start == a) {
128
+												if($(n).children().find('.redFont')) {
129
+													$(n).children().find('.redFont').text('休');
130
+													$(n).children().find('.redFont').css('background-color', 'red');
131
+													$(n).children().find('.redFont').addClass("offday");
132
+												}
133
+											}
134
+
135
+										})
136
+									})
137
+									callback(data.data);
138
+								}
139
+							});
140
+
141
+						},
142
+						dayClick: function(date, allDay, jsEvent, view) {
143
+							console.log($(this).attr("data-date"));
144
+							$(this).children().children().find('.redFont').text();
145
+							console.log($(this).children().children().find('.redFont').text())
146
+							var Time = $(this).attr("data-date");
147
+							var type = 1;
148
+							if($(this).children().children().find('.redFont').text() != "休") {
149
+								layer.confirm('确定休息日吗?', {
150
+									btn: ['是', '否'] //按钮
151
+								}, function() {
152
+									$.ajax({
153
+										type: "post",
154
+										url: huayi.config.callcenter_url + "Workcalendar/setOfforOn",
155
+										dataType: 'json',
156
+										async: true,
157
+										data: {
158
+											offdate: Time,
159
+											token: $.cookie("token"),
160
+											type: 0
161
+										},
162
+										success: function(data) {
163
+											/*验证请求*/
164
+											if(data.state.toLowerCase() == "success") {
165
+												layer.msg("修改成功");
166
+												blur();
167
+											}
168
+										}
169
+									});
170
+								});
171
+							}else{
172
+								layer.confirm('确定设为工作日吗?', {
173
+								btn: ['是', '否'] //按钮
174
+							}, function() {
175
+								$.ajax({
176
+									type: "post",
177
+									url: huayi.config.callcenter_url + "Workcalendar/setOfforOn",
178
+									dataType: 'json',
179
+									async: true,
180
+									data: {
181
+										offdate: Time,
182
+										token: $.cookie("token"),
183
+										type: 1
184
+									},
185
+									success: function(data) {
186
+										/*验证请求*/
187
+										if(data.state.toLowerCase() == "success") {
188
+											layer.msg("修改成功");
189
+											blur();
190
+										}
191
+									}
192
+								});
193
+							});
194
+							}
195
+
196
+						}
197
+					});
198
+				}
199
+
200
+			});
201
+    </script>
202
+</body>
203
+</html>

+ 14 - 3
WebUI/CallCenterWeb.UI/index.html

@@ -923,9 +923,9 @@
923 923
             padding: 0 0 10px 0;
924 924
         }*/
925 925
 
926
-        .layui-layer-content {
926
+        /*.layui-layer-content {
927 927
             box-shadow: 0 1px 3px rgba(0,0,0,.3);
928
-        }
928
+        }*/
929 929
 
930 930
         .phoneBZ {
931 931
             display: inline-block;
@@ -1182,6 +1182,18 @@
1182 1182
 		#top_notices_lists1{
1183 1183
 			height: 100%;
1184 1184
 		}
1185
+		.result_str{
1186
+			display: block;
1187
+			float: left;
1188
+			text-align: center;
1189
+		}
1190
+		#result{
1191
+			min-width: 370px;
1192
+			min-height: 140px;
1193
+		}
1194
+		.operation_bj{
1195
+			float: right;
1196
+		}
1185 1197
     </style>
1186 1198
 </head>
1187 1199
 
@@ -1843,7 +1855,6 @@
1843 1855
         </div>
1844 1856
     </div>
1845 1857
     <!--来电弹屏结束-->
1846
-    
1847 1858
     <!--知识库内容-->
1848 1859
     <div class="ldcr-bottom repoConte">
1849 1860
         <div class="ldcrb-top clearfix">

+ 53 - 33
WebUI/CallCenterWeb.UI/js/fullcalendar/fullcalendar.css

@@ -1,5 +1,5 @@
1 1
 /*!
2
- * FullCalendar v1.6.4 Stylesheet
2
+ * FullCalendar v1.6.0 Stylesheet
3 3
  * Docs & License: http://arshaw.com/fullcalendar/
4 4
  * (c) 2013 Adam Shaw
5 5
  */
@@ -55,7 +55,7 @@ html .fc,
55 55
 	}
56 56
 	
57 57
 .fc-header-title h2 {
58
-	margin-top: 0;
58
+	margin-top: 0; font-size:16px;
59 59
 	white-space: nowrap;
60 60
 	}
61 61
 	
@@ -102,11 +102,10 @@ html .fc,
102 102
 	
103 103
 .fc-content {
104 104
 	clear: both;
105
-	zoom: 1; /* for IE7, gives accurate coordinates for [un]freezeContentHeight */
106 105
 	}
107 106
 	
108 107
 .fc-view {
109
-	width: 100%;
108
+	width: 100%; /* needed for view switching (when view is absolute) */
110 109
 	overflow: hidden;
111 110
 	}
112 111
 	
@@ -117,9 +116,11 @@ html .fc,
117 116
 
118 117
 .fc-widget-header,    /* <th>, usually */
119 118
 .fc-widget-content {  /* <td>, usually */
120
-	border: 1px solid #ddd;
119
+	border: 1px solid #ddd; 
121 120
 	}
122 121
 	
122
+.fc-widget-header{background:#f7f7f7}
123
+
123 124
 .fc-state-highlight { /* <td> today cell */ /* TODO: add .fc-today to <th> */
124 125
 	background: #fcf8e3;
125 126
 	}
@@ -156,8 +157,8 @@ html .fc,
156 157
 	}
157 158
 
158 159
 .fc-state-default.fc-corner-right { /* non-theme */
159
-	/*border-top-right-radius: 4px;
160
-	border-bottom-right-radius: 4px;*/
160
+	border-top-right-radius: 4px;
161
+	border-bottom-right-radius: 4px;
161 162
 	}
162 163
 
163 164
 /*
@@ -199,7 +200,7 @@ html .fc,
199 200
 */
200 201
 
201 202
 .fc-state-default {
202
-	/*background-color: #f5f5f5;
203
+	background-color: #f5f5f5;
203 204
 	background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
204 205
 	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
205 206
 	background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
@@ -210,35 +211,33 @@ html .fc,
210 211
 	border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
211 212
 	color: #333;
212 213
 	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
213
-	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);*/
214
-    border-color:#ccc;
214
+	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
215 215
 	}
216 216
 
217
-/*.fc-state-hover,*/
217
+.fc-state-hover,
218 218
 .fc-state-down,
219 219
 .fc-state-active,
220 220
 .fc-state-disabled {
221
-	background-color: #12B8F6;
222
-    border: none;
223
-    color: #fff;
221
+	color: #333333;
222
+	background-color: #e6e6e6;
224 223
 	}
225 224
 
226 225
 .fc-state-hover {
227
-	/*color: #333333;
226
+	color: #333333;
228 227
 	text-decoration: none;
229 228
 	background-position: 0 -15px;
230 229
 	-webkit-transition: background-position 0.1s linear;
231 230
 	   -moz-transition: background-position 0.1s linear;
232 231
 	     -o-transition: background-position 0.1s linear;
233
-	        transition: background-position 0.1s linear;*/
232
+	        transition: background-position 0.1s linear;
234 233
 	}
235 234
 
236 235
 .fc-state-down,
237 236
 .fc-state-active {
238
-	/*background-color: #cccccc;
237
+	background-color: #cccccc;
239 238
 	background-image: none;
240 239
 	outline: 0;
241
-	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);*/
240
+	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
242 241
 	}
243 242
 
244 243
 .fc-state-disabled {
@@ -253,20 +252,12 @@ html .fc,
253 252
 
254 253
 /* Global Event Styles
255 254
 ------------------------------------------------------------------------*/
256
-
257
-.fc-event-container > * {
258
-	z-index: 8;
259
-	}
260
-
261
-.fc-event-container > .ui-draggable-dragging,
262
-.fc-event-container > .ui-resizable-resizing {
263
-	z-index: 9;
264
-	}
265 255
 	 
266 256
 .fc-event {
267 257
 	border: 1px solid #3a87ad; /* default BORDER color */
268 258
 	background-color: #3a87ad; /* default BACKGROUND color */
269 259
 	color: #fff;               /* default TEXT color */
260
+	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
270 261
 	font-size: .85em;
271 262
 	cursor: default;
272 263
 	}
@@ -286,7 +277,6 @@ a.fc-event,
286 277
 
287 278
 .fc-event-inner {
288 279
 	width: 100%;
289
-	height: 100%;
290 280
 	overflow: hidden;
291 281
 	}
292 282
 	
@@ -376,7 +366,7 @@ table.fc-border-separate {
376 366
 	
377 367
 .fc-border-separate tbody tr.fc-first td,
378 368
 .fc-border-separate tbody tr.fc-first th {
379
-	border-top-width: 0;
369
+	border-top-width: 0; 
380 370
 	}
381 371
 	
382 372
 	
@@ -398,9 +388,39 @@ table.fc-border-separate {
398 388
 	}
399 389
 	
400 390
 .fc-grid .fc-day-number {
401
-	float: right;
402
-	padding: 0 2px;
391
+	/*float: right;*/
392
+	    padding: 0 15px;
393
+    position: relative;
394
+    line-height: 35px;
395
+    text-align: right;
396
+    font-size: 30px;
397
+    color: #fff;
398
+    background: lightseagreen;
399
+	}
400
+	.fc-first .fc-day-header{
401
+		 line-height: 35px;
402
+		 font-size: 20px;
403
+	}
404
+	.fc-day-cnTerm,.fc-day-cnDate{
405
+		    text-align: right;
406
+    /* margin-top: 5px; */
407
+    font-size: 15px;
408
+    padding-right: 15px;
409
+    color: #000;
410
+    font-weight: bold;
403 411
 	}
412
+	/*周六 周日*/
413
+.fc-sat .fc-day-number,.fc-sat .fc-day-cnDate,.fc-sun  .fc-day-number,.fc-sun  .fc-day-cnDate{
414
+		color: #f8ac59;
415
+	}
416
+	.fc-sat .fc-day-cnTerm,.fc-sun .fc-day-cnTerm{
417
+		color: #f8ac59;
418
+	}
419
+	.fc-first .fc-sat,.fc-first .fc-sun  {
420
+		color: #f8ac59;
421
+	}
422
+.fc-grid .fc-day-number span.solarday{float:right;color:#999}	
423
+.fc-grid .fc-day-number span.holiday{position:absolute; left:40%}
404 424
 	
405 425
 .fc-grid .fc-other-month .fc-day-number {
406 426
 	opacity: 0.3;
@@ -561,8 +581,8 @@ table.fc-border-separate {
561 581
 	width: 100%;
562 582
 	height: 100%;
563 583
 	background: #fff;
564
-	opacity: .25;
565
-	filter: alpha(opacity=25);
584
+	opacity: .3;
585
+	filter: alpha(opacity=30);
566 586
 	}
567 587
 	
568 588
 .fc .ui-draggable-dragging .fc-event-bg, /* TODO: something nicer like .fc-opacity */

+ 75 - 6
WebUI/CallCenterWeb.UI/js/index.js

@@ -1150,25 +1150,23 @@ function loadZSK() {
1150 1150
                     var html = '<li>' +
1151 1151
                 '   <div class="zhishi-title clearfix">' +
1152 1152
                 '	    <a href="javascript:void(0);" class="titless" >' + after_w + '</a>' +
1153
-                '	    <em >' + n.F_CreateOn + '</em>' +
1153
+                '	    <em ><span style="cursor:pointer;color:#337ab7" onclick="resolve('+n.F_Id+')">解决</span><span style="padding-left:5px;cursor:pointer;color:#337ab7" onclick="noSolve('+n.F_Id+')">未解决</span></em>' +
1154 1154
                 '   </div>' +
1155 1155
                 '   <div class="explancon">' +
1156
-                n.F_Content +
1156
+                n.F_EndAnswer +
1157 1157
                 '   </div>' +
1158 1158
                 '</li>';
1159 1159
                 } else {
1160 1160
                     var html = '<li>' +
1161 1161
                 '   <div class="zhishi-title clearfix">' +
1162 1162
                 '	    <a href="javascript:void(0);" class="titless" >' + n.F_Title + '</a>' +
1163
-                '	    <em >' + n.F_CreateOn + '</em>' +
1163
+                '	    <em ><span style="cursor:pointer;color:#337ab7" onclick="resolve('+n.F_Id+')">解决</span><span style="padding-left:5px;cursor:pointer;color:#337ab7" onclick="noSolve('+n.F_Id+')">未解决</span></em>' +
1164 1164
                 '   </div>' +
1165 1165
                 '   <div class="explancon">' +
1166
-                n.F_Content +
1166
+                n.F_EndAnswer +
1167 1167
                 '   </div>' +
1168 1168
                 '</li>';
1169 1169
                 }
1170
-
1171
-
1172 1170
                 $(html).appendTo($(".ldcr-bottom .detail-con ul")).find(".zhishi-title").click(function (event) {
1173 1171
                     event.stopPropagation();
1174 1172
                     if ($(this).hasClass("active")) {
@@ -1183,6 +1181,77 @@ function loadZSK() {
1183 1181
 
1184 1182
     })
1185 1183
 }
1184
+//解决
1185
+function resolve(id) {
1186
+	var laye = layer.confirm('确定解决?', {
1187
+		btn: ['确定', '取消'] //可以无限个按钮
1188
+	}, function() {
1189
+		//按钮【按钮一】的回调
1190
+		$.ajax({
1191
+			type: "post",
1192
+			url: huayi.config.callcenter_url + "Repository/OptRep",
1193
+			async: true,
1194
+			dataType: 'json',
1195
+			data: {
1196
+			    token: $.cookie("token"),
1197
+				repid: id,
1198
+				type:1
1199
+			},
1200
+			success: function(data) {
1201
+				if(data.state.toLowerCase() == 'success') {
1202
+					layer.msg("提交成功!");
1203
+					layer.close(laye);
1204
+				}
1205
+			}
1206
+		});
1207
+	}, function(index) {
1208
+		//按钮【按钮二】的回调
1209
+		layer.close(laye)
1210
+	});
1211
+}
1212
+//未解决
1213
+function noSolve(id){
1214
+	var laye=layer.open({
1215
+          type: 1,
1216
+          shade: false,
1217
+          area: ['500px', '300px'],
1218
+          title: '消息', //不显示标题
1219
+          content:
1220
+          '<div style="padding-top:10px">\n' +
1221
+                '<span class="result_str">未解决原因:</span><textarea id="result" type="text"></textarea>' +
1222
+            '</div>',
1223
+          cancel: function(){
1224
+            layer.close();
1225
+          },
1226
+          btn: ['确定','取消'],//按钮
1227
+          yes: function(){ 
1228
+          		if(!$('#result').val()){
1229
+						layer.msg('请填写未解决原因!');
1230
+						return false;
1231
+				}else{
1232
+					$.ajax({
1233
+						type: "post",
1234
+						url: huayi.config.callcenter_url + "Repository/OptRep",
1235
+						async: true,
1236
+						dataType: 'json',
1237
+						data: {
1238
+						    token: $.cookie("token"),
1239
+							repid: id,
1240
+							reason:$('#result').val(),
1241
+							type:2
1242
+						},
1243
+						success: function(data) {
1244
+							if(data.state.toLowerCase() == 'success') {
1245
+								layer.msg("提交成功!");
1246
+								layer.close(laye);
1247
+								table.bootstrapTable('refresh');
1248
+							}
1249
+						}
1250
+					});
1251
+				}
1252
+          }
1253
+        });
1254
+}
1186 1255
 //外呼弹屏
1187 1256
 function whtp() {
1188 1257
     $("#Result").val("");

+ 81 - 28
WebUI/CallCenterWeb.UI/zhiShiKu/js/newRepository.js

@@ -231,7 +231,7 @@
231 231
 	                html += html1;
232 232
 	            }
233 233
 	            return html;
234
-	        }
234
+	      }
235 235
 			//详情
236 236
 			function goDetail(ids,DeptId){
237 237
 				if(DeptId==100000){
@@ -311,35 +311,88 @@
311 311
 					layer.close(laye)
312 312
 				});
313 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');
314
+			function noSolve(id){
315
+				var laye=layer.open({
316
+			          type: 1,
317
+			          shade: false,
318
+			          area: ['500px', '300px'],
319
+			          title: '消息', //不显示标题
320
+			          content:
321
+			          '<div style="padding-top:10px">\n' +
322
+			                '<span class="result_str">未解决原因:</span><textarea id="result" type="text"></textarea>' +
323
+			            '</div>',
324
+			          cancel: function(){
325
+			            layer.close();
326
+			          },
327
+			          btn: ['确定','取消'],//按钮
328
+			          yes: function(){ 
329
+			          		if(!$('#result').val()){
330
+									layer.msg('请填写未解决原因!');
331
+									return false;
332
+							}else{
333
+								$.ajax({
334
+									type: "post",
335
+									url: huayi.config.callcenter_url + "Repository/OptRep",
336
+									async: true,
337
+									dataType: 'json',
338
+									data: {
339
+									    token: $.cookie("token"),
340
+										repid: id,
341
+										reason:$('#result').val(),
342
+										type:2
343
+									},
344
+									success: function(data) {
345
+										if(data.state.toLowerCase() == 'success') {
346
+											layer.msg("提交成功!");
347
+											layer.close(laye);
348
+											table.bootstrapTable('refresh');
349
+										}
350
+									}
351
+								});
335 352
 							}
336
-						}
337
-					});
338
-				}, function(index) {
339
-					//按钮【按钮二】的回调
340
-					layer.close(laye)
341
-				});
353
+			          }
354
+			        });
342 355
 			}
356
+//			//未解决
357
+//			function noSolve(id) {
358
+//				var laye = layer.confirm('确定未解决?', {
359
+//					area: ['500px', '300px'],
360
+//					content:
361
+//			            '<div>\n' +
362
+//			                '<span class="result_str">未解决原因:</span><textarea id="result" type="text"></textarea>' +
363
+//			            '</div>',
364
+//					btn: ['确定', '取消'] //可以无限个按钮
365
+//				}, function() {
366
+//					//按钮【按钮一】的回调
367
+//					if(!$('#result').val()){
368
+//							layer.msg('请填写未解决原因!');
369
+//							return false;
370
+//					}else{
371
+//						$.ajax({
372
+//							type: "post",
373
+//							url: huayi.config.callcenter_url + "Repository/OptRep",
374
+//							async: true,
375
+//							dataType: 'json',
376
+//							data: {
377
+//							    token: $.cookie("token"),
378
+//								repid: id,
379
+//								reason:$('#result').val(),
380
+//								type:2
381
+//							},
382
+//							success: function(data) {
383
+//								if(data.state.toLowerCase() == 'success') {
384
+//									layer.msg("提交成功!");
385
+//									layer.close(laye);
386
+//									table.bootstrapTable('refresh');
387
+//								}
388
+//							}
389
+//						});
390
+//					}
391
+//				}, function(index) {
392
+//					//按钮【按钮二】的回调
393
+//					layer.close(laye)
394
+//				});
395
+//			}
343 396
 			//编辑
344 397
 			function goEdit(ids,DeptId){
345 398
 				if(DeptId==100000){

+ 9 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/newRepository.html

@@ -63,6 +63,15 @@
63 63
 				top: 28px;
64 64
 				left: 7px;
65 65
 			}
66
+			.result_str{
67
+				display: block;
68
+				float: left;
69
+				text-align: center;
70
+			}
71
+			#result{
72
+				min-width: 370px;
73
+				min-height: 140px;
74
+			}
66 75
 		</style>
67 76
 	</head>
68 77
 

+ 6 - 1
WebUI/CallCenterWeb.UI/zhiShiKu/newRepositoryAdd.html

@@ -91,11 +91,16 @@
91 91
 			    font-size: 18px;
92 92
 			    color: #00a0ca;
93 93
 			}
94
-			
94
+			.operation_bj{
95
+				float: right;
96
+			}
95 97
 		</style>
96 98
 	</head>
97 99
 		<body class="gray-bg">
98 100
 			<div class="container-fluid wrapper-content animated fadeInRight">
101
+				<div class="operation_bj">
102
+					
103
+				</div>
99 104
 				<table class="table table-bordered table-condensed">
100 105
 					<tr>
101 106
 						<td width="100">标题</td>

+ 141 - 1
WebUI/CallCenterWeb.UI/zhiShiKu/newRepositoryDetail.html

@@ -116,10 +116,25 @@
116 116
 				line-height: 30px;
117 117
 				text-align: center;
118 118
 			}
119
+			.result_str{
120
+				display: block;
121
+				float: left;
122
+				text-align: center;
123
+			}
124
+			#result{
125
+				min-width: 370px;
126
+				min-height: 140px;
127
+			}
128
+			.operation_bj{
129
+				float: right;
130
+			}
119 131
 		</style>
120 132
 	</head>
121 133
 		<body class="gray-bg">
122 134
 			<div class="container-fluid wrapper-content animated fadeInRight">
135
+				<div class="operation_bj">
136
+					
137
+				</div>
123 138
 				<table class="table table-bordered table-condensed">
124 139
 					<tr>
125 140
 						<td width="100">标题</td>
@@ -241,6 +256,12 @@
241 256
 				var ids=helper.request.queryString("ids");
242 257
 				var depId=helper.request.queryString("DeptId");
243 258
 				$(document).ready(function(){
259
+					//关闭自身 
260
+				       window.formClose = function(){
261
+				              var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
262
+				              //layer.msg(index);
263
+				              parent.layer.close(index); //再执行关闭   
264
+				        }
244 265
 					$('.tab_list li').click(function(){
245 266
 					   var index=$(this).index();
246 267
 					   $(this).addClass('active').siblings().removeClass('active');
@@ -296,6 +317,18 @@
296 317
 							id:ids
297 318
 						},
298 319
 						success:function(res){
320
+							var Rows = res.data.button;
321
+					        var html = '';
322
+					        for (var i = 1; i < Rows.length; i++) {
323
+					
324
+					            var html1 = huayi.config.kapArr[Rows[i].key * 1 - 1];
325
+					            if (html1) {
326
+					                html1 = html1.replace("data", res.data.data.F_Id);
327
+					                 html1 = html1.replace("data_id", res.data.data.F_DeptId);
328
+					            }
329
+					            html += html1;
330
+					        }
331
+					        $('.operation_bj').append(html);
299 332
 							if(res.state.toLowerCase()=='success'){
300 333
 								var con=res.data.data;
301 334
 								$('#key').val(con.F_Key);//关键字
@@ -372,7 +405,114 @@
372 405
 				
373 406
 				
374 407
 				})
375
-
408
+//解决
409
+function solve(id) {
410
+	var laye = layer.confirm('确定解决?', {
411
+		btn: ['确定', '取消'] //可以无限个按钮
412
+	}, function() {
413
+		//按钮【按钮一】的回调
414
+		$.ajax({
415
+			type: "post",
416
+			url: huayi.config.callcenter_url + "Repository/OptRep",
417
+			async: true,
418
+			dataType: 'json',
419
+			data: {
420
+			    token: $.cookie("token"),
421
+				repid: id,
422
+				type:1
423
+			},
424
+			success: function(data) {
425
+				if(data.state.toLowerCase() == 'success') {
426
+					layer.msg("提交成功!");
427
+					layer.close(laye);
428
+					table.bootstrapTable('refresh');
429
+				}
430
+			}
431
+		});
432
+	}, function(index) {
433
+		//按钮【按钮二】的回调
434
+		layer.close(laye)
435
+	});
436
+}
437
+//未解决
438
+function noSolve(id){
439
+	var laye=layer.open({
440
+          type: 1,
441
+          shade: false,
442
+          area: ['500px', '300px'],
443
+          title: '消息', //不显示标题
444
+          content:
445
+          '<div style="padding-top:10px">\n' +
446
+                '<span class="result_str">未解决原因:</span><textarea id="result" type="text"></textarea>' +
447
+            '</div>',
448
+          cancel: function(){
449
+            layer.close();
450
+          },
451
+          btn: ['确定','取消'],//按钮
452
+          yes: function(){ 
453
+          		if(!$('#result').val()){
454
+						layer.msg('请填写未解决原因!');
455
+						return false;
456
+				}else{
457
+					$.ajax({
458
+						type: "post",
459
+						url: huayi.config.callcenter_url + "Repository/OptRep",
460
+						async: true,
461
+						dataType: 'json',
462
+						data: {
463
+						    token: $.cookie("token"),
464
+							repid: id,
465
+							reason:$('#result').val(),
466
+							type:2
467
+						},
468
+						success: function(data) {
469
+							if(data.state.toLowerCase() == 'success') {
470
+								layer.msg("提交成功!");
471
+								layer.close(laye);
472
+								table.bootstrapTable('refresh');
473
+							}
474
+						}
475
+					});
476
+				}
477
+          }
478
+        });
479
+}
480
+//编辑
481
+function goEdit(ids,DeptId){
482
+	var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
483
+	parent.layer.close(index); //再执行关闭
484
+	window.parent.goEdit(ids,DeptId);//执行父页面的事件
485
+}
486
+//删除
487
+function goDel(id) {
488
+	var arr=[];
489
+	arr.push(id);
490
+	var laye = layer.confirm('您确定要删除吗?', {
491
+		btn: ['确定', '取消'] //可以无限个按钮
492
+	}, function() {
493
+		//按钮【按钮一】的回调
494
+		$.ajax({
495
+			type: "post",
496
+			url: huayi.config.callcenter_url + "Repository/DelRepository",
497
+			async: true,
498
+			dataType: 'json',
499
+			data: {
500
+			    token: $.cookie("token"),
501
+				ids: arr
502
+			},
503
+			success: function(data) {
504
+				if(data.state.toLowerCase() == 'success') {
505
+					layer.msg("删除成功!");
506
+					layer.close(laye);
507
+					table.bootstrapTable('refresh');
508
+				}
509
+			}
510
+		});
511
+	}, function(index) {
512
+		//按钮【按钮二】的回调
513
+		layer.close(laye)
514
+	});
515
+}
376 516
 				
377 517
 				
378 518