zet-lib 1.2.10 → 1.2.12
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/Form.js +1 -2
- package/lib/index.js +2 -0
- package/lib/zRoute.js +6 -1
- package/package.json +1 -1
package/lib/Form.js
CHANGED
|
@@ -323,8 +323,7 @@ Form.field = (obj) => {
|
|
|
323
323
|
selects = ''
|
|
324
324
|
if (data) {
|
|
325
325
|
data.map((item) => {
|
|
326
|
-
|
|
327
|
-
selects += `<option value="${item.id}" ${selected} >${item.zname}</option>`
|
|
326
|
+
selects += `<option value="${item.id}">${item.zname}</option>`
|
|
328
327
|
})
|
|
329
328
|
}
|
|
330
329
|
|
package/lib/index.js
CHANGED
package/lib/zRoute.js
CHANGED
|
@@ -193,7 +193,12 @@ zRoute.post = (req, res, MYMODEL, routeName, body) => {
|
|
|
193
193
|
|
|
194
194
|
case 'lexical':
|
|
195
195
|
post[routeName][key] = JSON.stringify(post[routeName][key])
|
|
196
|
-
|
|
196
|
+
break
|
|
197
|
+
|
|
198
|
+
case 'select':
|
|
199
|
+
if (!post[routeName][key]) {
|
|
200
|
+
post[routeName][key] = 0
|
|
201
|
+
}
|
|
197
202
|
break
|
|
198
203
|
|
|
199
204
|
case 'table':
|