Commit ebdd69c4bf844573a648850f339868e92d9c578d

Authored by 潘钊
2 parents 49163cf3 3479ec7f

Merge branch 'pudong' into jiading

src/main/resources/static/pages/base/timesmodel/js/v2/ParameterObj.js
... ... @@ -390,9 +390,18 @@ var ParameterObj = function() {
390 390 */
391 391 getUpLastDtimeObj: function() {
392 392 _validInternal(); // 验证
393   - return this.toTimeObj(
  393 + var oStartTime = this.toTimeObj(
  394 + _firstLastDepartureTimeStrObj.up.firstVehicleDepartureTimeStr
  395 + );
  396 + var oEndTime = this.toTimeObj(
394 397 _firstLastDepartureTimeStrObj.up.lastVehicleDepartureTimeStr
395 398 );
  399 + if (oEndTime.isBefore(oStartTime)) {
  400 + // 如果末班车时间早于首班车时间,则末班车时间跨天,需要加1天
  401 + oEndTime.add(1, "day");
  402 + }
  403 +
  404 + return oEndTime;
396 405 },
397 406 /**
398 407 * 获取下行首班时间对象。
... ... @@ -410,9 +419,18 @@ var ParameterObj = function() {
410 419 */
411 420 getDownLastDTimeObj: function() {
412 421 _validInternal(); // 验证
413   - return this.toTimeObj(
  422 + var oStartTime = this.toTimeObj(
  423 + _firstLastDepartureTimeStrObj.down.firstVehicleDepartureTimeStr
  424 + );
  425 + var oEndTime = this.toTimeObj(
414 426 _firstLastDepartureTimeStrObj.down.lastVehicleDepartureTimeStr
415 427 );
  428 + if (oEndTime.isBefore(oStartTime)) {
  429 + // 如果末班车时间早于首班车时间,则末班车时间跨天,需要加1天
  430 + oEndTime.add(1, "day");
  431 + }
  432 +
  433 + return oEndTime;
416 434 },
417 435  
418 436 //-------------- 获取吃饭时间 ----------------//
... ...
src/main/resources/static/real_control_v2/fragments/north/nav/all_devices.html
... ... @@ -181,7 +181,7 @@
181 181 if(lineCode)
182 182 data.lineId=lineCode;
183 183 }
184   - $.get('/gps/real/all', data, function(rs) {
  184 + $.get('/gps/real/all?t=' + Math.random(), data, function(rs) {
185 185 //数据转换
186 186 var code2Name=gb_data_basic.lineCode2NameAll();
187 187 $.each(rs.list, function(){
... ...
src/main/resources/static/real_control_v2/fragments/north/nav/history_sch_maintain.html
... ... @@ -438,9 +438,9 @@
438 438 });
439 439  
440 440 //统计路单 -娄高峰
441   - /*gb_common.$get('/calcWaybill/generateNew', {date:rq, line: lineCode}, function () {
  441 + gb_common.$get('/calcWaybill/generateNew', {date:rq, line: lineCode}, function () {
442 442 reCountEp.emitLater('calcWaybill');
443   - });*/
  443 + });
444 444  
445 445 //统计油 -廖磊
446 446 gb_common.$post('/ylb/updateHistory', {date:rq, line: lineCode}, function () {
... ...