Commit b49a7d13f7ae0afc0eaafd1452c333336d7139b4

Authored by 潘钊
1 parent ed598730

...

src/main/resources/static/real_control_v2/js/line_schedule/sch_table.js
... ... @@ -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 290 yfwf_num ++;
289 291 });
290 292  
291   - console.log('calc_yfwf_num...', lineCode, yfwf_num);
292 293 $('#badge_yfwf_num_'+lineCode).text(yfwf_num);
293 294 }
294 295  
  296 +
295 297 return {
296 298 show: show,
297 299 findScheduleByLine: findScheduleByLine,
... ...