Przeglądaj źródła

地图对接修改

miaofuhao 6 lat temu
rodzic
commit
b42257f5ce

+ 27 - 5
WebUI/CallCenterWeb.UI/CommonHtml/WorkDatil.html

@@ -157,6 +157,16 @@
157 157
 									</td>
158 158
 								</tr>
159 159
 								<tr>
160
+			                        <th class="Importent"></th>
161
+			                        <td colspan="7">
162
+			                        	<div style="width:710px">
163
+							                <div id="myMap" style="width:100%;height:400px;"></div>
164
+							                <input type="hidden" class="store_Lng" value="115.659773"/>
165
+			        						<input type="hidden" class="store_Lat" value="34.395449" />
166
+							            </div>
167
+			                    	</td>
168
+			                    </tr>
169
+								<tr>
160 170
 									<th>类型:</th>
161 171
 									<td>
162 172
 										<span class="LX"></span>
@@ -494,7 +504,8 @@
494 504
 				</div>
495 505
 			</div>
496 506
 		</div>
497
-
507
+		<script src="https://api.map.baidu.com/api?v=2.0&ak=ZG4gLQZUD6Eq1K11cqlYAR4by8CKgLyu&callback=mapinit"></script>
508
+		<script src="../js/appeal/mapDeti.js"></script>
498 509
 		<script>
499 510
 			var wid = helper.request.queryString("wid");
500 511
 			$(document).ready(function() {
@@ -529,10 +540,17 @@
529 540
 				});
530 541
 
531 542
 				function load() {
532
-					$.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrder', {
533
-						workorderid: wid,
534
-						"token": $.cookie("token")
535
-					}, function(result) {
543
+					$.ajax({
544
+	                    type: "get",
545
+	                    url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrder",
546
+	                    dataType: 'json',
547
+	                    async: false,
548
+	                    data: {
549
+	                    	workorderid: wid,
550
+	                    	token: $.cookie("token")
551
+	                    },
552
+	                    success: function (result) {
553
+						
536 554
 						if(result.state.toLowerCase() == "success") {
537 555
 							var Data = result.data.data;
538 556
 							var State = Data[0].F_WorkState;
@@ -545,6 +563,8 @@
545 563
 							$(".F_ComTitle").text(Data[0].F_ComTitle);
546 564
 							$('.F_ComContent').text(Data[0].F_ComContent);
547 565
 							$('.F_SourceAddress').text(Data[0].F_SourceAddress);
566
+							$(".store_Lng").val(Data[0].F_Longitude);
567
+	                        $(".store_Lat").val(Data[0].F_Latitude);
548 568
 							$('.F_FinalOpinion').text(Data[0].F_FinalOpinion);
549 569
 							$('.LRSJ').text(Data[0].F_CreateTime); //录入时间
550 570
 							$('.submitTime').text(Data[0].F_SubmitTime); //提交时间
@@ -935,6 +955,8 @@
935 955
 							})
936 956
 
937 957
 						}
958
+					
959
+						}
938 960
 					})
939 961
 				}
940 962
 

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


+ 72 - 33
WebUI/CallCenterWeb.UI/index.html

@@ -977,6 +977,15 @@
977 977
         .source_area input[type="text"]{
978 978
         	width: 392px;
979 979
         }
980
+        .source_area{
981
+        	position: relative;
982
+        }
983
+        .source_area img{
984
+        	display: inline;
985
+        	width: 15px;
986
+        	margin-left: 10px;
987
+        	margin-top: -5px;
988
+        }
980 989
         /*转县级*/
981 990
         .hw_through p select{
982 991
         	height: 19px;
@@ -1033,16 +1042,18 @@
1033 1042
         	color: #FFFFFF;
1034 1043
         }
