Commit 95533bc29386fd1b64bf5b3defb4e48f07b4b2b9

Authored by 王通
1 parent 7a9dcf08

1.

src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/temp_sch/main.html
... ... @@ -25,7 +25,7 @@
25 25 <script>
26 26 (function () {
27 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 30 $(modal).on('init', function (e, data) {
31 31 e.stopPropagation();
... ... @@ -63,7 +63,7 @@
63 63 opts.push('<option value="">选择预设区间</option>');
64 64 for (var idx in regions) {
65 65 var item = regions[idx], title = new Array();
66   - lineRegion[item.id + '_' + item.seq] = item;
  66 + lineRegions[item.id + '_' + item.seq] = item;
67 67 if (item.stationRoutes.length > 1) {
68 68 for (var idx1 in item.stationRoutes) {
69 69 title.push(item.stationRoutes[idx1].stationName);
... ... @@ -113,7 +113,7 @@
113 113 opts.push('<option value="">选择预设区间</option>');
114 114 for (var idx in regions) {
115 115 var item = regions[idx], title = new Array();
116   - lineRegion[item.id + '_' + item.seq] = item;
  116 + lineRegions[item.id + '_' + item.seq] = item;
117 117 if (item.stationRoutes.length > 1) {
118 118 for (var idx1 in item.stationRoutes) {
119 119 title.push(item.stationRoutes[idx1].stationName);
... ... @@ -282,7 +282,7 @@
282 282 zdzCode = $('[name=zdzCode]', f),
283 283 lineRegion = $(this).val();
284 284 if (!lineRegion) return;
285   - var stationRoutes = lineRegion[lineRegion].stationRoutes;
  285 + var stationRoutes = lineRegions[lineRegion].stationRoutes;
286 286 if (stationRoutes && stationRoutes.length > 1) {
287 287 qdzCode.val(stationRoutes[0].stationCode);
288 288 zdzCode.val(stationRoutes[stationRoutes.length - 1].stationCode);
... ...