Browse Source

Merge branch 'master' of http://192.168.1.222:3000/zhoufan/12345_Base_Web

fanlongfei 8 years ago
parent
commit
c292e3004f

+ 3 - 1
WebUI/CallCenterWeb.UI/CommonHtml/PrintPreview-1.html

@@ -9,7 +9,9 @@
9 9
 	<script src="../Script/Common/huayi.load.js"></script>
10 10
 	<script src="../Script/Common/huayi.config.js"></script>
11 11
     <script src="../js/jquery.cookie.js"></script>
12
-    
12
+    <METAHTTP-EQUIV="Pragma" CONTENT="no-cache">
13
+    <METAHTTP-EQUIV="Cache-Control" CONTENT="no-cache">
14
+    <METAHTTP-EQUIV="Expires" CONTENT="0">
13 15
     <style>
14 16
         #main{
15 17
             width: 80%;

+ 110 - 63
WebUI/CallCenterWeb.UI/CommonHtml/WorkDatil.html

@@ -76,6 +76,10 @@
76 76
 			.wh_btn input {
77 77
 				background: rgb(0, 161, 203);
78 78
 			}
79
+	
80
+			/*.authority{
81
+				display: none;
82
+			}*/
79 83
 		</style>
80 84
 	</head>
81 85
 
@@ -155,7 +159,7 @@
155 159
 									<td>
156 160
 										<span class="CD"></span>
157 161
 									</td>
158
-									<th>密级:</th>
162
+									<th colspan="3">密级:</th>
159 163
 									<td>
160 164
 										<span class="MJ"></span>
161 165
 									</td>
@@ -188,7 +192,7 @@
188 192
 									<td class="text-center" style="width:100px;">办理时限</td>
189 193
 									<td class="text-center" style="min-width:80px;">交办单位</td>
190 194
 									<td class="text-center" style="width:68%;">交办意见</td>
191
-									<td class="text-center">操作</td>
195
+									<td class="text-center authority">操作</td>
192 196
 								</tr>
193 197
 							</theard>
194 198
 							<tbody class="JBXX">
@@ -206,7 +210,7 @@
206 210
 									<td class="text-center" style="min-width:100px;">监察人</td>
207 211
 									<td class="text-center">监察意见</td>
208 212
 									<td class="text-center" style="min-width:100px;">监察时间</td>
209
-									<td class="text-center" style="min-width:100px;">操作</td>
213
+									
210 214
 								</tr>
211 215
 							</theard>
212 216
 							<tbody class="JC">
@@ -226,7 +230,7 @@
226 230
 										<td class="text-center" style="min-width:100px;">批示内容</td>
227 231
 										<td class="text-center" style="min-width:100px;">批示时间</td>
228 232
 										<td class="text-center" style="min-width:100px;">附件</td>
229
-										<td class="text-center" style="min-width:100px;">操作</td>
233
+										<td class="text-center authority" style="min-width:100px;">操作</td>
230 234
 									</tr>
231 235
 								</theard>
232 236
 								<tbody class="LDPS">
@@ -245,7 +249,7 @@
245 249
 									<td class="text-center" style="min-width:100px;">单位</td>
246 250
 									<td class="text-center" style="min-width:100px;">办理意见</td>
247 251
 									<td class="text-center" style="min-width:50px;">附件</td>
248
-									<td class="text-center" style="min-width:80px;">操作</td>
252
+									<td class="text-center authority" style="min-width:80px;">操作</td>
249 253
 									<!--<td class="text-center" style="min-width:50px;">类型</td>
250 254
 									<td class="text-center" style="min-width:50px;">审核</td>
251 255
 									<td class="text-center" style="min-width:100px;">审核意见</td>
@@ -271,7 +275,7 @@
271 275
 									<td class="text-center" style="min-width:100px;">申请原因</td>
272 276
 									<td class="text-center" style="min-width:100px;">审核时间</td>
273 277
 									<td class="text-center" style="min-width:80px;">审核意见</td>
274
-									<td class="text-center" style="min-width:100px;">操作</td>
278
+									<td class="text-center authority" style="min-width:100px;">操作</td>
275 279
 								</tr>
276 280
 							</theard>
277 281
 							<tbody class="YSSHS">
@@ -290,7 +294,7 @@
290 294
 									<td class="text-center" style="min-width:100px;">状态</td>
291 295
 									<td class="text-center" style="min-width:100px;">审核时间</td>
292 296
 									<td class="text-center" style="min-width:80px;">审核意见</td>
293
-									<td class="text-center" style="min-width:100px;">操作</td>
297
+									<td class="text-center authority" style="min-width:100px;">操作</td>
294 298
 								</tr>
295 299
 							</theard>
296 300
 							<tbody class="YTHHS">
@@ -310,7 +314,7 @@
310 314
 									<td class="text-center" style="min-width:100px;">回访信息</td>
311 315
 									<td class="text-center" style="min-width:100px;">回访结果</td>
312 316
 									<td class="text-center" style="min-width:100px;">操作时间</td>
313
-									<td class="text-center" style="min-width:100px;">操作</td>
317
+									<td class="text-center authority" style="min-width:100px;">操作</td>
314 318
 								</tr>
315 319
 							</theard>
316 320
 							<tbody class="HGXX">
@@ -381,8 +385,9 @@
381 385
 					</ul>
382 386
 					<div class="clearfix wh_btn" style="width:100%;text-align:center;margin:10px 0;">
383 387
 						<input type="hidden" class="hidWid" />
384
-						<!-- <input type="button" value="网上发布" class="release" />&nbsp;&nbsp;--><input type="button" value="打印预览" class="print" />&nbsp;&nbsp;<input type="button" value="关闭" class="closexq" />
388
+						 <input type="button" class="change authority " value="修改" class="release" />&nbsp;&nbsp;<input type="button" value="打印预览" class="print" />&nbsp;&nbsp;<input type="button" value="关闭" class="closexq" />
385 389
 					</div>
390
+					<input type="hidden" id="Change" />
386 391
 				</div>
387 392
 			</div>
388 393
 		</div>
@@ -391,8 +396,9 @@
391 396
 			var wid = helper.request.queryString("wid");
