cloud-web-corejs 1.0.54-dev.773 → 1.0.54-dev.774
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/package.json
CHANGED
|
@@ -1250,7 +1250,9 @@ modules = {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
} else if (widgetType === "number") {
|
|
1252
1252
|
if (e === undefined || e === null) {
|
|
1253
|
-
|
|
1253
|
+
// 清空存 null:undefined 会被 JSON.stringify 丢弃,字段不进请求体,
|
|
1254
|
+
// 后台按“未传即不更新”处理导致清空无法落库;null 可序列化并被后台置空。
|
|
1255
|
+
e = null;
|
|
1254
1256
|
this.fieldModel = e;
|
|
1255
1257
|
}
|
|
1256
1258
|
}
|
|
@@ -92,7 +92,9 @@ export default {
|
|
|
92
92
|
return fieldModel;
|
|
93
93
|
},
|
|
94
94
|
set(val) {
|
|
95
|
-
|
|
95
|
+
// 清空时存 null 而非 undefined:undefined 会被 JSON.stringify 丢弃,
|
|
96
|
+
// 导致该字段不进请求体,后台按“未传即不更新”处理,清空无法落库。
|
|
97
|
+
const newValue = val === undefined || val === null ? null : val;
|
|
96
98
|
this.fieldModel = newValue;
|
|
97
99
|
const currentData =
|
|
98
100
|
this.tableParam && this.tableParam.row
|