Browse Source

地图对接

miaofuhao 6 years ago
parent
commit
798a41c9f0

+ 21 - 3
WebUI/CallCenterWeb.UI/Appeal/AddAppeal.html

@@ -100,10 +100,25 @@
100 100
                         <th class="Importent">事件地址:</th>
101 101
                         <td colspan="7">
102 102
                             <select class="select_" id="sourcearea"></select>
103
-                            <input id="sourceaddress" type="text" placeholder="输入详细地址" style="width:66%" />
104 103
                         </td>
105 104
                     </tr>
106 105
                     <tr>
106
+                    	<th class="Importent"></th>
107
+                        <td colspan="7">
108
+                        	<input id="sourceaddress" type="text" placeholder="输入详细地址" style="width:50%; padding-left: 15px;" />
109
+                    	</td>
110
+                    </tr>
111
+                    <tr>
112
+                        <th class="Importent"></th>
113
+                        <td colspan="7">
114
+                        	<div style="width:710px">
115
+				                <div id="myMap" style="width:100%;height:400px;"></div>
116
+				                <input type="hidden" class="store_Lng" value="115.659773"/>
117
+        						<input type="hidden" class="store_Lat" value="34.395449" />
118
+				            </div>
119
+                    	</td>
120
+                    </tr>
121
+                    <tr>
107 122
                         <th>附件上传:</th>
108 123
                         <td colspan="7">
109 124
                             <div class="fileBox"></div>
@@ -154,7 +169,7 @@
154 169
                         </td>
155 170
                         <th>紧急程度:</th>
156 171
                         <td>
157
-                            <select class="select_" id="level">
172
+                            <select class="select_" id="level"> 
158 173
                                 <!--<option value="0">选择</option>-->
159 174
                                 <option value="1">普通</option>
160 175
                                 <option value="2">紧急</option>
@@ -166,12 +181,13 @@
166 181
                     <button class="btns BC">保存</button>
167 182
                     <button class="btns SavedSubmit">保存并提交</button>
168 183
                 </div>
169
-
170 184
             </div>
171 185
         </div>
172 186
     </div>
187
+    <script src="https://api.map.baidu.com/api?v=2.0&ak=ZG4gLQZUD6Eq1K11cqlYAR4by8CKgLyu&callback=mapinit"></script>
173 188
     <script src="../css/laydate/laydate.js"></script>
174 189
     <script src="../js/adjustHeight.js"></script>
190
+    <script src="../js/appeal/index.js"></script>
175 191
     <script>
176 192
         var submit;
