Commit eca018fa29e5026d58ebb02bc68220ec2b9ea452
1 parent
a2bbe2e9
1.
Showing
1 changed file
with
4 additions
and
1 deletions
src/main/resources/static/pages/base/stationroute/addstationstemplate.html
| @@ -154,7 +154,6 @@ $('#add_station_template_mobal').on('AddStationTempMobal.show', function(e,map,a | @@ -154,7 +154,6 @@ $('#add_station_template_mobal').on('AddStationTempMobal.show', function(e,map,a | ||
| 154 | }, | 154 | }, |
| 155 | 155 | ||
| 156 | submitHandler : function(f) { | 156 | submitHandler : function(f) { |
| 157 | - debugger; | ||
| 158 | // 隐藏手动规划弹出层 | 157 | // 隐藏手动规划弹出层 |
| 159 | $('#add_station_template_mobal').modal('hide'); | 158 | $('#add_station_template_mobal').modal('hide'); |
| 160 | var directionData = dir; | 159 | var directionData = dir; |
| @@ -189,6 +188,10 @@ $('#add_station_template_mobal').on('AddStationTempMobal.show', function(e,map,a | @@ -189,6 +188,10 @@ $('#add_station_template_mobal').on('AddStationTempMobal.show', function(e,map,a | ||
| 189 | // 设置第一个站的时间 | 188 | // 设置第一个站的时间 |
| 190 | stationdataList[0].duration = ''; | 189 | stationdataList[0].duration = ''; |
| 191 | // 定义站点信息JSON字符串 | 190 | // 定义站点信息JSON字符串 |
| 191 | + for (var idx in stationdataList) { | ||
| 192 | + stationdataList[idx].wgs.x = stationdataList[idx].potion.lng; | ||
| 193 | + stationdataList[idx].wgs.y = stationdataList[idx].potion.lat; | ||
| 194 | + } | ||
| 192 | var stationJSON = JSON.stringify(stationdataList); | 195 | var stationJSON = JSON.stringify(stationdataList); |
| 193 | var addLine = line.getLineObj(); | 196 | var addLine = line.getLineObj(); |
| 194 | // 参数集合 | 197 | // 参数集合 |