zet-lib 1.2.76 → 1.2.78
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/zAppRouter.js +6 -0
- package/lib/zRoute.js +2 -2
- package/package.json +2 -2
package/lib/zAppRouter.js
CHANGED
|
@@ -1388,6 +1388,12 @@ router.post('/zapproval-update/:table', async (req, res) => {
|
|
|
1388
1388
|
approval_status: value,
|
|
1389
1389
|
approval_history: Util.array_to_jsonb(approval_history),
|
|
1390
1390
|
}
|
|
1391
|
+
if(+value >1 && +value <22) {
|
|
1392
|
+
mydata.lock=1
|
|
1393
|
+
}
|
|
1394
|
+
if((+value === 22)) {
|
|
1395
|
+
mydata.lock=0
|
|
1396
|
+
}
|
|
1391
1397
|
await connection.update({
|
|
1392
1398
|
table: table,
|
|
1393
1399
|
where: {
|
package/lib/zRoute.js
CHANGED
|
@@ -2604,14 +2604,14 @@ zRoute.viewForm = (req, res, MYMODEL, relations, data = {}, MODEL_TABLE = {}, ke
|
|
|
2604
2604
|
if (isTableType) {
|
|
2605
2605
|
obj[key].value = Util.fileView(`/uploads/${MODEL_TABLE.routeName}/${keyName}/`, data[key], {
|
|
2606
2606
|
width: width,
|
|
2607
|
-
class: 'boxy',
|
|
2607
|
+
class: 'boxy zoom',
|
|
2608
2608
|
})
|
|
2609
2609
|
} else {
|
|
2610
2610
|
obj[key].value =
|
|
2611
2611
|
'<br><br>' +
|
|
2612
2612
|
Util.fileView(`/uploads/${MYMODEL.routeName}/`, data[key], {
|
|
2613
2613
|
width: width,
|
|
2614
|
-
class: 'boxy',
|
|
2614
|
+
class: 'boxy zoom',
|
|
2615
2615
|
})
|
|
2616
2616
|
}
|
|
2617
2617
|
break
|
package/package.json
CHANGED