EV3-401 Verzióváltott teszt - Beszállítói adatbázis
FIX supllier datatables column definitation
This commit is contained in:
parent
cb6b55df1d
commit
4141c69ff5
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"/js/app.js": "/js/app.js?id=8eebbb7cc03522e40f2a774f36c0d6b0",
|
"/js/app.js": "/js/app.js?id=bfd5b3c87b1ce7a5f3cf9f87cfc03bc6",
|
||||||
"/js/admin.js": "/js/admin.js?id=ba79095db4031ff8fcb2db67804629a7",
|
"/js/admin.js": "/js/admin.js?id=ba79095db4031ff8fcb2db67804629a7",
|
||||||
"/js/module.js": "/js/module.js?id=67c3aa137dd61f211d1157b3ae1c5578",
|
"/js/module.js": "/js/module.js?id=5ce18ae01fbbb5024dd3040821c906f2",
|
||||||
"/js/components.js": "/js/components.js?id=34668cee8ac371c98657beffcff579b8",
|
"/js/components.js": "/js/components.js?id=34668cee8ac371c98657beffcff579b8",
|
||||||
"/css/app.css": "/css/app.css?id=883a2d68194f1a6064f55eaedb17e768",
|
"/css/app.css": "/css/app.css?id=883a2d68194f1a6064f55eaedb17e768",
|
||||||
"/fonts/vendor/bootstrap-icons/bootstrap-icons.woff2?92ea18a81d737146ff044ddb52010366": "/fonts/vendor/bootstrap-icons/bootstrap-icons.woff2?92ea18a81d737146ff044ddb52010366?id=9ad5aa740d7d5e6a0191b309b9b1986c",
|
"/fonts/vendor/bootstrap-icons/bootstrap-icons.woff2?92ea18a81d737146ff044ddb52010366": "/fonts/vendor/bootstrap-icons/bootstrap-icons.woff2?92ea18a81d737146ff044ddb52010366?id=9ad5aa740d7d5e6a0191b309b9b1986c",
|
||||||
|
|||||||
@ -17,9 +17,23 @@ window.getMonday=function(date,dateStr) {
|
|||||||
window.debug=function (txt)
|
window.debug=function (txt)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
if (txt && typeof txt === 'object' && !Array.isArray(txt)) {
|
||||||
|
const seen = new WeakSet();
|
||||||
|
const safeObj = JSON.parse(JSON.stringify(txt, (key, value) => {
|
||||||
|
if (typeof value === 'object' && value !== null) {
|
||||||
|
if (seen.has(value)) return '[Circular]';
|
||||||
|
seen.add(value);
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}));
|
||||||
|
console.log(safeObj);
|
||||||
|
} else {
|
||||||
|
console.log(txt);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(e){
|
||||||
console.log(txt);
|
console.log(txt);
|
||||||
}
|
}
|
||||||
catch(e){}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
window.buildFormData=function(formData, data, parentKey) {
|
window.buildFormData=function(formData, data, parentKey) {
|
||||||
|
|||||||
@ -48,7 +48,7 @@ class ModuleBase {
|
|||||||
|
|
||||||
datatableRowActionButtonClick(event,rootObj,options) {
|
datatableRowActionButtonClick(event,rootObj,options) {
|
||||||
debug('call ModuleBase.datatableRowActionButtonClick');
|
debug('call ModuleBase.datatableRowActionButtonClick');
|
||||||
debug(rootObj);
|
// debug(rootObj); // Removed to avoid circular structure issues in logging
|
||||||
let node = $(event[0].currentTarget);
|
let node = $(event[0].currentTarget);
|
||||||
let row = $(rootObj.Opts.dataTable.CSSSelector).DataTable().row(node.parents('tr'));
|
let row = $(rootObj.Opts.dataTable.CSSSelector).DataTable().row(node.parents('tr'));
|
||||||
let rowData = row.data();
|
let rowData = row.data();
|
||||||
|
|||||||
@ -75,17 +75,12 @@ if(typeof window.SupplierModule ==="undefined") {
|
|||||||
{ "data": "name" },
|
{ "data": "name" },
|
||||||
{ "data": "product_group" },
|
{ "data": "product_group" },
|
||||||
{ "data": "service" },
|
{ "data": "service" },
|
||||||
/*
|
{ "data": "canSeeInOrder", "render": function(data) { return data == 1 ? "<i class=\"fas fa-check text-success\"></i>" : "<i class=\"fas fa-times text-danger\"></i>"; } },
|
||||||
{ "data": "hooreycaId" },
|
|
||||||
{ "data": "nameId" },
|
|
||||||
{ "data": "created_at" },
|
|
||||||
*/
|
|
||||||
null,
|
null,
|
||||||
],
|
],
|
||||||
"order": orderDirective,
|
"order": orderDirective,
|
||||||
//"stateSave": true,
|
//"stateSave": true,
|
||||||
"drawCallback": function( settings ) {
|
"drawCallback": function( settings ) {
|
||||||
settings=null;
|
|
||||||
APP.datatableAddRowAction(dataTableCSSSelector);
|
APP.datatableAddRowAction(dataTableCSSSelector);
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user