Commit 0aa78b6b732131f5006defb4da8d1e1b6253d402

Authored by 潘钊
1 parent f8aace49

update...

src/main/resources/static/real_control_v2/fragments/north/nav/history_sch_maintain.html
@@ -126,6 +126,21 @@ @@ -126,6 +126,21 @@
126 $.each(rs, function (i) { 126 $.each(rs, function (i) {
127 tsStr += '<li ' + (i == 0 ? 'class="uk-active"' : '') + '><a>' + this + '</a></li>'; 127 tsStr += '<li ' + (i == 0 ? 'class="uk-active"' : '') + '><a>' + this + '</a></li>';
128 }); 128 });
  129 + //分开闵行39路的日期权限
  130 + if(gb_data_basic.line_idx=='100001'){
  131 + var st = moment('2017-08-29', 'YYYY-MM-DD');
  132 + var et = moment().format('YYYY-MM-DD');
  133 + tsStr = '';
  134 + while(true){
  135 + var rq = st.format('YYYY-MM-DD');
  136 + tsStr += '<li ' + (rq == et ? 'class="uk-active"' : '') + '><a>' + rq + '</a></li>';
  137 + st.add(1, 'days');
  138 +
  139 + if(rq == et)
  140 + break;
  141 + }
  142 + }
  143 +
129 $('.h-s-time', modal).html(tsStr); 144 $('.h-s-time', modal).html(tsStr);
130 145
131 //线路tab 146 //线路tab