update
This commit is contained in:
@ -484,6 +484,7 @@
|
||||
// {
|
||||
// data: 'finish',
|
||||
// render: (data, type, row, meta) => {
|
||||
// console.log(row)
|
||||
// // saat export, hanya tampilkan lokasi tanpa tanggal/jam
|
||||
// if (type === 'export') {
|
||||
// return Helper.shortenText(decodeURIComponent(row.finishLoc ||
|
||||
@ -494,28 +495,30 @@
|
||||
// ${Helper.shortenText(decodeURIComponent(row.finishLoc || 'address'), 255) || "-"}
|
||||
// `;
|
||||
// }
|
||||
// },
|
||||
// },
|
||||
{
|
||||
data: 'finish',
|
||||
render: (data, type, row) => {
|
||||
console.log(row.fulladdress);
|
||||
console.log(row.latitude);
|
||||
console.log(row.longitude);
|
||||
// console.log(row.fulladdress);
|
||||
// console.log(row.latitude);
|
||||
// console.log(row.longitude);
|
||||
// console.log("End Loc : ",row.endLoc)
|
||||
console.log('fulll data ',row)
|
||||
|
||||
// Saat export Excel
|
||||
if (type === 'export') {
|
||||
|
||||
const nearestSite = findNearestSite(
|
||||
row.latitude,
|
||||
row.longitude
|
||||
);
|
||||
// const nearestSite = findNearestSite(
|
||||
// row.latitude,
|
||||
// row.longitude
|
||||
// );
|
||||
|
||||
if (nearestSite) {
|
||||
return formatSiteLabel(nearestSite);
|
||||
}
|
||||
// if (nearestSite) {
|
||||
// return formatSiteLabel(nearestSite);
|
||||
// }
|
||||
|
||||
return Helper.shortenText(
|
||||
decodeURIComponent(row.fulladdress || 'address'),
|
||||
decodeURIComponent(row.finishLoc || 'address'),
|
||||
255
|
||||
) || '-';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user