392 397
 			$(document).ready(function() {
393 398
 				if(wid) {
394
-
399
+				
395 400
 					load();
401
+					$("#Change").val(wid);
396 402
 					//预览
397 403
 					$(".print").click(function() {
398 404
 						//                  layer.open({
@@ -505,16 +511,15 @@
505 511
 								htmls += '<tr>' +
506 512
 									'<td class="text-center">' + n.UserName + '</td>' +
507 513
 									'<td class="text-center">' + n.DeptName + '</td>' +
508
-									'<td class="text-center">' + n.F_Result + '</td>' +
509
-									
510
-									'<td class="text-center">'+
511
-									'<td class="text-center"><botton class="btns BLQKS " dealman="' + n.UserName + '" result="' + n.F_Result + '" type="" index="' + n.F_Id + '">修改</botton></td>';
514
+									'<td class="text-center">' + n.F_Result + '</td>' +				
515
+									'<td class="text-center">';
512 516
 								//办理情况附件
513 517
 								$(n.File).each(function(j, m) {
514 518
 									htmls += '<a style="margin-right:5px;" href="' + m.F_FileUrl + '" download="' + m.F_FileUrl + '">附件' + parseInt(j + 1) + '</a>';
515 519
 								})
516 520
 
517
-								htmls += '</td>' +								
521
+								htmls += '</td>' +
522
+								'<td class="text-center authority"><botton class="btns  BLQKS " dealman="' + n.UserName + '" result="' + n.F_Result + '" type="" index="' + n.F_Id + '">修改</botton></td>'+
518 523
 									'</tr>';
519 524
 							})
520 525
 							$(htmls).appendTo($(".BLQK"));
@@ -548,8 +553,8 @@
548 553
 										'<td class="text-center">' + n.F_Result + '</td>' +
549 554
 										'<td class="text-center">' + a + '</td>' +
550 555
 										'<td class="text-center">' + n.F_CreateTime + '</td>' +
551
-										'<td class="text-center">' +
552
-										'<botton class="btns HFXG " index="' + n.F_Id + '" visituser="' + n.F_VisitUser + '"' +
556
+										'<td class="text-center authority">' +
557
+										'<botton class="btns  HFXG " index="' + n.F_Id + '" visituser="' + n.F_VisitUser + '"' +
553 558
 										'result="' + n.F_Result + '" callid="" type="' + n.F_Type + '" issatisfie="' + n.F_IsSatisfie + '">修改</botton>' +
554 559
 										'</td>' +
555 560
 										'</tr>';
@@ -564,7 +569,7 @@
564 569
 										'<td class="text-center">' + n.F_LimitTime + '</td>' +
565 570
 										'<td class="text-center">' + n.DeptName + '</td>' +
566 571
 										'<td class="text-center">' + n.F_AssignedOpinion + '</td>' +
567
-										'<td class="text-center"><botton class="btns XGXX " data_time="' + n.F_LimitTime + '"  data_Opinio="' + n.F_AssignedOpinion + '"  index="' + n.F_Id + '">修改</botton></td>' +
572
+										'<td class="text-center authority"><botton class="btns  XGXX " data_time="' + n.F_LimitTime + '"  data_Opinio="' + n.F_AssignedOpinion + '"  index="' + n.F_Id + '">修改</botton></td>' +
568 573
 										'</tr>';
569 574
 								})
570 575
 								$(jbxx).appendTo($(".JBXX"));
@@ -594,7 +599,6 @@
594 599
 											'<td class="text-center">' + n.UserName + '</td>' +
595 600
 											'<td class="text-center">' + n.F_Content + '</td>' +
596 601
 											'<td class="text-center">' + n.F_CreateTime + '</td>' +
597
-											'<td class="text-center"><botton class="btns  " index="' + n.F_WorkOrderId + '" >修改</botton></td>' +
598 602
 											'</tr>';
599 603
 									})
600 604
 									$(html_).appendTo($(".JC"));
@@ -616,7 +620,7 @@
616 620
 											'<td class="text-center">' + n.F_Reason + '</td>' +
617 621
 											'<td class="text-center">' + n.F_AgreeTime + '</td>' +
618 622
 											'<td class="text-center">' + n.F_RefuseReason + '</td>' +
619
-											'<td class="text-center"><botton class="btns LYSSH " index="' + n.F_Id + '" reason="'+n.F_RefuseReason+'" >修改</botton></td>' +
623
+											'<td class="text-center authority"><botton class="btns  LYSSH " index="' + n.F_Id + '" reason="'+n.F_RefuseReason+'" >修改</botton></td>' +
620 624
 											'</tr>';
621 625
 									})
622 626
 									$(Ysh).appendTo($(".YSSHS"));
@@ -637,15 +641,15 @@
637 641
 											'<td class="text-center">' + a + '</td>' +
638 642
 											'<td class="text-center">' + n.F_AuditTime+ '</td>' +
639 643
 											'<td class="text-center">' + n.F_AuditReason + '</td>' +
640
-											'<td class="text-center"><botton class="btns LYSSH " index="' + n.F_Id + '" reason="'+n.F_RefuseReason+'" >修改</botton></td>' +
644
+											'<td class="text-center authority"><botton class="btns  LTHSH " index="' + n.F_Id + '" reason="'+n.F_AuditReason+'" >修改</botton></td>' +
641 645
 											'</tr>';
642 646
 									})
643 647
 									$(Ths).appendTo($(".YTHHS"));
644 648
 									//办理过程
645 649
 									$("#BLGC_").empty();
646
-									var html = '';
650
+									
647 651
 									$(result.data.gcdata).each(function(i, n) {
648
-										html = '<tr>' +
652
+										var html = '<tr>' +
649 653
 											'<td class="text-center">' + (i + 1) + '</td>' +
650 654
 											'<td class="text-center">' + n.F_Message + '</td>' +
651 655
 											'<td class="text-center">' + n.F_CreateTime + '</td>' +
@@ -654,7 +658,7 @@
654 658
 									})
655 659
 
656 660
 									//领导批示
657
-									var str;
661
+									;
658 662
 									$(".LDPS").empty();
659 663
 									$(result.data.psdata).each(function(i, n) {
660 664
 										var val = n.F_Type;
@@ -670,7 +674,7 @@
670 674
 												break;
671 675
 
672 676
 										}
673
-										html += '<tr>' +
677
+										var str= '<tr>' +
674 678
 											'<td class="text-center">' + val + '</td>' +
675 679
 											'<td class="text-center">' + n.F_BatchReason + '</td>' +
676 680
 											'<td class="text-center">' + n.F_SuperOpinion + '</td>' +
@@ -678,32 +682,32 @@
678 682
 											'<td class="text-center">';
679 683
 										//办理情况附件
680 684
 										$(n.File).each(function(j, m) {
681
-											html += '<a style="margin-right:5px;" href="' + m.F_FileUrl + '" download="' + m.F_FileUrl + '">附件' + parseInt(j + 1) + '</a>';
685
+											str += '<a style="margin-right:5px;" href="' + m.F_FileUrl + '" download="' + m.F_FileUrl + '">附件' + parseInt(j + 1) + '</a>';
682 686
 										})
683
-										html += '</td>' +
684
-											'<td class="text-center"><botton class="btns LDPSS "   superuser="' + n.F_BatchReason + '" superopinion="' + n.F_SuperOpinion + '" type="' + n.F_Type + '" index="' + n.F_Id + '">修改</botton></td>' +
687
+										str += '</td>' +
688
+											'<td class="text-center authority"><botton class="btns  LDPSS "   superuser="' + n.F_BatchReason + '" superopinion="' + n.F_SuperOpinion + '" type="' + n.F_Type + '" index="' + n.F_Id + '">修改</botton></td>' +
685 689
 											'</tr>';
686
-
690
+										$(str).appendTo($(".LDPS"));
687 691
 									})
688
-									$(html).appendTo($(".LDPS"));
692
+									
689 693
 									//修改监察意见
690 694
 
691 695
 								}
692 696
 							}
693
-
697
+									DL();
694 698
 							//修改交办意见
695 699
 							$('.XGXX').click(function() {
696 700
 								var index = $(this).attr('index');
697 701
 								var Time = $(this).attr("data_time");
698 702
 								var Times = Time.substring(0, Time.indexOf(' '));
699 703
 								var Opinio = $(this).attr("data_Opinio");
700
-								alert(Times);
701
-								layer.open({
702
-									type: 2,
703
-									content: "../CommonHtml/XGjiaoban.html?wid=" + index + "&time=" + Times + "&Opinio=" + Opinio, //iframe的url,no代表不显示滚动条
704
-									title: '修改交办信息',
705
-									area: ['48%', '40%'], //宽高
706
-								});
704
+//								layer.open({
705
+//									type: 2,
706
+//									content: "../CommonHtml/XGjiaoban.html?wid=" + index + "&time=" + Times + "&Opinio=" + Opinio, //iframe的url,no代表不显示滚动条
707
+//									title: '修改交办信息',
708
+//									area: ['48%', '40%'], //宽高
709
+//								});
710
+							window.location.href= "../CommonHtml/XGjiaoban.html?wid=" + index + "&time=" + Times + "&Opinio=" + Opinio; //iframe的url,no代表不显示滚动条
707 711
 
708 712
 							})
709 713
 							//修改回访意见
@@ -713,12 +717,13 @@
713 717
 								var result = $(this).attr("result");
714 718
 								var type = $(this).attr("type");
715 719
 								var issatisfie = $(this).attr("issatisfie");
