Commit 95533bc29386fd1b64bf5b3defb4e48f07b4b2b9
1 parent
7a9dcf08
1.
Showing
1 changed file
with
4 additions
and
4 deletions
src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/temp_sch/main.html
| @@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
| 25 | <script> | 25 | <script> |
| 26 | (function () { | 26 | (function () { |
| 27 | var modal = '#schedule-addsch-modal', | 27 | var modal = '#schedule-addsch-modal', |
| 28 | - sch, stationRoutes, parks, information, carsArray, st_park_data, lineRegion = {}; | 28 | + sch, stationRoutes, parks, information, carsArray, st_park_data, lineRegions = {}; |
| 29 | 29 | ||
| 30 | $(modal).on('init', function (e, data) { | 30 | $(modal).on('init', function (e, data) { |
| 31 | e.stopPropagation(); | 31 | e.stopPropagation(); |
| @@ -63,7 +63,7 @@ | @@ -63,7 +63,7 @@ | ||
| 63 | opts.push('<option value="">选择预设区间</option>'); | 63 | opts.push('<option value="">选择预设区间</option>'); |
| 64 | for (var idx in regions) { | 64 | for (var idx in regions) { |
| 65 | var item = regions[idx], title = new Array(); | 65 | var item = regions[idx], title = new Array(); |
| 66 | - lineRegion[item.id + '_' + item.seq] = item; | 66 | + lineRegions[item.id + '_' + item.seq] = item; |
| 67 | if (item.stationRoutes.length > 1) { | 67 | if (item.stationRoutes.length > 1) { |
| 68 | for (var idx1 in item.stationRoutes) { | 68 | for (var idx1 in item.stationRoutes) { |
| 69 | title.push(item.stationRoutes[idx1].stationName); | 69 | title.push(item.stationRoutes[idx1].stationName); |
| @@ -113,7 +113,7 @@ | @@ -113,7 +113,7 @@ | ||
| 113 | opts.push('<option value="">选择预设区间</option>'); | 113 | opts.push('<option value="">选择预设区间</option>'); |
| 114 | for (var idx in regions) { | 114 | for (var idx in regions) { |
| 115 | var item = regions[idx], title = new Array(); | 115 | var item = regions[idx], title = new Array(); |
| 116 | - lineRegion[item.id + '_' + item.seq] = item; | 116 | + lineRegions[item.id + '_' + item.seq] = item; |
| 117 | if (item.stationRoutes.length > 1) { | 117 | if (item.stationRoutes.length > 1) { |
| 118 | for (var idx1 in item.stationRoutes) { | 118 | for (var idx1 in item.stationRoutes) { |
| 119 | title.push(item.stationRoutes[idx1].stationName); | 119 | title.push(item.stationRoutes[idx1].stationName); |
| @@ -282,7 +282,7 @@ | @@ -282,7 +282,7 @@ | ||
| 282 | zdzCode = $('[name=zdzCode]', f), | 282 | zdzCode = $('[name=zdzCode]', f), |
| 283 | lineRegion = $(this).val(); | 283 | lineRegion = $(this).val(); |
| 284 | if (!lineRegion) return; | 284 | if (!lineRegion) return; |
| 285 | - var stationRoutes = lineRegion[lineRegion].stationRoutes; | 285 | + var stationRoutes = lineRegions[lineRegion].stationRoutes; |
| 286 | if (stationRoutes && stationRoutes.length > 1) { | 286 | if (stationRoutes && stationRoutes.length > 1) { |
| 287 | qdzCode.val(stationRoutes[0].stationCode); | 287 | qdzCode.val(stationRoutes[0].stationCode); |
| 288 | zdzCode.val(stationRoutes[stationRoutes.length - 1].stationCode); | 288 | zdzCode.val(stationRoutes[stationRoutes.length - 1].stationCode); |