label fix
This commit is contained in:
@ -785,10 +785,10 @@
|
|||||||
searchable: true,
|
searchable: true,
|
||||||
render: function (data, type, row, meta) {
|
render: function (data, type, row, meta) {
|
||||||
let action = `
|
let action = `
|
||||||
<a href="#" class="text-decoration-none me-1 btnEdtVhc" data-vid="${data}">
|
<a href="#" class="text-decoration-none me-1 btnEdtVhc" data-vid="${data}">
|
||||||
<span class="icon ion-eye fz-16"></span>
|
<span class="icon ion-eye fz-16"></span>
|
||||||
</a>
|
</a>
|
||||||
`;
|
`;
|
||||||
// <a href="#" class="text-decoration-none text-danger btnDelVhc">
|
// <a href="#" class="text-decoration-none text-danger btnDelVhc">
|
||||||
// <span class="icon ion-trash-b fz-16"></span>
|
// <span class="icon ion-trash-b fz-16"></span>
|
||||||
// </a>
|
// </a>
|
||||||
@ -803,9 +803,9 @@
|
|||||||
searchable: true,
|
searchable: true,
|
||||||
render: function (data, type, row, meta) {
|
render: function (data, type, row, meta) {
|
||||||
return `
|
return `
|
||||||
<img src="${State.storage_lara}${row.fvhc_img}" class="img-fluid thumb-img-table" /><br>
|
<img src="${State.storage_lara}${row.fvhc_img}" class="img-fluid thumb-img-table" /><br>
|
||||||
${row.nopol1} ${row.nopol2} ${row.nopol3}
|
${row.nopol1} ${row.nopol2} ${row.nopol3}
|
||||||
`;
|
`;
|
||||||
},
|
},
|
||||||
createdCell: function (td, cellData, rowData, row, col) {
|
createdCell: function (td, cellData, rowData, row, col) {
|
||||||
$(td).attr('data-vid', rowData.vid);
|
$(td).attr('data-vid', rowData.vid);
|
||||||
@ -849,7 +849,7 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
@if ($user_role != \App\Models\Users::ROLE_VENDOR)
|
@if ($user_role != \App\Models\Users::ROLE_VENDOR)
|
||||||
{
|
{
|
||||||
data: 'device_id',
|
data: 'device_id',
|
||||||
className: 'text-end text-nowrap',
|
className: 'text-end text-nowrap',
|
||||||
visible: true,
|
visible: true,
|
||||||
@ -857,7 +857,7 @@
|
|||||||
searchable: true,
|
searchable: true,
|
||||||
render: function (data, type, row, meta) {
|
render: function (data, type, row, meta) {
|
||||||
const device_id = Helper.splitEvery4Char(data);
|
const device_id = Helper.splitEvery4Char(data);
|
||||||
const protocol = " " + row.protocol || '';
|
const protocol = " " + (row.protocol || '');
|
||||||
|
|
||||||
return device_id + '<br>' + protocol;
|
return device_id + '<br>' + protocol;
|
||||||
// return `<span class="d-none">${data}</span>` + Helper.splitEvery4Char(`${data}`);
|
// return `<span class="d-none">${data}</span>` + Helper.splitEvery4Char(`${data}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user