716
-								layer.open({
717
-									type: 2,
718
-									content: "../CommonHtml/XGHF.html?wid=" + index + "&visituser=" + visituser + "&result=" + result + "&type=" + type + "&issatisfie=" + issatisfie, //iframe的url,no代表不显示滚动条
719
-									title: '修改交办信息',
720
-									area: ['58%', '60%'], //宽高
721
-								});
720
+//								layer.open({
721
+//									type: 2,
722
+//									content: "../CommonHtml/XGHF.html?wid=" + index + "&visituser=" + visituser + "&result=" + result + "&type=" + type + "&issatisfie=" + issatisfie, //iframe的url,no代表不显示滚动条
723
+//									title: '修改交办信息',
724
+//									area: ['58%', '60%'], //宽高
725
+//								});
726
+								window.location.href= "../CommonHtml/XGHF.html?wid=" + index + "&visituser=" + visituser + "&result=" + result + "&type=" + type + "&issatisfie=" + issatisfie; //iframe的url,no代表不显示滚动条
722 727
 							});
723 728
 							//领导批示
724 729
 							$(".LDPSS").click(function() {
@@ -726,40 +731,82 @@
726 731
 								var superuser = $(this).attr('superuser'); //批示人
727 732
 								var superopinion = $(this).attr("superopinion"); //批示内容
728 733
 								var type = $(this).attr("type"); //批示类型
729
-								layer.open({
730
-									type: 2,
731
-									content: "../CommonHtml/LDPS.html?wid=" + index + "&superuser=" + superuser + "&superopinion=" + superopinion + "&type=" + type, //iframe的url,no代表不显示滚动条
732
-									title: '修改交办信息',
733
-									area: ['58%', '60%'], //宽高
734
-								})
735
-							})
734
+//								layer.open({
735
+//									type: 2,
736
+//									content: "../CommonHtml/LDPS.html?wid=" + index + "&superuser=" + superuser + "&superopinion=" + superopinion + "&type=" + type, //iframe的url,no代表不显示滚动条
737
+//									title: '修改交办信息',
738
+//									area: ['58%', '60%'], //宽高
739
+//								})
740
+								window.location.href= "../CommonHtml/LDPS.html?wid=" + index + "&superuser=" + superuser + "&superopinion=" + superopinion + "&type=" + type; //iframe的url,no代表不显示滚动条
741
+						});
736 742
 							//办理情况
737 743
 							$(".BLQKS").click(function() {
738 744
 								var index = $(this).attr('index');
739 745
 								var UserName = $(this).attr('dealman');
740 746
 								var result = $(this).attr('result');
741
-								layer.open({
742
-									type: 2,
743
-									content: "../CommonHtml/XGBLS.html?wid=" + index + "&UserName=" + UserName + "&result=" + result, //iframe的url,no代表不显示滚动条
744
-									title: '修改办理信息',
745
-									area: ['58%', '60%'], //宽高
746
-								})
747
+//								layer.open({
748
+//									type: 2,
749
+//									content: "../CommonHtml/XGBLS.html?wid=" + index + "&UserName=" + UserName + "&result=" + result, //iframe的url,no代表不显示滚动条
750
+//									title: '修改办理信息',
751
+//									area: ['58%', '60%'], //宽高
752
+//								})
753
+								window.location.href="../CommonHtml/XGBLS.html?wid=" + index + "&UserName=" + UserName + "&result=" + result;
747 754
 							})
748 755
 							//修改审核延时
749 756
 							$(".LYSSH").click(function(){
750 757
 								var index = $(this).attr('index');
751 758
 								var result = $(this).attr('reason');
752
-								layer.open({
753
-									type: 2,
754
-									content: "../CommonHtml/YSSH.html?wid=" + index + "&reason=" + result , //iframe的url,no代表不显示滚动条
755
-									title: '修改延时审核信息',
756
-									area: ['58%', '60%'], //宽高
757
-								})
759
+//								layer.open({
760
+//									type: 2,
761
+//									content: "../CommonHtml/YSSH.html?wid=" + index + "&reason=" + result , //iframe的url,no代表不显示滚动条
762
+//									title: '修改延时审核信息',
763
+//									area: ['58%', '60%'], //宽高
764
+//								})
765
+								window.location.href="../CommonHtml/YSSH.html?wid=" + index + "&reason=" + result ;
766
+							})
767
+							//修改退回审核
768
+							$(".LTHSH").click(function(){
769
+								var index = $(this).attr('index');
770
+								var result = $(this).attr('reason');
771
+//								layer.open({
772
+//									type: 2,
773
+//									content: "../CommonHtml/lSHTH.html?wid=" + index + "&reason=" + result , //iframe的url,no代表不显示滚动条
774
+//									title: '修改延时审核信息',
775
+//									area: ['58%', '60%'], //宽高
776
+//								})
777
+								window.location.href="../CommonHtml/lSHTH.html?wid=" + index + "&reason=" + result  ;
758 778
 							})
759 779
 
760 780
 						}
761 781
 					})
762 782
 				}
783
+				//修改
784
+				$(".change").click(function(){
785
+					var str=$("#Change").val();
786
+//					layer.open({
787
+//					type: 2,
788
+//					content: "../CommonHtml/XGwordel.html?wid=" + str, //iframe的url,no代表不显示滚动条
789
+//					title: '编辑工单',
790
+//					area: ['85%', '80%'], //宽高
791
+					window.location.href="../CommonHtml/XGwordel.html?wid=" + str;
792
+//				});
793
+				})
794
+				function DL() {
795
+				$.getJSON(huayi.config.callcenter_url + 'UserAccount/GetNowUser', {
796
+					"token": $.cookie("token")
797
+				}, function(result) {
798
+					if(result.state.toLowerCase() == "success") {
799
+						console.log(result);
800
+						if(result.data.user.F_RoleCode == "ZXLDGLY" ) {
801
+							$(".authority").show();
802
+						} else {
803
+							$(".authority").hide();
804
+						}
805
+
806
+					}
807
+				})
808
+			}
809
+				
763 810
 			});
764 811
 		</script>
765 812
 	</body>

+ 0 - 1
WebUI/CallCenterWeb.UI/CommonHtml/XGHF.html

@@ -79,7 +79,6 @@
79 79
 						console.log(index);
80 80
 						parent.layer.close(index); //再执行关闭
81 81
 						parent.layer.msg("操作成功");
82
-						window.parent.location.reload();
83 82
 
84 83
 					}
85 84
 				})

+ 4 - 4
WebUI/CallCenterWeb.UI/CommonHtml/XGjiaoban.html

@@ -94,8 +94,7 @@
94 94
 		<script src="../js/adjustHeight.js"></script>
95 95
 		<script>
96 96
 			var wid = helper.request.queryString("wid");
97
-			var time = helper.request.queryString("time");//substring(0, row.F_CreateOn.indexOf(' '));
98
-			
97
+			var time = helper.request.queryString("time");//substring(0, row.F_CreateOn.indexOf(' '));			
99 98
 			var Opinio = unescape(decodeURI(helper.request.queryString("Opinio")));
100 99
 			$(document).ready(function() {
101 100
 				laydate.skin('blue');
@@ -126,8 +125,9 @@
126 125
 							var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
127 126
 							console.log(index);
128 127
 							parent.layer.close(index); //再执行关闭
129
-							parent.layer.msg("修改成功");
130
-//														window.parent.location.reload();
128
+							
129
+//													window.parent.location.reload();
130
+													parent.layer.msg("修改成功");
131 131
 						}
132 132
 					})
133 133
 				}

+ 393 - 0
WebUI/CallCenterWeb.UI/CommonHtml/XGwordel.html