177 193
         $(document).ready(function () {
@@ -246,6 +262,8 @@
246 262
                         files: $("#file").val(), //(多个用英文逗号,隔开)
247 263
                         sourcearea: $("#sourcearea").val(), //=事发地域id
248 264
                         sourceaddress: $('#sourceaddress').val(), //=事发详细地址
265
+                        longitude: $('.store_Lng').val(),
266
+                        latitude: $('.store_Lat').val(),
249 267
                         source: $("#source").val(), //=来源
250 268
                         isresult: $(' input[name="banli"]:checked ').val(), //=(0转办1直办)
251 269
                         result: $('#result').val(),

+ 72 - 45
WebUI/CallCenterWeb.UI/CommonHtml/AddAppeal.html

@@ -87,10 +87,25 @@
87 87
                         <th class="Importent">事件地址:</th>
88 88
                         <td colspan="7">
89 89
                             <select class="select_" id="sourcearea"></select>
90
-                            <input id="sourceaddress" type="text" placeholder="输入详细地址" style="width:66%" />
91 90
                         </td>
92 91
                     </tr>
93 92
                     <tr>
93
+                    	<th class="Importent"></th>
94
+                        <td colspan="7">
95
+                        	<input id="sourceaddress" type="text" placeholder="输入详细地址" style="width:50%; padding-left: 15px;" />
96
+                    	</td>
97
+                    </tr>
98
+                    <tr>
99
+                        <th class="Importent"></th>
100
+                        <td colspan="7">
101
+                        	<div style="width:710px">
102
+				                <div id="myMap" style="width:100%;height:400px;"></div>
103
+				                <input type="hidden" class="store_Lng" value="115.659773"/>
104
+        						<input type="hidden" class="store_Lat" value="34.395449"/>
105
+				            </div>
106
+                    	</td>
107
+                    </tr>
108
+                    <tr>
94 109
                         <th>附件上传:</th>
95 110
                         <td colspan="7">
96 111
                             <div class="fileBox">
@@ -159,12 +174,13 @@
159 174
             </div>
160 175
         </div>
161 176
     </div>
177
+    <script src="https://api.map.baidu.com/api?v=2.0&ak=ZG4gLQZUD6Eq1K11cqlYAR4by8CKgLyu&callback=mapinit"></script>
162 178
     <script src="../css/laydate/laydate.js"></script>
163 179
     <script src="../js/adjustHeight.js"></script>
180
+    <script src="../js/appeal/index.js"></script>
164 181
     <script>
165 182
         var wid = helper.request.queryString("wid");
166 183
         var submit;
167
-
168 184
         $(document).ready(function () {
169 185
             QY($("#sourcearea"));
170 186
             LY($("#source"));
@@ -178,7 +194,6 @@
178 194
                 } else {
179 195
                     $(".Nows_box").hide();
180 196
                 }
181
-
182 197
             })
183 198
             $(".BC").click(function () {
184 199
                 submit = 0;
@@ -200,50 +215,62 @@
200 215
                 Add()
201 216
             })
202 217
             if (wid) {
203
-                $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrder', {
204
-                    workorderid: wid,
205
-                    "token": $.cookie("token")
206
-                }, function (result) {
207
-                    if (result.state.toLowerCase() == "success") {
208
-                        var Data = result.data.data;
209
-                        $("#cusname").val(Data[0].F_CusName);
210
-                        $("#cusphone").val(Data[0].F_CusPhone);
211
-                        $("#conphone").val(Data[0].F_ConPhone);
212
-                        $("#title").val(Data[0].F_ComTitle);
213
-                        $('#content').val(Data[0].F_ComContent);
214
-                        $('#email').val(Data[0].F_Email);
215
-                        $("#zipcode").val(Data[0].F_ZipCode);
216
-                        $("#result").val(Data[0].F_Result);
217
-                        //x性别
218
-                        $("#SEX").val(Data[0].F_CusSex + '');
219
-                        //来源
220
-                        $("#source").val(Data[0].F_InfoSource + '');
221
-                        //事件地址
222
-                        $("#sourcearea").val(Data[0].F_SourceArea + '');
223
-                        //主题词
224
-                        $("#keys").val(Data[0].F_Key + '');
225
-                        //类型
226
-                        $("#type").val(Data[0].F_InfoType + '');
227
-                        //紧急程度
228
-                        $("#level").val(Data[0].F_Level + '');
229
-                        if (Data[0].F_IsResult == 1) {
230
-                            $(".Nows_box").toggle();
218
+            	$.ajax({
219
+                    type: "get",
220
+                    url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrder",
221
+                    dataType: 'json',
222
+                    async: false,
223
+                    data: {
224
+                    	workorderid: wid,
225
+                    	token: $.cookie("token")
226
+                    },
227
+                    success: function (data) {
228
+                        if (data.state.toLowerCase() == "success") {
229
+                            var Data = data.data.data;
230
+	                        $("#cusname").val(Data[0].F_CusName);
231
+	                        $("#cusphone").val(Data[0].F_CusPhone);
232
+	                        $("#conphone").val(Data[0].F_ConPhone);
233
+	                        $("#title").val(Data[0].F_ComTitle);
234
+	                        $('#content').val(Data[0].F_ComContent);
235
+	                        $('#email').val(Data[0].F_Email);
236
+	                        $("#zipcode").val(Data[0].F_ZipCode);
237
+	                        $("#result").val(Data[0].F_Result);
238
+	                        $(".store_Lng").val(Data[0].F_Longitude);
239
+	                        $(".store_Lat").val(Data[0].F_Latitude);
240
+	                        //x性别
241
+	                        $("#SEX").val(Data[0].F_CusSex + '');
242
+	                        //来源
243
+	                        $("#source").val(Data[0].F_InfoSource + '');
244
+	                        //事件地址
245
+	                        $("#sourcearea").val(Data[0].F_SourceArea + '');
246
+	                        //主题词
247
+	                        $("#keys").val(Data[0].F_Key + '');
248
+	                        //类型
249
+	                        $("#type").val(Data[0].F_InfoType + '');
250
+	                        //紧急程度
251
+	                        $("#level").val(Data[0].F_Level + '');
252
+	                        if (Data[0].F_IsResult == 1) {
253
+	                            $(".Nows_box").toggle();
254
+	                        }
255
+	                        $(' input[name="mj"][value="' + Data[0].F_IsProtect + '"]').prop("checked", "checked");
256
+	                        $(' input[name="banli"][value="' + Data[0].F_IsResult + '"]').prop("checked", "checked");
257
+	                        $('#sourceaddress').val(Data[0].F_SourceAddress);
258
+	                        $('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
259
+	                        $(Data[0].File).each(function (k, q) {
260
+	                            var strs = '<span class="files" fiel-num="' + q.F_FileId + '">' + q.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
261
+	                            $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
262
+	                                event.stopPropagation();
263
+	                                $(this).parent().remove();
264
+	                                file_num()
265
+	                            })
266
+	                            file_num()
267
+	                        })
231 268
                         }
232
-                        $(' input[name="mj"][value="' + Data[0].F_IsProtect + '"]').prop("checked", "checked");
233
-                        $(' input[name="banli"][value="' + Data[0].F_IsResult + '"]').prop("checked", "checked");
234
-                        $('#sourceaddress').val(Data[0].F_SourceAddress);
235
-                        $('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
236
-                        $(Data[0].File).each(function (k, q) {
237
-                            var strs = '<span class="files" fiel-num="' + q.F_FileId + '">' + q.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
238
-                            $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
239
-                                event.stopPropagation();
240
-                                $(this).parent().remove();
241
-                                file_num()
242
-                            })
243
-                            file_num()
244
-                        })
269
+
245 270
                     }
246
-                })
271
+                });
272
+            	
273
+               
247 274
 
