Commit ef1f9a64572474d5668b26fa9374184c0d33a7e8

Authored by 潘钊
1 parent 4c1f742a

update...

src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/sub_task_v2/add_in_out.html
... ... @@ -240,7 +240,7 @@
240 240 half_form.removeClass('destroy_form');
241 241  
242 242 //出场终点
243   - $f('endStation',outf).val($f('endStation',sf).val());
  243 + $f('endStation',outf).val($f('endStation',sf).val()).trigger('change');
244 244 //出发合计公里重新计算
245 245 $f('mileage', half_form).trigger('input');
246 246 }
... ...
src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/sub_task_v2/main.html
... ... @@ -563,6 +563,8 @@
563 563 }
564 564  
565 565 function search_st_park(f) {
  566 + if(!st_park_data)
  567 + return;
566 568 var stp;
567 569 var qdSelect=$f('startStation', f)[0],zdSelect=$f('endStation', f)[0];
568 570  
... ...
src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/utils/station_to_park.html
... ... @@ -106,6 +106,8 @@
106 106 sch = data.sch;
107 107  
108 108 var list = gb_data_basic.get_stat_park_data()[sch.xlBm];
  109 + if(!list)
  110 + return;
109 111 list.sort(function (a, b) {
110 112 return a.stationName.localeCompare(b.stationName);
111 113 });
... ...
src/main/resources/static/real_control_v2/js/line_schedule/sch_table.js
... ... @@ -564,7 +564,7 @@ var gb_schedule_table = (function () {
564 564 return a.clZbh == sch.clZbh && a.bcType=='normal';
565 565 }).sort(schedule_sort);
566 566  
567   - for (var i = 0, item; item = array[i++];) {
  567 + for (var i = 0; i < array.length; i++) {
568 568 if (array[i].id == sch.id) {
569 569 return i < array.length ? array[i + 1] : null;
570 570 }
... ...