@@ -0,0 +1,393 @@
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 href="../css/layer/need/layer.css" />
9
+		<link rel="stylesheet" href="../css/init.css" />
10
+		<title>新增诉求工单</title>
11
+		<style type="text/css">
12
+			.input {
13
+				background-color: #FFF;
14
+				background-image: none;
15
+				border: 1px solid #ccc;
16
+				border-radius: 1px;
17
+				color: inherit;
18
+				padding: 6px 12px
19
+			}
20
+			
21
+			.fjnr {
22
+				padding: 0!important;
23
+				border: none!important;
24
+			}
25
+		</style>
26
+	</head>
27
+
28
+	<body>
29
+
30
+		<div class="wrapper wrapper-content animated fadeInRight">
31
+			<div style="padding: 10px;" class="tj_content clearFix">
32
+				<div class="Common">
33
+					<table>
34
+						<tr>
35
+							<th class="Importent">姓名:</th>
36
+							<td>
37
+								<input type="text" id="cusname" />
38
+							</td>
39
+							<th>性别:</th>
40
+							<td>
41
+								<select class="select_" id="SEX">
42
+									<option value="">请选择</option>
43
+									<option value="0">男</option>
44
+									<option value="1">女</option>
45
+								</select>
46
+							</td>
47
+							<th>来源:</th>
48
+							<td>
49
+								<select class="select_" id="source">
50
+								</select>
51
+							</td>
52
+							<th class="Importent">投诉电话:</th>
53
+							<td>
54
+								<input type="text" id="cusphone" />
55
+							</td>
56
+						</tr>
57
+						<tr>
58
+							<th>邮箱:</th>
59
+							<td>
60
+								<input type="text" id="email" />
61
+							</td>
62
+							<th>邮编:</th>
63
+							<td>
64
+								<input type="text" id="zipcode" />
65
+							</td>
66
+							<th>联系电话:</th>
67
+							<td>
68
+								<input type="text" id="conphone" />
69
+							</td>
70
+						</tr>
71
+						<tr>
72
+							<th class="Importent">标题:</th>
73
+							<td colspan="7">
74
+								<input id="title" type="text" style="width: 100%;" />
75
+							</td>
76
+						</tr>
77
+						<tr>
78
+							<th class="Importent">内容:</th>
79
+							<td colspan="7">
80
+								<textarea data-adaptheight id="content" name="" rows="" cols="" style="width: 100%;"></textarea>
81
+							</td>
82
+						</tr>
83
+						<tr>
84
+							<th>事件地址:</th>
85
+							<td colspan="7">
86
+								<select class="select_" id="sourcearea">
87
+								</select>
88
+								<input id="sourceaddress" type="text" placeholder="输入详细地址" style="width:66%" />
89
+							</td>
90
+						</tr>
91
+						<tr>
92
+							<th>附件上传:</th>
93
+							<td colspan="7">
94
+								<!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
95
+								<span class="fjnr"></span>
96
+								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
97
+								<input class="input" type="button" value="上传" id="scwj" />
98
+								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
99
+								<input type="hidden" id="file" />
100
+							</td>
101
+						</tr>
102
+						<tr class="Nows_box Hidens">
103
+							<th>办理内容:</th>
104
+							<td colspan="7">
105
+
106
+								<input type="text" style="width: 100%;" id="result" />
107
+							</td>
108
+						</tr>
109
+						<tr>
110
+							<th class="Importent">主题词:</th>
111
+							<td>
112
+								<!--<input id="keys" type="text" placeholder="输入主题词" style="width:100%" />-->
113
+								<select class="select_" id="keys">
114
+									<option value=""></option>
115
+								</select>
116
+							</td>
117
+							<th>类型:</th>
118
+							<td>
119
+								<select class="select_" id="type">
120
+								</select>
121
+							</td>
122
+							<th>密级:</th>
123
+							<td>
124
+								<input  type="radio" name="mj" id="" value="0" />普通
125
+								<input type="radio" name="mj" id="" value="1" />保密
126
+							</td>
127
+							<th>紧急程度:</th>
128
+							<td>
129
+								<select class="select_" id="level">
130
+									<option value="0">选择</option>
131
+									<option value="1">普通</option>
132
+									<option value="2">紧急</option>
133
+								</select>
134
+							</td>
135
+							<!--<th class="">分管领导:</th>
136
+							<td colspan="4">
137
+								<input id="splituser" type="text" placeholder="" style="width:100%" readonly="readonly" />
138
+							</td>-->
139
+						</tr>
140
+					</table>
141
+					<div class="btn_box">
142
+						<button class="btns BC">保存</button>
143
+					</div>
144
+
145
+				</div>
146
+			</div>
147
+		</div>
148
+		<script src="../css/laydate/laydate.js"></script>
149
+		<script src="../js/adjustHeight.js"></script>
150
+		<script>
151
+			var wid = helper.request.queryString("wid");
152
+			var submit;
153
+
154
+			$(document).ready(function() {
155
+				QY($("#sourcearea"));
156
+				LY($("#source"));
157
+				LB($("#type"));
158
+				ZT($("#keys"))
159
+				//当即办理
160
+				$(".Nows").click(function() {
161
+					$(".Nows_box").toggle();
162
+				})
163
+				$(".Nows_").click(function() {
164
+					$(".Nows_box").toggle();
165
+				})
166
+				$(".BC").click(function() {
167
+					Add()
168
+				});
169
+				//上传附件
170
+				$("#scwj").click(function() {
171
+					$("#upFile").trigger("click");
172
+				})
173
+				$("#upFile").change(function() {
174
+					upload();
175
+				})
176
+				$("#scfj").click(function() {
177
+					$(".fjnr").text("");
178
+					$("#scfj").hide();
179
+				})
180
+				$(".SavedSubmit").click(function() {
181
+					submit = 1;
182
+					Add()
183
+				})
184
+				if(wid) {
185
+					$.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrder', {
186
+						workorderid: wid,
187
+						"token": $.cookie("token")
188
+					}, function(result) {
189
+						if(result.state.toLowerCase() == "success") {
190
+							var Data = result.data.data;
191
+							$("#cusname").val(Data[0].F_CusName);
192
+							$("#cusphone").val(Data[0].F_CusPhone);
193
+							$("#conphone").val(Data[0].F_ConPhone);
194
+							$("#title").val(Data[0].F_ComTitle);
195
+							$('#content').val(Data[0].F_ComContent);
196
+							$('#email').val(Data[0].F_Email);
197
+							$("#zipcode").val(Data[0].F_ZipCode);
198
+							$("#result").val(Data[0].F_Result);
199
+							//x性别
200
+							$("#SEX").val(Data[0].F_CusSex+'');
201
+							//来源
202
+								$("#source").val(Data[0].F_InfoSource+'');
203
+							//事件地址
204
+								$("#sourcearea").val(Data[0].F_SourceArea+'');
205
+							//主题词
206
+								$("#keys").val(Data[0].F_Key+'');
207
+							//类型
208
+								$("#type").val(Data[0].F_InfoType+'');
209
+							//紧急程度
210
+								$("#level").val(Data[0].F_Level+'');
211
+							if(Data[0].F_IsResult == 1) {
212
+								$(".Nows_box").toggle();
213
+							}
214
+							$(' input[name="mj"][value="' + Data[0].F_IsProtect + '"]').prop("checked", "checked");
215
+							
216
+							$('#sourceaddress').val(Data[0].F_SourceAddress);
217
+							$('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
218
+							console.log(Data);
219
+
220
+						}
221
+					})
222
+
223
+				}
224
+			});
225
+
226
+			///修改工单
227
+			function Add() {
228
+				var value = $(' input[name="banli"]:checked ').val();
229
+				var content = $("#content").val();
230
+				if(!$("#cusname").val()) {
231
+					layer.msg("诉求人不能为空");
232
+				} else if(!$("#cusphone").val()) {
233
+					layer.msg("投诉电话不能为空");
234
+				} else if(!$("#title").val()) {
235
+					layer.msg("标题不能为空");
236
+				} else if(!$("#content").val()) {
237
+					layer.msg("内容不能为空");
238
+				} else {
239
+					$.ajax({
240
+						type: "post",
241
+						url: huayi.config.callcenter_url + "WorkOrder/EditWorkOrderByAdmin",
242
+						dataType: 'json',
243
+						async: true,
244
+						data: {
245
+							workorderid: wid,
246
+							cusname: $("#cusname").val(), //=投诉人姓名
247
+							cussex: $("#SEX").val(),
248
+							cusphone: $("#cusphone").val(), //=投诉人电话
249
+							email: $("#email").val(),
250
+							zipcode: $("#zipcode").val(),
251
+							conphone: $("#conphone").val(),
252
+							title: $("#title").val(),
253
+							content: $("#content").val(),
254
+							files: $("#file").val(), //(多个用英文逗号,隔开)
255
+							sourcearea: $("#sourcearea").val(), //=事发地域id
256
+							sourceaddress: $('#sourceaddress').val(), //=事发详细地址
257
+							source: $("#source").val(), //=来源
258
+							result: $('#result').val(),
259
+							keys: $("#keys").val(), //=关键词id(多个用英文逗号,隔开)
260
+							type: $("#type").val(), //=类型
261
+							bigtype: $("#bigtype").val(), //=大类别
262
+							smalltype: $("#smalltype").val(), //=小类别
263
+							isprotect: $(' input[name="mj"]:checked ').val(), //=(0普通1保密)
264
+							level: $('#level').val(), //=(1普通2紧急)
265
+							token: $.cookie("token")
266
+						},
267
+						success: function(data) {
268
+							if(data.state.toLowerCase() == "success") {
269
+								var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
270
+								parent.layer.close(index); //再执行关闭
271
+								parent.load();
272
+								parent.layer.msg(data.message);
273
+							}
274
+
275
+						}
276
+					});
277
+				}
278
+			}
279
+			//来源
280
+			function LY(obj) {
281
+				obj.empty();
282
+				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById?", {
283
+					"token": $.cookie("token"),
284
+					id: 1
285
+				}, function(data) {
286
+					if(data.state.toLowerCase() == "success") {
287
+						var content = data.data;
288
+						$(content).each(function(i, n) {
289
+							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
290
+						})
291
+
292
+					}
293
+				})
294
+			}
295
+			//类别
296
+			function LB(obj) {
297
+				obj.empty();
298
+				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById?", {
299
+					"token": $.cookie("token"),
300
+					id: 2
301
+				}, function(data) {
302
+					if(data.state.toLowerCase() == "success") {
303
+						var content = data.data;
304
+						$(content).each(function(i, n) {
305
+							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
306
+						})
307
+					}
308
+				})
309
+			}
310
+			//		主题
311
+			function ZT(obj) {
312
+				obj.empty();
313
+				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById?", {
314
+					"token": $.cookie("token"),
315
+					id: 3
316
+				}, function(data) {
317
+					if(data.state.toLowerCase() == "success") {
318
+						var content = data.data;
319
+						$(content).each(function(i, n) {
320
+							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
321
+						})
322
+					}
323
+				})
324
+			}
325
+			//区域
326
+			function QY(obj) {
327
+				obj.empty();
328
+				$.getJSON(huayi.config.callcenter_url + "Area/GetAreaListById?", {
329
+					"token": $.cookie("token"),
330
+				}, function(data) {
331
+					if(data.state.toLowerCase() == "success") {
332
+						var content = data.data;
333
+						$(content).each(function(i, n) {
334
+							$("<option value='" + n.F_AreaId + "'>" + n.F_AreaName + "</option>").appendTo(obj);
335
+						})
336
+					}
337
+				})
338
+			}
339
+			//上传文件
340
+			function upload() {
341
+				var Files = document.getElementById("upFile").files;
342
+				if(Files.length > 0) {
343
+					var formData = new FormData();
344
+					for(var i = 0; i < Files.length; i++) {
345
+						formData.append('file' + i, Files[i]);
346
+					}
347
+					formData.append("token", $.cookie("token"));
348
+					$.ajax({
349
+						url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
350
+						type: "POST",
351
+						data: formData,
352
+						/**
353
+						 *必须false才会自动加上正确的Content-Type
354
+						 */
355
+						contentType: false,
356
+						/**
357
+						 * 必须false才会避开jQuery对 formdata 的默认处理
358
+						 * XMLHttpRequest会对 formdata 进行正确的处理
359
+						 */
360
+						processData: false,
361
+						success: function(result) {
362
+							document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
363
+							$("#upFile").change(function() {
364
+								upload();
365
+							});
366
+							var r = $.parseJSON(result);
367
+							if(r.state.toLowerCase() == "success") {
368
+								$(".fjnr").text(r.data[0].F_FileName);
369
+								var a = r.data;
370
+								var str = '';
371
+								var Str;
372
+
373
+								$(a).each(function(i, n) {
374
+									console.log(n.F_FileId);
375
+									str += n.F_FileId + ",";
376
+									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
377
+									console.log(Str);
378
+								})
379
+								$("#file").val(Str);
380
+								$("#scfj").show();
381
+							}
382
+						}
383
+					});
384
+				} else {
385
+					layer.confirm('请上传文件!', {
386
+						btn: ['确定']
387
+					});
388
+				}
389
+			}
390
+		</script>
391
+	</body>
392
+
393
+</html>