1035 1044
         .mapPos{
1036
-        	position: fixed;
1045
+        	margin-top: 75px;
1046
+        	margin-left: 83px;
1047
+        	/*position: fixed;
1037 1048
 			top: 0;
1038 1049
 			left: 0;
1039 1050
 			right: 0;
1040 1051
 			bottom: 0;
1041 1052
 			margin: auto;
1042 1053
 			display: none;
1043
-			z-index: 3333;
1054
+			z-index: 3333;*/
1044 1055
         }
1045
-        .mapBJ{
1056
+        /*.mapBJ{
1046 1057
         	position: fixed;
1047 1058
 			top: 0;
1048 1059
 			left: 0;
@@ -1056,7 +1067,32 @@
1056 1067
 		    -moz-opacity:0.5;  
1057 1068
 		    -khtml-opacity: 0.5;  
1058 1069
 		    opacity: 0.5;  
1059
-        }
1070
+        }*/
1071
+       .reposit{
1072
+			-moz-border-radius: 20px; 
1073
+			-webkit-border-radius: 20px; 
1074
+			border-radius: 20px; 
1075
+			position:absolute; 
1076
+			background:#00a1cb; 
1077
+			color: #FFFFFF;
1078
+			z-index:2; 
1079
+			width:40px; 
1080
+			height:40px; 
1081
+			line-height: 40px;
1082
+			text-align: center;
1083
+			right: 5px;
1084
+			top: 20px;
1085
+       }
1086
+       .repoConte{
1087
+       		position: absolute;
1088
+       		left:220px;
1089
+       		top: 727px;
1090
+       		display: none;
1091
+       		width: 1200px;
1092
+       		background: #FFFFFF;
1093
+       		height: 300px;
1094
+       		overflow-y: scroll;
1095
+       }
1060 1096
     </style>
1061 1097
 </head>
1062 1098
 
@@ -1302,22 +1338,20 @@
1302 1338
         <!--右侧边栏开始-->
1303 1339
         <div id="right-sidebar">
1304 1340
             <div class="sidebar-container">
1305
-
1306 1341
                 <ul class="nav nav-tabs navs-3 right-tab">
1307
-
1308 1342
                     <li class="active">
1309 1343
                         <a data-toggle="tab" href="#tab-1">
1310 1344
                             <!--<i class="fa fa-gear"></i>-->
1311
-                            未读
1345
+                            	未读
1312 1346
                         </a>
1313 1347
                     </li>
1314 1348
                     <li class="">
1315 1349
                         <a data-toggle="tab" href="#tab-2">
1316
-                            已读
1350
+                           	 已读
1317 1351
                         </a>
1318 1352
                     </li>
1319 1353
                     <!--<li><a data-toggle="tab" href="#tab-3">
1320
-                          全部
1354
+                          	全部
1321 1355
                     </a>
1322 1356
                     </li>-->
1323 1357
                 </ul>
@@ -1497,7 +1531,8 @@
1497 1531
             <div class="ld-sercon">
1498 1532
                 <div class="complain" style="display:block;">
1499 1533
                     <div class="ld-sercon-con clearfix">
1500
-                        <div class="Pre-second second-con addgd">
1534
+                        <div class="Pre-second second-con addgd" style="position: relative;">
1535
+                        	<div class="reposit">知</div>
1501 1536
                             <form>
1502 1537
                                 <div class="form-group dicValueList clearfix" id="dicValueList">
1503 1538
                                     <span class="col-sm-1 Import">
@@ -1586,15 +1621,16 @@
1586 1621
                                                 <option value="2">紧急</option>
1587 1622
                                             </select>
1588 1623
                                         </span>
1589
-                                    </div>
1590
-                                    <div class="form-group clearfix">
1591 1624
                                         <span class="col-sm-1 Import">
1592
-                                            主题词:
1625
+                                        	主题词:
1593 1626
                                         </span>
1594 1627
                                         <span class="col-sm-3">
1595 1628
                                             <!-- <input type="text" style="width:100%;"  id="keys"/>-->
1596 1629
                                             <select name="" id="keys"></select>
1597 1630
                                         </span>
1631
+                                    </div>
1632
+                                    <div class="form-group clearfix">
1633
+                                       
1598 1634
                                         <span class="col-sm-1">
1599 1635
                                            	 事发区域:
1600 1636
                                         </span>
@@ -1602,11 +1638,12 @@
1602 1638
                                             <select name="sourcearea" id="sourcearea">
1603 1639
                                                 <option value="0">请选择</option>
1604 1640
                                             </select>
1605
-                                            <input id="sourceaddress" autocomplete="off" type="text" placeholder="输入详细地址" />
1641
+                                            <img src="img/map_nav.png"/>
1642
+                                            <input id="sourceaddress" type="text" placeholder="输入详细地址" />
1606 1643
                                         </span>
1607 1644
                                         <div class="mapBJ" style="width:100%; height:100%"></div>
1608 1645
                                         <div class="mapPos" style="width:710px; height:400px;">
1609
-							                <div id="myMap" style="width:100%; height:400px;"></div>
1646
+							                <div id="myMap" style="width:710px; height:400px;"></div>
1610 1647
 							                <input type="hidden" class="store_Lng" value="115.659773"/>
1611 1648
 			        						<input type="hidden" class="store_Lat" value="34.395449" />
1612 1649
 							            </div>
@@ -1707,28 +1744,30 @@
1707 1744
                 </div>
1708 1745
 
1709 1746
             </div>
1710
-            <!--右侧下方内容区-->
1711
-            <div class="ldcr-bottom" style="margin-top:10px;">
1712
-                <div class="ldcrb-top clearfix">
1713
-                    <ul class="clearfix">
1714
-                        <li style="border-bottom:1px solid #69cbd0; background: #000;color: #fff;">知识库</li>
1715
-                        <!--<li style="border-bottom:1px solid #f95a83;border-top:1px solid #000;border-right:1px solid #000;">更多内容</li>-->
1716
-                    </ul>
1717
-                    <div class="ld-search">
1718
-                        <div class="sear-inp">
1719
-                            <input type="text" class="search" placeholder="搜索问题、内容或者标题" />
1720
-                        </div>
1721
-                        <div class="searIcon">
1722
-                        </div>
1723
-                    </div>
1747
+            
1748
+        </div>
1749
+    </div>
1750
+    <!--来电弹屏结束-->
1751
+    
1752
+    <!--知识库内容-->
1753
+    <div class="ldcr-bottom repoConte">
1754
+        <div class="ldcrb-top clearfix">
1755
+            <ul class="clearfix">
1756
+                <li style="border-bottom:1px solid #69cbd0; background: #000;color: #fff;">知识库</li>
1757
+                <!--<li style="border-bottom:1px solid #f95a83;border-top:1px solid #000;border-right:1px solid #000;">更多内容</li>-->
1758
+            </ul>
1759
+            <div class="ld-search">
1760
+                <div class="sear-inp">
1761
+                    <input type="text" class="search" placeholder="搜索问题、内容或者标题" />
1724 1762
                 </div>
1725
-                <div class="detail-con">
1726
-                    <ul></ul>
1763
+                <div class="searIcon">
1727 1764
                 </div>
1728 1765
             </div>
1729 1766
         </div>
1767
+        <div class="detail-con">
1768
+            <ul></ul>
1769
+        </div>
1730 1770
     </div>
1731
-    <!--来电弹屏结束-->
1732 1771
     <!--外呼键盘-->
1733 1772
     <div class="WH animated fadeInDown hidens">
1734 1773
         <!--top-->
@@ -2137,7 +2176,7 @@
2137 2176
 			<input type="hidden " class="hidnum " />
2138 2177
 		</div>
2139 2178
     <!--在线客服结束-->
2140
-<input type="hidden" id="cqorder" />
2179
+	<input type="hidden" id="cqorder" />
2141 2180
 	<script src="https://api.map.baidu.com/api?v=2.0&ak=ZG4gLQZUD6Eq1K11cqlYAR4by8CKgLyu&callback=mapinit"></script>
2142 2181
     <script src="./js/plugins/cropper/cropper.min.js"></script>
2143 2182
     <script src="./js/jquery.md5.js"></script>

Plik diff jest za duży
+ 292 - 0
WebUI/CallCenterWeb.UI/js/appeal/mapDeti.js


+ 5 - 5
WebUI/CallCenterWeb.UI/js/appeal/mapIndex.js

@@ -1,6 +1,6 @@
1 1
 window.onload = function() {
2 2
 	
3
-	//键盘登录事件
3
+	//键盘事件
4 4
 	$("#sourceaddress").bind('keypress', function(event) {
5 5
 		if($('#sourcearea').val() == "") {
6 6
 			layer.msg("请选择区", {
@@ -272,10 +272,10 @@ window.onload = function() {
272 272
 	map.enableScrollWheelZoom(true); //开启鼠标滚轮缩放
273 273
 	// 创建地址解析器实例
274 274
 	var myGeo = new BMap.Geocoder();
275
-	$("#sourceaddress").focus(function(){
276
-	  $(".mapPos").show();
277
-	  $(".mapBJ").show();
278
-	  loadDefulatMap(loadData)
275
+	$(".source_area img").click(function(){
276
+	  //$(".mapPos").toggle();
277
+	  //$(".mapBJ").show();
278
+	  //loadDefulatMap(loadData)
279 279
 	});
280 280
 	loadDefulatMap(loadData); //初始化地图以及加载初始化数据
281 281
 	// 创建控件

+ 4 - 0
WebUI/CallCenterWeb.UI/js/index.js

@@ -64,6 +64,7 @@ $(document).ready(function () {
64 64
         $('.ldtp-con').removeClass('fadeInDown');
65 65
         $('.ldtp-con').addClass('fadeOutUp');
66 66
         $('.ldtp-con').css("display", "none");
67
+        $(".repoConte").hide();
67 68
         Clean();
68 69
         obj.Type = "SayFree";
69 70
         Send();
@@ -537,6 +538,9 @@ $(document).ready(function () {
537 538
 		$(".mapPos").hide();
538 539
 	  	$(".mapBJ").hide();
539 540
 	})
541
+	$(".reposit").click(function(){
542
+		$(".repoConte").toggle();
543
+	})
540 544
     //加载知识库
541 545
     loadZSK();
542 546
     //加载左侧导航菜单

+ 3 - 1
WebUI/CallCenterWeb.UI/js/main.js

@@ -260,7 +260,7 @@ function IncomingBack(data) {
260 260
     $(".ldtime").text(getNowFormatDate());
261 261
     $(".thsc").text("00:00");
262 262
     $(".hidCallID").val(data.CallID);
263
-
263
+	debugger
264 264
     //获取电话所属地
265 265
     $.getJSON(huayi.config.callcenter_url + 'CallInScreen/GetPhoneLocation', {
266 266
         "tel": $(".hidTel").val(),
@@ -390,6 +390,7 @@ function LineStateAgentBack(data) {
390 390
         }
391 391
     }
392 392
     if (data.State == '6') {
393
+    	debugger
393 394
         $(".hwzt").text('通话中'); //左下角状态显示
394 395
         $(".fwzt").removeClass("bl").addClass("br");
395 396
         $(".zxzt").removeClass("bl").addClass("br");
@@ -650,6 +651,7 @@ function RecordPathBack(data) {
650 651
 //在线坐席信息
651 652
 function GetAgentListBack(data) {
652 653
     console.log(data)
654
+    debugger
653 655
     $.ajax({
654 656
         type: "get",
655 657
         url: huayi.config.callcenter_url + "SeatMonitoring/GetAgentList",