Commit 8af908120a4a423b27db7a10f6900fe3a3e724f1

Authored by 潘钊
1 parent 9deae92e

...

src/main/resources/static/real_control_v2/js/line_schedule/sch_table.js
@@ -223,11 +223,13 @@ var gb_schedule_table = (function() { @@ -223,11 +223,13 @@ var gb_schedule_table = (function() {
223 } 223 }
224 }); 224 });
225 225
226 - $('dl[data-id=' + nextSch.id + ']', contWrap).addClass('intimity');  
227 - if (nextSch.xlDir == sch.xlDir)  
228 - return;  
229 - //滚动到下一个班次  
230 - scroToDl(nextSch); 226 + if(nextSch){
  227 + $('dl[data-id=' + nextSch.id + ']', contWrap).addClass('intimity');
  228 + if (nextSch.xlDir == sch.xlDir)
  229 + return;
  230 + //滚动到下一个班次
  231 + scroToDl(nextSch);
  232 + }
231 }); 233 });
232 234
233 //路牌点击 235 //路牌点击
@@ -288,10 +290,10 @@ var gb_schedule_table = (function() { @@ -288,10 +290,10 @@ var gb_schedule_table = (function() {
288 yfwf_num ++; 290 yfwf_num ++;
289 }); 291 });
290 292
291 - console.log('calc_yfwf_num...', lineCode, yfwf_num);  
292 $('#badge_yfwf_num_'+lineCode).text(yfwf_num); 293 $('#badge_yfwf_num_'+lineCode).text(yfwf_num);
293 } 294 }
294 295
  296 +
295 return { 297 return {
296 show: show, 298 show: show,
297 findScheduleByLine: findScheduleByLine, 299 findScheduleByLine: findScheduleByLine,