+ 66 - 0
WebUI/CallCenterWeb.UI/CommonHtml/lSHTH.html

@@ -0,0 +1,66 @@
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 href="../css/layer/need/layer.css" />
8
+    <link rel="stylesheet" href="../css/init.css" />    
9
+    		   <title>审核延时申请</title>
10
+    		   <style>
11
+    		   	.SQtime{
12
+    		   		width: 100%;
13
+				    display: block;
14
+				    /*height: 32px;*/
15
+    		   	}
16
+    		   </style>
17
+	</head>
18
+	<body>
19
+		<div class="Common">
20
+		<table >
21
+
22
+			<tr>
23
+				<th class="Importent">审核意见:</th>
24
+				<td colspan="2">
25
+					<textarea data-adaptheight id="reason" name="" rows="6" cols=""></textarea>
26
+				</td>
27
+			</tr>
28
+			<input type="hidden"id="delayid" />
29
+		</table>
30
+		<div class="btn_box">
31
+			<button class="btns Agree">保存</button>
32
+		</div>
33
+		</div>
34
+		<script src="../js/adjustHeight.js"></script>
35
+		   <script src="../css/laydate/laydate.js"></script>
36
+		   <script >
37
+            var wid = helper.request.queryString("wid");
38
+            var result = unescape(decodeURI(helper.request.queryString("reason")));
39
+			$(document).ready(function() {
40
+				$("#reason").val(result);
41
+				$(".Agree").click(function(){
42
+					JA();
43
+				})
44
+			})
45
+			//批示
46
+			function JA() {
47
+				$.post(huayi.config.callcenter_url + 'WorkOrder/EditAuditRebackByAdmin', {
48
+					id: wid,
49
+					reason:$("#reason").val(),
50
+					"token": $.cookie("token")
51
+				}, function(result) {
52
+					result = JSON.parse(result);
53
+					if(result.state.toLowerCase() == "success") {
54
+						
55
+					var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
56
+                    parent.layer.close(index); //再执行关闭
57
+						  parent.layer.msg("修改成功");
58
+                  	
59
+					}
60
+				})
61
+			}
62
+	
63
+		   </script>
64
+	</body>
65
+</html>
66
+

+ 358 - 0
WebUI/CallCenterWeb.UI/SystemManager/addTongXun.html

