liuzhen лет назад: 5
Родитель
Сommit
4502c6e89f

+ 1 - 1
WebUI/CallCenterWeb.UI/zhiShiKu/evaluate.html

@@ -25,7 +25,7 @@
25 25
 			width: 600px;
26 26
 			height: 24px;
27 27
 			margin: 20px auto 0;
28
-			padding-left: 40px;
28
+			/*padding-left: 40px;*/
29 29
 		}
30 30
 		
31 31
 		.star span {

Разница между файлами не показана из-за своего большого размера
+ 541 - 533
WebUI/CallCenterWeb.UI/zhiShiKu/js/newRepository.js


+ 1 - 1
WebUI/CallCenterWeb.UI/zhiShiKu/js/score.js

@@ -63,7 +63,7 @@
63 63
 				ismax(index + 1);
64 64
 				
65 65
 				$('p',parentCls).hasClass('hidden') && $('p',parentCls).removeClass('hidden');
66
-				$('p',parentCls).css({'left':index*$(this).width() - 1 + 'px'});
66
+				$('p',parentCls).css({'left':index*$(this).width() - 35 + 'px'});
67 67
 				
68 68
 
69 69
 				var html = '<em style="text-align:center">' + 

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

@@ -197,7 +197,7 @@
197 197
 				<div class="operation_bj">
198 198
 					
199 199
 				</div>
200
-				<table class="table table-bordered table-condensed">
200
+				<table class="table table-bordered table-condensed diff-wrapper1">
201 201
 					<tr>
202 202
 						<td width="100">标题</td>
203 203
 						<td colspan="3"> <input type="text" id="title" readonly="readonly" /></td>
@@ -211,8 +211,10 @@
211 211
 						<td colspan="3" height="100"> <textarea name="" rows="" cols="" id="change" readonly="readonly"></textarea></td>
212 212
 					</tr>
213 213
 					<tr>
214
-						<td width="100" height="100"> 参考答案(修改前后结果对比)</td>
215
-						<td colspan="3" height="100"> <textarea name="" rows="" cols="" id="diff1" readonly="readonly"></textarea></td>
214
+						<td width="100" height="100"> 参考答案(修改前后结果对比)<span style="font-size: 12px; color: red;">注: 红色为已删除   绿色为新增</span></td>
215
+						<td colspan="3" height="100"> <span id="diff1">
216
+							
217
+						</span></td>
216 218
 					</tr>
217 219
 					<tr>
218 220
 						<td width="100">单位</td>
@@ -336,6 +338,8 @@
336 338
 			<script src="../js/kindeditor/lang/zh-CN.js"></script>
337 339
 			<script src="../js/adjustHeight.js"></script>
338 340
 			<script src="../js/laydate/laydate.js"></script>
341
+			<script src="../js/plugins/diff_match_patch/diff_match_patch.js"></script>
342
+    		<script src="../js/plugins/preetyTextDiff/jquery.pretty-text-diff.min.js"></script>
339 343
 			<script>
340 344
 				
341 345
 				var ids=helper.request.queryString("ids");
@@ -487,28 +491,30 @@
487 491
 											'</tr>'
488 492
 									$(strs).appendTo($('.SHXX'))
489 493
 								})
490
-			
491
-			
492
-			
493
-			
494
-								
494
+								if(con.F_AuditID){
495
+									$.ajax({
496
+										type:"get",
497
+										url:huayi.config.callcenter_url +"Knowledge/GetAuditCompareInfo",
498
+										async:true,
499
+										dataType:'json',
500
+										data:{
501
+											token: $.cookie("token"),
502
+											auditid:con.F_AuditID
503
+										},
504
+										success:function(res){
505
+											$('#change').html(res.data.F_PreDescription);  //修改前内容	F_PreDescription
506
+					    					$('#endanswer').html(res.data.F_AfterDescription);  //修改后内容    F_AfterDescription
507
+											$(".diff-wrapper1").prettyTextDiff({
508
+												originalContent: $("#change").html(),
509
+												changedContent: $("#endanswer").html(),
510
+												diffContainer: "#diff1"
511
+											});
512
+										}
513
+									})	
514
+								}
495 515
 							}
496
-							
497 516
 						}
498 517
 					});
499
-					$.ajax({
500
-						type:"get",
501
-						url:huayi.config.callcenter_url +"Knowledge/GetAuditCompareInfo",
502
-						async:true,
503
-						dataType:'json',
504
-						data:{
505
-							token: $.cookie("token"),
506
-							auditid:ids
507
-						},
508
-						success:function(res){
509
-							console.log(res)
510
-						}
511
-					})	
512 518
 				$('#error_record').bootstrapTable('destroy').bootstrapTable({ striped: true });
513 519
 				
514 520