fix 1
This commit is contained in:
@ -715,14 +715,14 @@
|
||||
searchable: true,
|
||||
},
|
||||
{
|
||||
data: 'action',
|
||||
data: 'id',
|
||||
className: 'text-center',
|
||||
visible: true,
|
||||
orderable: true,
|
||||
searchable: true,
|
||||
render: function(data, type, row, meta) {
|
||||
let action = `
|
||||
<a href="#" class="text-decoration-none me-1 btnEdtVhc">
|
||||
<a href="#" class="text-decoration-none me-1 btnEdtVhc" data-vid="${data}">
|
||||
<span class="icon ion-eye fz-16"></span>
|
||||
</a>
|
||||
`;
|
||||
@ -823,7 +823,7 @@
|
||||
},
|
||||
},
|
||||
{
|
||||
data: 'crt_d',
|
||||
data: 'crt',
|
||||
className: 'text-end text-nowrap',
|
||||
visible: true,
|
||||
orderable: true,
|
||||
@ -1228,7 +1228,8 @@
|
||||
event: function() {
|
||||
// modal
|
||||
$('#tVehicles').on('click', '.btnEdtVhc', async function(e) {
|
||||
let vid = $(e.target).closest('tr').find('td[data-vid]').data('vid');
|
||||
// let vid = $(e.target).closest('tr').find('td[data-vid]').data('vid');
|
||||
const vid = $(this).data('vid');
|
||||
VEdt.removeOptionDevice(State.dvc_type.portable);
|
||||
let resp = await VEdt.reqData({
|
||||
vid
|
||||
|
||||
Reference in New Issue
Block a user