248 275
             }
249 276
         });

+ 34 - 8
WebUI/CallCenterWeb.UI/index.html

@@ -1032,6 +1032,31 @@
1032 1032
         	background: #048aad;
1033 1033
         	color: #FFFFFF;
1034 1034
         }
1035
+        .mapPos{
1036
+        	position: fixed;
1037
+			top: 0;
1038
+			left: 0;
1039
+			right: 0;
1040
+			bottom: 0;
1041
+			margin: auto;
1042
+			display: none;
1043
+			z-index: 3333;
1044
+        }
1045
+        .mapBJ{
1046
+        	position: fixed;
1047
+			top: 0;
1048
+			left: 0;
1049
+			right: 0;
1050
+			bottom: 0;
1051
+			margin: auto;
1052
+			display: none;
1053
+			z-index: 333;
1054
+			background: #000000;
1055
+			filter:alpha(opacity=50);  
1056
+		    -moz-opacity:0.5;  
1057
+		    -khtml-opacity: 0.5;  
1058
+		    opacity: 0.5;  
1059
+        }
1035 1060
     </style>
1036 1061
 </head>
1037 1062
 
@@ -1577,14 +1602,14 @@
1577 1602
                                             <select name="sourcearea" id="sourcearea">
1578 1603
                                                 <option value="0">请选择</option>
1579 1604
                                             </select>
1580
-                                            <select name="sourcearea" id="sourcetown">
1581
-                                                <option value="0">请选择</option>
1582
-                                            </select>
1583
-                                            <select name="sourcearea" id="sourcecounty">
1584
-                                                <option value="0">请选择</option>
1585
-                                            </select>
1586
-                                            <input id="sourceaddress" type="text" placeholder="输入详细地址" />
1605
+                                            <input id="sourceaddress" autocomplete="off" type="text" placeholder="输入详细地址" />
1587 1606
                                         </span>
