update report
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user