wangzhe hai 1 ano
pai
achega
bf8844a40e
Modificáronse 2 ficheiros con 44 adicións e 25 borrados
  1. 23 4
      src/components/Jsmsdialog.vue
  2. 21 21
      src/views/index.vue

+ 23 - 4
src/components/Jsmsdialog.vue

@@ -200,8 +200,8 @@ export default {
 	methods:{
       // 短信通知
         callSb(){
-          alert("短信通知")
-            let url = "http://121.36.228.66:10012/centerMessageFeign/sendMessage";
+          // alert("短信通知")
+            /*let url = "http://121.36.228.66:10012/centerMessageFeign/sendMessage";
             let param = "{\n" +
                 "    \"SMSsignature\": \"态势感知平台\",\n" +
                 "    \"str\": \"态势感知平台\",\n" +
@@ -212,13 +212,32 @@ export default {
 			// xhr.setRequestHeader('origin', 'Access-Control-Allow-Origin');
 			xhr.setRequestHeader('Access-Control-Allow-Origin', '*');
 			xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
-			xhr.send(param);
+			// xhr.send(param);
 			// xhr.send('SMSsignature=态势感知平台&str=态势感知平台&phone=15104466029');
 			// xhr.onreadystatechange = function() {
 			// 	if(xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) {
 			// 		console.log(xhr.responseText);
 			// 	}
-			// }
+			// }*/
+			let obj = new Object();
+			obj.SMSsignature = "态势感知平台";
+			obj.str = "态势感知平台";
+			obj.phone = "15104466029";
+			$.ajax({
+				url : "http://121.36.228.66:10012/centerMessageFeign/sendMessag",
+				method : 'POST',
+				// dataType: 'jsonp',
+				data : obj,
+				success : function (e) {
+					alert(666666)
+					if(e == 0){
+
+					}
+				}
+			});
+
+
+
 
 			// // 创建script的标签
 			// let script = document.createElement('script');

+ 21 - 21
src/views/index.vue

@@ -112,7 +112,7 @@
                         click: 'abc',
                         parameter: pointList[i],
                         keepBindPopup: false,
-                        isAggregation: true
+                        isAggregation: false
                     }
                     markersMap.icon = 'sj-icon-map-' + type.replaceAll("_", "-");
                     markersMap.lng = pointList[i].longitude;
@@ -172,7 +172,7 @@
             //避难场所 落点
             eventPoints_byType(checkList){
                 console.log("checkList=",checkList)
-                this.$refs.supermap.clearM(true);
+                this.$refs.supermap.clearM(false);
                 for (let i = 0; i < checkList.length; i++) {
                     let type = checkList[i];
                     if(type == "shelter"){
@@ -191,37 +191,37 @@
                 console.log(666)
                 let pointList = [];
                 pointList.push({
-                    name:"白石村避难所",
-                    contacts:"张洁玲",
-                    phone:"13500805931",
+                    name:"延吉体育场避难所",
+                    contacts:"于尽力",
+                    phone:"13844388900",
                     longitude:129.416,
                     latitude:42.918
                 });
                 pointList.push({
-                    name:"延河路避难所",
-                    contacts:"王建军",
-                    phone:"13664407655",
+                    name:"金达莱广场避难所",
+                    contacts:"周围",
+                    phone:"15943366512",
                     longitude:129.47,
                     latitude:42.898
                 });
                 pointList.push({
-                    name:"兴安村避难所",
-                    contacts:"蔡雨虹",
-                    phone:"15754320117",
+                    name:"青年广场避难所",
+                    contacts:"高博",
+                    phone:"15834925550",
                     longitude:129.506,
                     latitude:42.945
                 });
                 pointList.push({
-                    name:"小白石村避难所",
-                    contacts:"吕国琴",
-                    phone:"15044076332",
+                    name:"帽儿山避难所",
+                    contacts:"刘星",
+                    phone:"18804332888",
                     longitude:129.436,
                     latitude:42.939
                 });
                 pointList.push({
-                    name:"上东沟避难所",
-                    contacts:"吴明月",
-                    phone:"15044076332",
+                    name:"阿里郎广场避难所",
+                    contacts:"高博",
+                    phone:"15834925550",
                     longitude:129.406,
                     latitude:42.945
                 });
@@ -236,7 +236,7 @@
                         click: '',
                         parameter: pointList[i],
                         keepBindPopup: false,
-                        isAggregation: true
+                        isAggregation: false
                     }
                     markersMap.icon = 'sj-icon-map-' + type.replaceAll("_", "-");
                     markersMap.lng = pointList[i].longitude;
@@ -344,7 +344,7 @@
                         click: '',
                         parameter: pointList[i],
                         keepBindPopup: false,
-                        isAggregation: true
+                        isAggregation: false
                     }
                     markersMap.icon = 'sj-icon-map-' + type.replaceAll("_", "-");
                     markersMap.lng = pointList[i].longitude;
@@ -452,7 +452,7 @@
                         click: '',
                         parameter: pointList[i],
                         keepBindPopup: false,
-                        isAggregation: true
+                        isAggregation: false
                     }
                     markersMap.icon = 'sj-icon-map-' + type.replaceAll("_", "-");
                     markersMap.lng = pointList[i].longitude;
@@ -560,7 +560,7 @@
                         click: '',
                         parameter: pointList[i],
                         keepBindPopup: false,
-                        isAggregation: true
+                        isAggregation: false
                     }
                     markersMap.icon = 'sj-icon-map-' + type.replaceAll("_", "-");
                     markersMap.lng = pointList[i].longitude;