zet-lib 1.2.109 → 1.2.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/zRoute.js +5 -1
- package/package.json +1 -1
package/lib/zRoute.js
CHANGED
|
@@ -866,6 +866,10 @@ zRoute.dataTableFilter = (MYMODEL, relations, filter) => {
|
|
|
866
866
|
types[key] = 'input'
|
|
867
867
|
break
|
|
868
868
|
|
|
869
|
+
case 'table':
|
|
870
|
+
dataTable[key] = ``
|
|
871
|
+
break
|
|
872
|
+
|
|
869
873
|
/*case "json" :
|
|
870
874
|
dataTable[key] = `<input type="number" class="form-control form-control-sm" value="${value}" id="data_table_${key}" >`;
|
|
871
875
|
types[key] = 'input';
|
|
@@ -1918,7 +1922,7 @@ zRoute.listDataTable = async (req, res, objData = {}) => {
|
|
|
1918
1922
|
let buttons = objData.hasOwnProperty('actionButtons') ? objData.actionButtons(levels, row, MYMODEL.table) : zRoute.actionButtons(levels, row, MYMODEL.table)
|
|
1919
1923
|
arr.push(buttons)
|
|
1920
1924
|
} else {
|
|
1921
|
-
let data = objData.hasOwnProperty('
|
|
1925
|
+
let data = objData.hasOwnProperty('dataTableData') ? objData.dataTableData(item, row[item], MYMODEL, relations) : zRoute.dataTableData(item, row[item], MYMODEL, relations, row.id)
|
|
1922
1926
|
arr.push(data)
|
|
1923
1927
|
}
|
|
1924
1928
|
})
|