@@ -0,0 +1,358 @@
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.http.js"></script>
8
+    <script src="../Script/Common/huayi.config.js"></script>
9
+    <link rel="stylesheet" href="../css/init.css" />
10
+    <title>编辑通知查询</title>
11
+    <style>
12
+        .bj-title {
13
+            color: #ffffff;
14
+            background-color: #00a1cb;
15
+            padding: 8px 35px 8px 14px;
16
+            text-shadow: 0 1px 0 rgba(179, 142, 142, 0.5);
17
+            border: 1px solid #e5e5e5;
18
+        }
19
+
20
+        .bjCon table th {
21
+            padding: 5px 8px 5px 0;
22
+            text-align: right;
23
+            width: 30%;
24
+        }
25
+
26
+        .bjCon table td {
27
+            padding: 6px 0 5px 10px;
28
+            text-align: left;
29
+            color: #717171;
30
+            line-height: 200%;
31
+            position: relative;
32
+        }
33
+
34
+            .bjCon table td input[type=text] {
35
+                border: 1px solid #e5e5e5;
36
+                width: 240px;
37
+                outline: 0;
38
+                margin-right: 5px;
39
+                padding-left: 10px;
40
+            }
41
+            .bjCon table td textarea {
42
+                 border: 1px solid #e5e5e5;
43
+			    resize: none;
44
+			    width: 80%;
45
+			    vertical-align: middle;
46
+			    outline: none;
47
+            }
48
+
49
+            .bjCon table td select {
50
+                width: 240px;
51
+                background-color: #ffffff;
52
+                background-image: none !important;
53
+                filter: none !important;
54
+                border: 1px solid #e5e5e5;
55
+                outline: none;
56
+                height: 34px !important;
57
+                line-height: 30px;
58
+                margin-right: 5px;
59
+                padding-left: 10px;
60
+            }
61
+
62
+        .bjCon {
63
+            padding-top: 20px;
64
+            border: 1px solid #e5e5e5;
65
+            border-top: 0;
66
+        }
67
+
68
+        .bjright table td input {
69
+            padding-left: 44px!important;
70
+        }
71
+
72
+        .tub {
73
+            position: absolute;
74
+            left: 18px;
75
+            top: 13px;
76
+            font-size: 18px;
77
+            color: #ccc;
78
+        }
79
+
80
+        .box {
81
+            width: 55%;
82
+            margin: 0 auto;
83
+            margin-top: 5%;
84
+        }
85
+
86
+        .box .btop {
87
+            height: 35px;
88
+            background: #00a1cb;
89
+            color: #fff;
90
+            line-height: 35px;
91
+            padding: 0 15px;
92
+        }
93
+
94
+        .btl {
95
+            float: left;
96
+            margin: 0;
97
+        }
98
+
99
+        .btr {
100
+            float: right;
101
+            margin: 0;
102
+            cursor: pointer;
103
+        }
104
+
105
+        .boxCon {
106
+            width: 100%;
107
+            min-height: 400px;
108
+            background: #fff;
109
+            text-align: center;
110
+            padding: 10px 15px;
111
+            height: auto;
112
+            overflow-y: auto;
113
+        }
114
+
115
+        .model {
116
+            position: fixed;
117
+            top: 0;
118
+            right: 0;
119
+            bottom: 0;
120
+            left: 0;
121
+            height: 100%;
122
+            width: 100%;
123
+            background: rgba(0, 0, 0, 0.48);
124
+            z-index: 100;
125
+            display: none;
126
+        }
127
+
128
+        .tab-content {
129
+            text-align: left;
130
+            height: 200px;
131
+        }
132
+
133
+
134
+        .drfs {
135
+            display: none;
136
+        }
137
+         .radio-inline input[type=radio]{
138
+         	margin-top: 5px;
139
+         }
140
+        .daoHang{
141
+        	border-bottom: 1px solid #ccc;
142
+        	margin-bottom: 20px;
143
+        }
144
+    </style>
145
+
146
+</head>
147
+
148
+<body>
149
+	 <div class="container-fluid">
150
+	 <div class="daoHang clearfix">
151
+            <div class="dhLeft">
152
+                <sapn><i class="syIcon"></i>位置:<a id="ReIndex">首页</a>&gt;<a href="javaScript:;">系统管理</a>&gt;<a href="" class="nowPosition">添加修改通讯录</a></sapn>
153
+            </div>
154
+            <div class="dhRight"><a href="" title="刷新"><i class="fa fa-refresh"></i></a></div>
155
+        </div>
156
+        <div class="row-fluid clearfix">
157
+            <div class="bjleft col-md-12">
158
+                <div class="bj-title">
159
+                    <i class="fa fa-user"></i> 基本信息
160
+                </div>
161
+                <div class="bjCon">
162
+                    <table style="width: 100%;">
163
+                        <tr>
164
+                            <th>姓名:</th>
165
+                            <td><input type="text" class="Name" name="name" placeholder="请输入您的姓名"/><span>(必填)</span></td>
166
+                        </tr>
167
+                        <tr>
168
+                            <th>性别:</th>
169
+                            <td>
170
+                            	<div class="radio-inline ">
171
+									  <label>
172
+							  <input type="radio" name="sex" id="way1" value="男" checked="checked"> 男
173
+									  </label>
174
+								</div>
175
+                            	<div class="radio-inline">
176
+									  <label>
177
+							   <input type="radio" name="sex" id="way2" value="女"> 女
178
+									  </label>
179
+								</div>
180
+									                            	
181
+                            </td>
182
+                        </tr>
183
+                        
184
+                        <tr>
185
+                            <th>生日:</th>
186
+                             <td>
187
+                                <i class="fa fa-calendar tub"></i>
188
+                                <input type="text" id="sendTime" readonly="readonly" style=" padding-left: 30px;" />
189
+                            </td>
190
+                        </tr>
191
+                        
192
+                          <tr>
193
+                            <th>身份证号:</th>
194
+                            <td><input type="text" class="taskName" name="name" placeholder="请输入您的身份证号"/></td>
195
+                        </tr>
196
+                         <tr>
197
+                            <th>学历:</th>
198
+                            <td>
199
+                            	<div class="radio-inline ">
200
+									  <label>
201
+							  <input type="radio" name="learn" value="研究生"> 研究生
202
+									  </label>
203
+								</div>
204
+                            	<div class="radio-inline ">
205
+									  <label>
206
+							  <input type="radio" name="learn" value="本科"> 本科
207
+									  </label>
208
+								</div>
209
+                            	<div class="radio-inline">
210
+									  <label>
211
+							   <input type="radio" name="learn" value="专科"> 专科
212
+									  </label>
213
+								</div>
214
+                            	<div class="radio-inline">
215
+									  <label>
216
+							   <input type="radio" name="learn" value="高中"> 高中
217
+									  </label>
218
+								</div>
219
+                            	<div class="radio-inline">
220
+									  <label>
221
+							   <input type="radio" name="learn" value="初中及以下"> 初中及以下
222
+									  </label>
223
+								</div>
224
+									                            	
225
+                            </td>
226
+                        </tr>
227
+                        <tr>
228
+                            <th>手机号码:</th>
229
+                            <td>
230
+                            	<input type="text" class="phone" placeholder="请输入手机号" /><span>(必填)</span>
231
+                            </td>
232
+                        </tr>
233
+                        <tr>
234
+                            <th>其他电话:</th>
235
+                            <td>
236
+                            	<input type="text" class="phone" placeholder="请输入其他联系电话" />
237
+                            </td>
238
+                        </tr>
239
+                        <tr>
240
+                            <th>Email:</th>
241
+                            <td>
242
+                            	<input type="text" class="Email" placeholder="请输入邮箱" />
243
+                            </td>
244
+                        </tr>
245
+                        <tr>
246
+                            <th>单位:</th>
247
+                            <td>
248
+                            	<select name="" id="Company"></select>
249
+                            </td>
250
+                        </tr>
251
+                        <tr>
252
+                            <th>部门:</th>
253
+                            <td>
254
+                            	<select name="" id="Department"></select>
255
+                            </td>
256
+                        </tr>
257
+                        <tr>
258
+                            <th>职务:</th>
259
+                            <td>
260
+                            	<select name="" id="Position"></select>
261
+                            </td>
262
+                        </tr>
263
+                        <tr>
264
+                            <th>单位电话:</th>
265
+                            <td>
266
+                            	<input type="text" id="dwPhone"/>
267
+                            </td>
268
+                        </tr>
269
+                        <tr>
270
+                            <th>地址:</th>
271
+                            <td>
272
+                            	 <textarea name="" rows="" cols="" placeholder="请输入您的详细地址"></textarea>
273
+                            </td>
274
+                        </tr>
275
+                        <tr>
276
+                            <th>备注:</th>
277
+                            <td>
278
+                            	 <textarea name="" rows="" cols=""></textarea>
279
+                            </td>
280
+                        </tr>
281
+                    </table>
282
+                    <br />
283
+
284
+                </div>
285
+            </div>
286
+         
287
+            </div>
288
+        </div>
289
+        <p style="text-align: center; padding: 20px 0;">
290
+
291
+            <button class="btns sureCun" type="button">保存</button>
292
+            <button class="btns return" type="button">取消</button>
293
+        </p>
294
+
295
+   </div>
296
+    <script src="../js/laydate/laydate.js"></script>
297
+    <script>
298
+    	var ids=
299
+    	//返回首页
300
+		$('#ReIndex').click(function(){
301
+		 top.home_index();
302
+		})
303
+        var token = $.cookie("token");
304
+        laydate.render({
305
+			  elem: '#sendTime'
306
+			  ,format: 'yyyy-MM-dd',
307
+			  value: new Date() 
308
+			});
309
+			//单位 、部门、职位、
310
+			ZT($('#Company'),4);
311
+			ZT($('#Department'),5);
312
+			ZT($('#Position'),6);
313
+			function ZT(obj,id) {
314
+				obj.empty();
315
+				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
316
+					"token": $.cookie("token"),
317
+					id: id
318
+				}, function(data) {
319
+					if(data.state.toLowerCase() == "success") {
320
+						var content = data.data;
321
+						$(content).each(function(i, n) {
322
+							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
323
+						})
324
+					}
325
+				})
326
+		}
327
+        $('.sureCun').click(function () {
328
+            if ($('.Name').val() == '') {
329
+                layer.confirm('请输入您的姓名!', {
330
+                    btn: ['确定']
331
+                });
332
+                return;
333
+            }
334
+            else if ($('.phone').val() == '') {
335
+                layer.confirm('请输入您的手机号!', {
336
+                    btn: ['确定']
337
+                });
338
+                return;
339
+            }else {
340
+               $.ajax({
341
+               	type:"post",
342
+               	url:huayi.config.callcenter_url + "AddressBook/SaveInfo",
343
+               	async:true,
344
+               	data:{
345
+               		token: $.cookie("token"),
346
+               		id:ids
347
+               	}
348
+               });
349
+
350
+            }
351
+
352
+        })
353
+       
354
+
355
+    </script>
356
+</body>
357
+
358
+</html>

