update report

This commit is contained in:
Pringgosutono
2025-09-03 23:03:59 +07:00
parent 14f5246c86
commit ff5b411178
3 changed files with 55 additions and 71 deletions

View File

@ -78,7 +78,7 @@
<tr class="">
<!-- <th class="">Vehicle ID</th> -->
<!-- <th class="text-center">Action</th> -->
<th class="">Vehicle Name</th>
<!-- <th class="">Vehicle Name</th> -->
<th class="">License Plate Number</th>
<th class="">Time</th>
<th class="">Speed (kph)</th>
@ -116,8 +116,7 @@
activate: function() {
Wrapper.init();
Wrapper.event();
DTable.activate();
// DTable.activate();
},
init: ()=>{
$('#tgl0, #tgl1').datetimepicker({
@ -193,10 +192,10 @@
deferRender: true,
columns: [
// { data: 'id', visible: false }, // vhc_id
{
data: 'name',
className: 'text-start text-nowrap',
},
// {
// data: 'name',
// className: 'text-start text-nowrap',
// },
{
data: 'nopol1',
className: 'text-start',
@ -220,7 +219,13 @@
buttons: [
{
extend: 'excelHtml5',
title: `Abnormality Report - ${moment(safeVal('#tgl0')).format('DD MMM YYYY')} to ${moment(safeVal('#tgl1')).format('DD MMM YYYY')}`,
title: () => {
return `
Vehicle Trip Report -
${moment($('#tgl0').val(), "DD-MM-YYYY HH:mm").format('DD MMM YYYY HH:mm')}
to
${moment($('#tgl1').val(), "DD-MM-YYYY HH:mm").format('DD MMM YYYY HH:mm')}`
},
className: 'd-none', // hide default button
exportOptions: {
columns: ':visible:not(:first-child)' // 🔹 exclude first column