@xuda.io/xuda-worker-bundle-min 1.3.1154 → 1.3.1156
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/index.js +26 -24
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4109,6 +4109,32 @@ func.datasource.update = async function (
|
|
|
4109
4109
|
} else if (fields_data === "set") {
|
|
4110
4110
|
_ds.currentRecordId = record_id;
|
|
4111
4111
|
}
|
|
4112
|
+
|
|
4113
|
+
if (!from_worker) {
|
|
4114
|
+
if (glb.IS_WORKER) {
|
|
4115
|
+
let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _ds.prog_id);
|
|
4116
|
+
|
|
4117
|
+
if (tree_ret.menuType === "globals") {
|
|
4118
|
+
|
|
4119
|
+
const _progFields = await func.datasource.get_progFields(
|
|
4120
|
+
SESSION_ID,
|
|
4121
|
+
dataSource
|
|
4122
|
+
);
|
|
4123
|
+
let view_field_obj = func.common.find_item_by_key(
|
|
4124
|
+
_progFields,
|
|
4125
|
+
"field_id",
|
|
4126
|
+
field_id
|
|
4127
|
+
);
|
|
4128
|
+
if (view_field_obj.serverField) {
|
|
4129
|
+
delete datasource_changed[dataSource][record_id][field_id]
|
|
4130
|
+
}
|
|
4131
|
+
|
|
4132
|
+
if (record_id === "data_system") {
|
|
4133
|
+
delete datasource_changed[dataSource][record_id]
|
|
4134
|
+
}
|
|
4135
|
+
}
|
|
4136
|
+
}
|
|
4137
|
+
}
|
|
4112
4138
|
}
|
|
4113
4139
|
if (!_ds.data_feed.rows_changed) {
|
|
4114
4140
|
_ds.data_feed.rows_changed = [];
|
|
@@ -4117,31 +4143,7 @@ func.datasource.update = async function (
|
|
|
4117
4143
|
_ds.data_feed.rows_changed.push(record_id);
|
|
4118
4144
|
|
|
4119
4145
|
|
|
4120
|
-
if (!from_worker) {
|
|
4121
|
-
if (glb.IS_WORKER) {
|
|
4122
|
-
let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _ds.prog_id);
|
|
4123
|
-
|
|
4124
|
-
if (tree_ret.menuType === "globals") {
|
|
4125
4146
|
|
|
4126
|
-
const _progFields = await func.datasource.get_progFields(
|
|
4127
|
-
SESSION_ID,
|
|
4128
|
-
dataSource
|
|
4129
|
-
);
|
|
4130
|
-
let view_field_obj = func.common.find_item_by_key(
|
|
4131
|
-
_progFields,
|
|
4132
|
-
"field_id",
|
|
4133
|
-
field_id
|
|
4134
|
-
);
|
|
4135
|
-
if (view_field_obj.serverField) {
|
|
4136
|
-
delete datasource_changed[dataSource][record_id][field_id]
|
|
4137
|
-
}
|
|
4138
|
-
|
|
4139
|
-
if (record_id === "data_system") {
|
|
4140
|
-
delete datasource_changed[dataSource][record_id]
|
|
4141
|
-
}
|
|
4142
|
-
}
|
|
4143
|
-
}
|
|
4144
|
-
}
|
|
4145
4147
|
}
|
|
4146
4148
|
|
|
4147
4149
|
if (!from_worker) {
|