+ 25 - 9
WebUI/CallCenterWeb.UI/SystemManager/tongXun.html

@@ -54,7 +54,8 @@
54 54
 								<th data-field="F_CompanyId" data-align="center">单位名称</th>
55 55
 								<th data-field="F_Telephone" data-align="center">单位电话</th>
56 56
 								<th data-field="F_DepartmentId" data-align="center">部门</th>
57
-								<th data-field="F_DepartmentId" data-align="center">部门</th>
57
+								<th data-field="F_PositionId" data-align="center">职务</th>
58
+
58 59
 								<th data-field="F_Address" data-align="center">地址</th>
59 60
 								<th data-field="F_Note" data-align="center">备注</th>
60 61
 								<th data-align="center" data-formatter="caoZuo">操作</th>
@@ -75,8 +76,11 @@
75 76
 			})
76 77
 			var token = $.cookie("token");
77 78
 			var table = $('#table1');
78
-			initTable(token);
79
-			function initTable(token) {
79
+			initTable();
80
+			$('.searchGo').click(function(){
81
+				initTable();
82
+			})
83
+			function initTable() {
80 84
 				//先销毁表格
81 85
 				table.bootstrapTable('destroy');
82 86
 				//初始化表格,动态从服务器加载数据
@@ -115,20 +119,32 @@
115 119
 			}
116 120
 
117 121
 			function caoZuo(val, row) {
118
-				return '<div><a title="编辑" style="margin-right:5px;" onclick="XG(' + row.F_RepositoryId + ')"><i class="fa fa-pencil-square-o"></i></a><a  title="删除" onclick="del(' + row.F_RepositoryId + ')"><i class="fa fa-remove"></i></a>  </div>'
122
+				return '<div><a title="编辑" style="margin-right:5px;" onclick="XG(' + row.F_UserId + ')"><i class="fa fa-pencil-square-o"></i></a><a  title="删除" onclick="del(' + row.F_UserId + ')"><i class="fa fa-remove"></i></a>  </div>'
119 123
 			}
120 124
 			//添加
121 125
 			$('.return').click(function() {
122
-				top.$("iframe:visible")[0].src = "VoiceNotification/addTongZhi.html";
126
+				top.$("iframe:visible")[0].src = "SystemManager/addTongXun.html";
123 127
 			})
124 128
 			//删除
125 129
 			function del(id) {
126 130
 				var laye = layer.confirm('您确定要删除吗?', {
127 131
 					btn: ['确定', '取消'] //可以无限个按钮
128 132
 				}, function(index, layero) {
129
-					//按钮【按钮一】的回调
130
-					layer.msg('删除成功', {
131
-						icon: 5
133
+					//按钮【按钮一】的回调 AddressBook/DelAddressBook
134
+					$.ajax({
135
+						type:"post",
136
+						url:huayi.config.callcenter_url + "AddressBook/GetList",
137
+						async:true,
138
+						dataType:'json',
139
+						data:{
140
+							token:$.cookie("token"),
141
+							infoid:id
142
+						},
143
+						success:function(data){
144
+							if(data.state.toLowerCase()=='success'){
145
+								layer.msg('删除成功');
146
+							}
147
+						}
132 148
 					});
133 149
 				}, function(index) {
134 150
 					//按钮【按钮二】的回调
@@ -137,7 +153,7 @@
137 153
 			}
138 154
 			//修改
139 155
 			function XG(id) {
140
-				top.$("iframe:visible")[0].src = "VoiceNotification/changeTongZhi.html?id=" + id;
156
+				top.$("iframe:visible")[0].src = "SystemManager/addTongXun.html?id=" + id;
141 157
 			}
142 158
 		</script>
143 159
 	</body>

+ 5 - 41
WebUI/CallCenterWeb.UI/WebSite/NewsList.html

@@ -519,8 +519,10 @@
519 519
 							$(".px").val(data.data.ordernum);
520 520
 							$("#Id").val(data.data.id);
521 521
 							var img = data.data.img;
522
+							var urlname = data.data.urlname;
522 523
 							if(img) {
523
-								$(".tpname").text(img.substring(img.lastIndexOf("/") + 1, img.length));
524
+								$("#berImg").val(img.substring(img.lastIndexOf("/") + 1, img.length));
525
+								$("#aftImg").val(img.substring(urlname.lastIndexOf("/") + 1, urlname.length));
524 526
 							}
525 527
 							if(data.data.iszd) {
526 528
 								$(".iszd").prop("checked", true);
@@ -654,44 +656,6 @@
654 656
 					$(".iszd").prop("checked", false);
655 657
 					editor.html('');
656 658
 				}
657
-
658
-//				//上传图片
659
-//				function uploadtp() {
660
-//					if(document.getElementById("upFile").files.length > 0) {
661
-//						var formData = new FormData();
662
-//						formData.append("upFile", document.getElementById("upFile").files[0]);
663
-//						formData.append("token", $.cookie("token"));
664
-//						$.ajax({
665
-//							url: huayi.config.callcenter_url + "WorkOrder/UploadFile",
666
-//							type: "POST",
667
-//							data: formData,
668
-//							/**
669
-//							 *必须false才会自动加上正确的Content-Type
670
-//							 */
671
-//							contentType: false,
672
-//							/**
673
-//							 * 必须false才会避开jQuery对 formdata 的默认处理
674
-//							 * XMLHttpRequest会对 formdata 进行正确的处理
675
-//							 */
676
-//							processData: false,
677
-//							success: function(result) {
678
-//								document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
679
-//								$("#upFile").change(function() {
680
-//									uploadtp();
681
-//								});
682
-//								var r = $.parseJSON(result);
683
-//								if(r.state.toLowerCase() == "success") {
684
-//									$(".tpname").text(r.data);
685
-//									layer.msg("上传成功");
686
-//								}
687
-//							}
688
-//						});
689
-//					} else {
690
-//						layer.confirm('请上传图片!', {
691
-//							btn: ['确定']
692
-//						});
693
-//					}
694
-//				}
695 659
 				//图片裁剪
696 660
 				var o = $(".image-crop > img");
697 661
 				$(o).cropper({
@@ -727,8 +691,8 @@
727 691
 							result = $.parseJSON(result);
728 692
 							if(result.state.toLowerCase() == "success") {
729 693
 								//$(".yhtx").attr("src",result.data);
730
-								$("#berImg").val(huayi.config.callcenter_url +result.data.imgurl);
731
-								$("#aftImg").val(huayi.config.callcenter_url +result.data.smallimgurl);
694
+								$("#berImg").val(result.data.imgurl);
695
+								$("#aftImg").val(result.data.smallimgurl);
732 696
 								layer.msg("上传成功");
733 697
 							}
734 698
 						})

+ 19 - 10
WebUI/CallCenterWeb.UI/WebSite/email.html

@@ -1,4 +1,4 @@
1
-<!DOCTYPE html>
1
+<!DOCTYPE html>
2 2
 <html>
3 3
 
4 4
 <head>
@@ -21,6 +21,15 @@
21 21
             text-align: left;
22 22
             cursor: pointer;
23 23
         }
24
+       
25
+   .mytable {
26
+            table-layout: fixed;
27
+        }
28
+    .mytable tbody tr td {
29
+        overflow: hidden;
30
+        text-overflow: ellipsis;
31
+        white-space: nowrap;
32
+    }
24 33
     </style>
25 34
 </head>
26 35
 
@@ -34,24 +43,24 @@
34 43
         </div>
35 44
         <div class="treeTable clearfix">
36 45
             <div class="tableCon">
37
-                <table id="table1" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
46
+                <table id="table1" class="mytable table-bordered" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
38 47
                     <thead>
39 48
                         <tr>
40 49
 							<th data-field="state" data-checkbox="true" data-align="center"></th>
41
-							<th data-align="center" data-formatter="setCode">编号</th>
42
-                            <th data-field="E_Title" data-align="center">主题</th>
43
-                            <th data-field="E_Content" data-align="center">内容</th>
44
-                            <th data-field="E_Address" data-align="center">邮件地址</th>
45
-                            <th data-field="E_EmailTime" data-align="center">时间</th>
46
-                            <th data-field="E_Email" data-align="center">发件人</th>
50
+							<th data-align="center" data-formatter="setCode" data-width="6%">编号</th>
51
+                            <th data-field="E_Title" data-align="center" data-width="20%">主题</th>
52
+                            <th data-field="E_Content" align="left" data-width="30%">内容</th>
53
+                            <th data-field="E_Address" data-align="center" data-width="14%">邮件地址</th>
54
+                            <th data-field="E_EmailTime" data-align="center" data-width="14%">时间</th>
55
+                            <th data-field="E_Email" data-align="center" data-width="10%">发件人</th>
47 56
                             <!--<th data-field="E_AttachmentsUrl" data-align="center">附件</th>-->
48
-                            <th data-align="center"  data-formatter="detail">操作</th>
57
+                            <th data-align="center"  data-formatter="detail" data-width="6%">操作</th>
49 58
                             <!--data-field="W_Url"-->
50 59
                         </tr>
51 60
                     </thead>
52 61
                     <tbody id="tbody"></tbody>
53 62
                 </table>
54
-				<p style="margin-top: 20px;"><button class="btns allDel">批量删除</button></p>
63
+				<p style="margin-top: 20px;"><button class="btns allDel">批量删除</button></p>                
55 64
             </div>
56 65
         </div>
57 66
     </div>

+ 19 - 8
WebUI/CallCenterWeb.UI/WebSite/weiBo.html

@@ -1,4 +1,4 @@
1
-<!DOCTYPE html>
1
+<!DOCTYPE html>
2 2
 <html>
3 3
 
4 4
 <head>
@@ -21,6 +21,14 @@
21 21
             text-align: left;
22 22
             cursor: pointer;
23 23
         }
24
+        .mytable {
25
+            table-layout: fixed;
26
+        }
27
+        .mytable tbody tr td {
28
+            overflow: hidden;
29
+            text-overflow: ellipsis;
30
+            white-space: nowrap;
31
+        }
24 32
     </style>
25 33
 </head>
26 34
 
@@ -34,15 +42,15 @@
34 42
         </div>
35 43
         <div class="treeTable clearfix">
36 44
             <div class="tableCon">
37
-                <table id="table1" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
45
+                <table id="table1" class="mytable table-bordered" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
38 46
                     <thead>
39 47
                         <tr>
40
-                            <th data-field="W_Id" data-align="center">微博ID</th>
41
-                            <th data-field="W_Text" data-align="center" >微博信息</th>
42
-                            <th data-field="W_Source" data-align="center">关联</th>
43
-                            <th data-field="W_Name" data-align="center" >发布人</th>
44
-                            <th data-field="W_Created_at" data-align="center" >发布时间</th>
45
-                            <th data-align="center"  data-formatter="detail">操作</th>
48
+                            <th data-field="W_Id" data-align="center" data-width="16%">微博ID</th>
49
+                            <th data-field="W_Text" data-align="left" data-width="30%">微博信息</th>
50
+                            <th data-field="W_Source" data-align="center" data-width="10%">关联</th>
51
+                            <th data-field="W_Name" data-align="center" data-width="20%">发布人</th>
52
+                            <th data-field="W_Created_at" data-align="center" data-width="14%">发布时间</th>
53
+                            <th data-align="center"  data-formatter="detail" data-width="10%">操作</th>
46 54
                             <!--data-field="W_Url"-->
47 55
                         </tr>
48 56
                     </thead>
@@ -51,6 +59,9 @@
51 59
 
52 60
             </div>
53 61
         </div>
62
+        提示:<BR />
63
+        1、此接口最多只返回最新的5条数据。参考网址:http://open.weibo.com/wiki/2/comments/show <br />
64
+        2、接口访问频次权限。参考网址:http://open.t.sina.com.cn/wiki/index.php/Rate-limiting?retcode=0
54 65
     </div>
55 66
     <script src="../css/layer/layer.js"></script>
56 67
     <script src="../js/weiBo.js"></script>

+ 11 - 10
WebUI/CallCenterWeb.UI/WebSite/weiBoDetail.html

@@ -145,17 +145,24 @@
145 145
 			data:{
146 146
 				token:$.cookie("token"),
147 147
 				id:id,
148
-				page:1,
149
-				pagesize:10
148
+				page:page,
149
+				pagesize:pagesize
150 150
 			
151 151
 			},
152 152
 			success:function(data){
153 153
 				var con=data.rows;
154 154
 //				if(data.state.toLowerCase()=='success'){
155
+				  page_count=con.length;
156
+					if(con.length==0){
157
+						page_count=0;
158
+						$('<li>' +
159
+						'<div class="comment_con">已无评论...</div>'+
160
+						'</li>').appendTo('.comment_list')
161
+					}
155 162
 					$(con).each(function(i,n){
156 163
 						$('<li>'+
157 164
 		             		'<div class="comment_person">'+
158
-		             		'<span class="floor">#'+parseInt(page-1)*pagesize+parseInt(i+1)+'楼</span>'+
165
+		             		'<span class="floor">#'+parseInt(parseInt(page-1)*pagesize+parseInt(i+1))+'楼</span>'+
159 166
 		             		'<span class="comment_time">'+ n.W_Created_at+'</span>'+
160 167
 		             		'<sapn>'+ n.W_Name+'</sapn>'+
161 168
 		             		'</div>'+
@@ -163,13 +170,7 @@
163 170
 		             	'</li>').appendTo('.comment_list');
164 171
 					})
165 172
 					
166
-					   page_count=con.length;
167
-							if(con.length==0){
168
-								page_count=0;
169
-								$('<li>' +
170
-								'<div class="comment_con">已无数据!请返回上一页...</div>'+
171
-								'</li>').appendTo('.comment_list')
172
-							}
173
+					 
173 174
 //				}
174 175
 			}
175 176
 		});