Commit b22c203db5b9fa4618aab71c919c0cfa19deed33
1 parent
4f99d1c7
1.打包时es6不兼容
Showing
4 changed files
with
17 additions
and
17 deletions
pom.xml
| @@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
| 5 | <groupId>com.bsth</groupId> | 5 | <groupId>com.bsth</groupId> |
| 6 | <artifactId>bsth_control</artifactId> | 6 | <artifactId>bsth_control</artifactId> |
| 7 | <version>0.0.1-SNAPSHOT</version> | 7 | <version>0.0.1-SNAPSHOT</version> |
| 8 | - <packaging>war</packaging> | 8 | + <packaging>jar</packaging> |
| 9 | 9 | ||
| 10 | <parent> | 10 | <parent> |
| 11 | <groupId>org.springframework.boot</groupId> | 11 | <groupId>org.springframework.boot</groupId> |
src/main/resources/static/pages/base/stationroute/editsection_inout.html
| @@ -66,19 +66,19 @@ $('#edit_section_mobal').on('editSectionMobal_show', function(e, map_,ajaxd,p,fu | @@ -66,19 +66,19 @@ $('#edit_section_mobal').on('editSectionMobal_show', function(e, map_,ajaxd,p,fu | ||
| 66 | $(this).val(eval('section.' + this.id)); | 66 | $(this).val(eval('section.' + this.id)); |
| 67 | }); | 67 | }); |
| 68 | } | 68 | } |
| 69 | - let section = p.data; | ||
| 70 | - let lineId = section.lineCode, version = section.versions, start = section.start, end = section.end; | 69 | + var section = p.data; |
| 70 | + var lineId = section.lineCode, version = section.versions, start = section.start, end = section.end; | ||
| 71 | setSectionFormValue(section); | 71 | setSectionFormValue(section); |
| 72 | // 获取路段号元素,并添加下拉属性值 | 72 | // 获取路段号元素,并添加下拉属性值 |
| 73 | ajaxd.getRouteByStartEnd(lineId,version,start, end,function(result) { | 73 | ajaxd.getRouteByStartEnd(lineId,version,start, end,function(result) { |
| 74 | - let routes = result.data.routes,paramsD =new Array(); | 74 | + var routes = result.data.routes,paramsD =new Array(); |
| 75 | var eq_scetionRouteCode = section.sectionrouteCode; | 75 | var eq_scetionRouteCode = section.sectionrouteCode; |
| 76 | paramsD.push({'id':'请选择...','text':'将此路段设置位第一个路段'}); | 76 | paramsD.push({'id':'请选择...','text':'将此路段设置位第一个路段'}); |
| 77 | // 遍历 | 77 | // 遍历 |
| 78 | $.each(routes, function(i, g){ | 78 | $.each(routes, function(i, g){ |
| 79 | // 判断. | 79 | // 判断. |
| 80 | if(g.section.sectionName) { | 80 | if(g.section.sectionName) { |
| 81 | - let ptions_v = g.sectionrouteCode; | 81 | + var ptions_v = g.sectionrouteCode; |
| 82 | if(eq_scetionRouteCode != ptions_v) { | 82 | if(eq_scetionRouteCode != ptions_v) { |
| 83 | // 添加拼音检索下拉框格式数据数组. | 83 | // 添加拼音检索下拉框格式数据数组. |
| 84 | paramsD.push({'id':ptions_v, | 84 | paramsD.push({'id':ptions_v, |
src/main/resources/static/pages/base/stationroute/js/stationroute-list-function.js
| @@ -118,7 +118,7 @@ var PublicFunctions = function () { | @@ -118,7 +118,7 @@ var PublicFunctions = function () { | ||
| 118 | $('#inout_carpark_tree').show(); | 118 | $('#inout_carpark_tree').show(); |
| 119 | $('#InoutCarparktreeMobal .table-toolbar').show(); | 119 | $('#InoutCarparktreeMobal .table-toolbar').show(); |
| 120 | 120 | ||
| 121 | - GetAjaxData.getRouteByStartEnd(id, version, start[0], end[0], (result1) => { | 121 | + GetAjaxData.getRouteByStartEnd(id, version, start[0], end[0], function (result1){ |
| 122 | var routes = result1.data.routes, rootNode; | 122 | var routes = result1.data.routes, rootNode; |
| 123 | WorldsBMap.clearMarkAndOverlays(); | 123 | WorldsBMap.clearMarkAndOverlays(); |
| 124 | var startPoint = mapData[start.join('_')], endPoint = mapData[end.join('_')], point, points; | 124 | var startPoint = mapData[start.join('_')], endPoint = mapData[end.join('_')], point, points; |
| @@ -144,7 +144,7 @@ var PublicFunctions = function () { | @@ -144,7 +144,7 @@ var PublicFunctions = function () { | ||
| 144 | 144 | ||
| 145 | rootNode = {id: -1, pId: null, name: '路段', text: '路段', icon: null, groupType: 2, container : 'pjax-container', enable : true, children: routes}; | 145 | rootNode = {id: -1, pId: null, name: '路段', text: '路段', icon: null, groupType: 2, container : 'pjax-container', enable : true, children: routes}; |
| 146 | if (routes.length > 0) { | 146 | if (routes.length > 0) { |
| 147 | - for (let i = 0,route;i < routes.length;i++) { | 147 | + for (var i = 0,route;i < routes.length;i++) { |
| 148 | route = routes[i]; | 148 | route = routes[i]; |
| 149 | route.pId = 1; | 149 | route.pId = 1; |
| 150 | route.name = route.section.sectionName; | 150 | route.name = route.section.sectionName; |
src/main/resources/static/pages/base/stationroute/js/stationroute-list-map.js
| @@ -31,7 +31,7 @@ window.WorldsBMap = function () { | @@ -31,7 +31,7 @@ window.WorldsBMap = function () { | ||
| 31 | sectionArray = [], stationArray = new Map(), | 31 | sectionArray = [], stationArray = new Map(), |
| 32 | map_status = 0,drawingManager,topOverlay; | 32 | map_status = 0,drawingManager,topOverlay; |
| 33 | 33 | ||
| 34 | - let currentSection = {}; | 34 | + var currentSection = {}; |
| 35 | 35 | ||
| 36 | /** | 36 | /** |
| 37 | * 编辑缓冲区 | 37 | * 编辑缓冲区 |
| @@ -1497,16 +1497,16 @@ window.WorldsBMap = function () { | @@ -1497,16 +1497,16 @@ window.WorldsBMap = function () { | ||
| 1497 | * isMark 是否加站名 | 1497 | * isMark 是否加站名 |
| 1498 | */ | 1498 | */ |
| 1499 | drawCircle: function (point, radius, stationName, isMark) { | 1499 | drawCircle: function (point, radius, stationName, isMark) { |
| 1500 | - let center = new BMap.Point(point.lng, point.lat); | ||
| 1501 | - let circle = new BMap.Circle(center, radius ,{strokeColor:"blue", strokeWeight:2, strokeOpacity:0.5}); | 1500 | + var center = new BMap.Point(point.lng, point.lat); |
| 1501 | + var circle = new BMap.Circle(center, radius ,{strokeColor:"blue", strokeWeight:2, strokeOpacity:0.5}); | ||
| 1502 | mapBValue.addOverlay(circle); | 1502 | mapBValue.addOverlay(circle); |
| 1503 | if (isMark) { | 1503 | if (isMark) { |
| 1504 | - let html = '<div style="position: absolute; margin: 0pt; padding: 0pt; width: 160px; height: 26px; left: -3px; top: -30px; overflow: hidden;">' | 1504 | + var html = '<div style="position: absolute; margin: 0pt; padding: 0pt; width: 160px; height: 26px; left: -3px; top: -30px; overflow: hidden;">' |
| 1505 | + '<img class="rm3_image" style="border:none;left:0px; top:0px; position:absolute;" src="/pages/base/stationroute/css/img/back160.png">' | 1505 | + '<img class="rm3_image" style="border:none;left:0px; top:0px; position:absolute;" src="/pages/base/stationroute/css/img/back160.png">' |
| 1506 | + '</div>' | 1506 | + '</div>' |
| 1507 | + '<label class=" BMapLabel" unselectable="on" style="position: absolute; -moz-user-select: none; display: inline; cursor: inherit; border: 0px none; padding: 2px 1px 1px; white-space: nowrap; font: 12px arial,simsun; z-index: 80; color: rgb(255, 102, 0); left: 20px; top: -30px;">' + stationName + '</label>'; | 1507 | + '<label class=" BMapLabel" unselectable="on" style="position: absolute; -moz-user-select: none; display: inline; cursor: inherit; border: 0px none; padding: 2px 1px 1px; white-space: nowrap; font: 12px arial,simsun; z-index: 80; color: rgb(255, 102, 0); left: 20px; top: -30px;">' + stationName + '</label>'; |
| 1508 | 1508 | ||
| 1509 | - let myRichMarker = new BMapLib.RichMarker(html, center, { | 1509 | + var myRichMarker = new BMapLib.RichMarker(html, center, { |
| 1510 | "title": stationName, | 1510 | "title": stationName, |
| 1511 | "anchor": new BMap.Size(-10, 8), | 1511 | "anchor": new BMap.Size(-10, 8), |
| 1512 | "enableDragging": true | 1512 | "enableDragging": true |
| @@ -1522,20 +1522,20 @@ window.WorldsBMap = function () { | @@ -1522,20 +1522,20 @@ window.WorldsBMap = function () { | ||
| 1522 | * points 点数组 | 1522 | * points 点数组 |
| 1523 | */ | 1523 | */ |
| 1524 | drawPolygon: function (points, stationName, isMark) { | 1524 | drawPolygon: function (points, stationName, isMark) { |
| 1525 | - let bdPoints = new Array(), i = 0, point; | 1525 | + var bdPoints = new Array(), i = 0, point; |
| 1526 | for (i = 0;i < points.length;i++) { | 1526 | for (i = 0;i < points.length;i++) { |
| 1527 | point = points[i].split(' '); | 1527 | point = points[i].split(' '); |
| 1528 | bdPoints.push(new BMap.Point(point[0], point[1])); | 1528 | bdPoints.push(new BMap.Point(point[0], point[1])); |
| 1529 | } | 1529 | } |
| 1530 | - let polygon = new BMap.Polygon(bdPoints), center = bdPoints[0]; | 1530 | + var polygon = new BMap.Polygon(bdPoints), center = bdPoints[0]; |
| 1531 | mapBValue.addOverlay(polygon); | 1531 | mapBValue.addOverlay(polygon); |
| 1532 | if (isMark) { | 1532 | if (isMark) { |
| 1533 | - let html = '<div style="position: absolute; margin: 0pt; padding: 0pt; width: 160px; height: 26px; left: -3px; top: -30px; overflow: hidden;">' | 1533 | + var html = '<div style="position: absolute; margin: 0pt; padding: 0pt; width: 160px; height: 26px; left: -3px; top: -30px; overflow: hidden;">' |
| 1534 | + '<img class="rm3_image" style="border:none;left:0px; top:0px; position:absolute;" src="/pages/base/stationroute/css/img/back160.png">' | 1534 | + '<img class="rm3_image" style="border:none;left:0px; top:0px; position:absolute;" src="/pages/base/stationroute/css/img/back160.png">' |
| 1535 | + '</div>' | 1535 | + '</div>' |
| 1536 | + '<label class=" BMapLabel" unselectable="on" style="position: absolute; -moz-user-select: none; display: inline; cursor: inherit; border: 0px none; padding: 2px 1px 1px; white-space: nowrap; font: 12px arial,simsun; z-index: 80; color: rgb(255, 102, 0); left: 20px; top: -30px;">' + stationName + '</label>'; | 1536 | + '<label class=" BMapLabel" unselectable="on" style="position: absolute; -moz-user-select: none; display: inline; cursor: inherit; border: 0px none; padding: 2px 1px 1px; white-space: nowrap; font: 12px arial,simsun; z-index: 80; color: rgb(255, 102, 0); left: 20px; top: -30px;">' + stationName + '</label>'; |
| 1537 | 1537 | ||
| 1538 | - let myRichMarker = new BMapLib.RichMarker(html, center, { | 1538 | + var myRichMarker = new BMapLib.RichMarker(html, center, { |
| 1539 | "title": stationName, | 1539 | "title": stationName, |
| 1540 | "anchor": new BMap.Size(-10, 8), | 1540 | "anchor": new BMap.Size(-10, 8), |
| 1541 | "enableDragging": true | 1541 | "enableDragging": true |
| @@ -1547,7 +1547,7 @@ window.WorldsBMap = function () { | @@ -1547,7 +1547,7 @@ window.WorldsBMap = function () { | ||
| 1547 | }, | 1547 | }, |
| 1548 | 1548 | ||
| 1549 | drawPolyLine: function (points, data, start, end) { | 1549 | drawPolyLine: function (points, data, start, end) { |
| 1550 | - let bdPoints = new Array(), i = 0, point, polyline; | 1550 | + var bdPoints = new Array(), i = 0, point, polyline; |
| 1551 | for (i = 0;i < points.length;i++) { | 1551 | for (i = 0;i < points.length;i++) { |
| 1552 | point = points[i].split(' '); | 1552 | point = points[i].split(' '); |
| 1553 | bdPoints.push(new BMap.Point(point[0], point[1])); | 1553 | bdPoints.push(new BMap.Point(point[0], point[1])); |