diff --git a/resources/views/menu_v1/dashboard.blade.php b/resources/views/menu_v1/dashboard.blade.php index e7f5ca5..7fb8004 100755 --- a/resources/views/menu_v1/dashboard.blade.php +++ b/resources/views/menu_v1/dashboard.blade.php @@ -1448,11 +1448,13 @@ }, showToListMovement: function(obj) { let arrIdx = Helper.getIndexReversedSequence(obj.key_index - 1, Trucks.last_move.length - 1); + const unix = parseInt(obj?.lst_loc_crt_d) + AppState.TIMEFIX; + $('#infoMove-plots').append(`
  • ${arrIdx + 1}

    -

    Time: ${moment.unix(obj?.lst_loc_crt_d).format('DD MMM YYYY HH:mm:ss')}

    +

    Time: ${moment.unix(unix).format('DD MMM YYYY HH:mm:ss')}

    ${Number(obj.latitude).toFixed(5)} - ${Number(obj.longitude).toFixed(6)}

    ${Helper.shortenText(decodeURIComponent(obj?.fulladdress || 'address'), 255)}

    Current speed: ${Number(obj.speed)}km/h

    @@ -1474,11 +1476,12 @@ }, createMarkerDetailPlotMovement: function(tr, opt = {}) { Leaflet.clearLayer('eventRemoveDetailPlotMovement'); + const unix = parseInt(tr?.lst_loc_crt_d) + AppState.TIMEFIX; let marker = Leaflet.addMarkers({ lat: tr.latitude, lng: tr.longitude, // label: `${tr.key_index}
    ${tr.nopol1} ${tr.nopol2} ${tr.nopol3}
    ${moment.unix(tr?.lst_loc_crt).format('DD MMM YYYY HH:mm')}
    Speed: ${(typeof tr.lst_speed != 'undefined') ? tr.lst_speed : '0'}
    ${tr.latitude},${tr.longitude}
    ${decodeURIComponent(tr?.fulladdress || 'address')}`, - label: `${tr.nopol1} ${tr.nopol2} ${tr.nopol3}
    ${moment.unix(tr?.lst_loc_crt).format('DD MMM YYYY HH:mm')}
    ${decodeURIComponent(tr?.fulladdress || 'address')}.

    Current speed: ${tr?.speed}km/h`, + label: `${tr.nopol1} ${tr.nopol2} ${tr.nopol3}
    ${moment.unix(unix).format('DD MMM YYYY HH:mm')}
    ${decodeURIComponent(tr?.fulladdress || 'address')}.

    Current speed: ${tr?.speed}km/h`, //label: `${tr.nopol1} ${tr.nopol2} ${tr.nopol3}
    ${moment.unix(tr?.lst_loc_crt_d).utcOffset(9 * 60).format('DD MMM YYYY HH:mm:ss')}
    ${decodeURIComponent(tr?.fulladdress || 'address')}.

    Current speed: ${tr?.speed}km/h`, options: { // icon: Icon.destination() @@ -2838,6 +2841,8 @@ allStartStop.push(marker) } + const unix = parseInt(obj?.lst_loc_crt_d) + AppState.TIMEFIX; + return { lat: obj.latitude, lng: obj.longitude, @@ -2851,7 +2856,7 @@ radius: 5, markerOpacity: 0 }, - label: `${obj.nopol1} ${obj.nopol2} ${obj.nopol3}
    ${moment.unix(obj?.lst_loc_crt_d).format('DD MMM YYYY HH:mm:ss')}
    ${decodeURIComponent(obj?.fulladdress || 'address')}`, + label: `${obj.nopol1} ${obj.nopol2} ${obj.nopol3}
    ${moment.unix(unix).format('DD MMM YYYY HH:mm:ss')}
    ${decodeURIComponent(obj?.fulladdress || 'address')}`, // startLast : (key == 0) ? 0 : (key == (groupTrip.length - 1)) ? 1 : null, } })