1607
+                                        <div class="mapBJ" style="width:100%; height:100%"></div>
1608
+                                        <div class="mapPos" style="width:710px; height:400px;">
1609
+							                <div id="myMap" style="width:100%; height:400px;"></div>
1610
+							                <input type="hidden" class="store_Lng" value="115.659773"/>
1611
+			        						<input type="hidden" class="store_Lat" value="34.395449" />
1612
+							            </div>
1588 1613
                                     </div>
1589 1614
                                     <div class="form-group clearfix">
1590 1615
                                         <span class="col-sm-1">
@@ -2113,7 +2138,7 @@
2113 2138
 		</div>
2114 2139
     <!--在线客服结束-->
2115 2140
 <input type="hidden" id="cqorder" />
2116
-
2141
+	<script src="https://api.map.baidu.com/api?v=2.0&ak=ZG4gLQZUD6Eq1K11cqlYAR4by8CKgLyu&callback=mapinit"></script>
2117 2142
     <script src="./js/plugins/cropper/cropper.min.js"></script>
2118 2143
     <script src="./js/jquery.md5.js"></script>
2119 2144
     <script src="./css/laydate/laydate.js"></script>
@@ -2123,6 +2148,7 @@
2123 2148
     <script src="./js/main.js?v=2.0"></script>
2124 2149
     <script src="./js/chat.js"></script>
2125 2150
     <script src="./js/index.js?v=2.0"></script>
2151
+    <script src="./js/appeal/mapIndex.js"></script>
2126 2152
     <script src="./js/plugins/metisMenu/jquery.metisMenu.js"></script>
2127 2153
     <script src="./js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
2128 2154
     <script src="./js/hplus.min.js?v=4.1.0"></script>

File diff suppressed because it is too large
+ 283 - 0
WebUI/CallCenterWeb.UI/js/appeal/index.js


File diff suppressed because it is too large
+ 291 - 0
WebUI/CallCenterWeb.UI/js/appeal/mapIndex.js


+ 8 - 3
WebUI/CallCenterWeb.UI/js/index.js

@@ -533,7 +533,10 @@ $(document).ready(function () {
533 533
             //Adds();
534 534
         }
535 535
     })
536
-
536
+	$(".mapBJ").click(function(){
537
+		$(".mapPos").hide();
538
+	  	$(".mapBJ").hide();
539
+	})
537 540
     //加载知识库
538 541
     loadZSK();
539 542
     //加载左侧导航菜单
@@ -749,7 +752,7 @@ $(document).ready(function () {
749 752
     })
750 753
     //QY($("#sourcearea"));
751 754
     //区县,主干道、乡镇,路社区村三级联动(目前在来电弹屏中使用)
752
-    helper.getDropList.getLocations($('#sourcearea'), $('#sourcetown'), $('#sourcecounty'));
755
+    helper.getDropList.getLocations($('#sourcearea'));
753 756
     LB($("#type"));
754 757
     ZT($("#keys"));
755 758
     //加载来电类型 默认是 已受理并发送id
@@ -873,12 +876,14 @@ function Adds() {
873 876
             title: $("#title").val(),
874 877
             content: $("#content").val(),
875 878
             callid: callid,
876
-            // 						files:$("#file").val(),//(多个用英文逗号,隔开)
879
+            //files:$("#file").val(),//(多个用英文逗号,隔开)
877 880
             sourcearea: $("#sourcearea").val(), //=事发地域id
878 881
             sourceaddress: $('#sourceaddress').val(), //=事发详细地址
879 882
             source: 1, //=来源
880 883
             isresult: $(' input[name="banli"]:checked ').val(), //=(0转办1直办)
881 884
             result: $('#result').val(),
885
+            longitude: $('.store_Lng').val(),
886
+            latitude: $('.store_Lat').val(),
882 887
             keys: $("#keys").val(), //=关键词id(多个用英文逗号,隔开)				
883 888
             type: $("#type").val(), //=类型			
884 889
             isprotect: $(' input[name="mj"]:checked ').val(), //=(0普通1保密)