@xuda.io/xuda-worker-bundle-min 1.3.1152 → 1.3.1154
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 +45 -14
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4098,7 +4098,7 @@ func.datasource.update = async function (
|
|
|
4098
4098
|
console.error(err);
|
|
4099
4099
|
}
|
|
4100
4100
|
|
|
4101
|
-
|
|
4101
|
+
|
|
4102
4102
|
|
|
4103
4103
|
if (!fields_changes.includes(field_id)) {
|
|
4104
4104
|
fields_changes.push(field_id);
|
|
@@ -4115,31 +4115,62 @@ func.datasource.update = async function (
|
|
|
4115
4115
|
}
|
|
4116
4116
|
if (!_ds.data_feed.rows_changed.includes(record_id))
|
|
4117
4117
|
_ds.data_feed.rows_changed.push(record_id);
|
|
4118
|
+
|
|
4119
|
+
|
|
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
|
+
|
|
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
|
+
}
|
|
4118
4145
|
}
|
|
4119
4146
|
|
|
4120
4147
|
if (!from_worker) {
|
|
4121
4148
|
if (glb.IS_WORKER) {
|
|
4122
4149
|
let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _ds.prog_id);
|
|
4123
4150
|
let server_field = false
|
|
4124
|
-
if (tree_ret.menuType === "globals") {
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4151
|
+
// if (tree_ret.menuType === "globals") {
|
|
4152
|
+
|
|
4153
|
+
// const _progFields = await func.datasource.get_progFields(
|
|
4154
|
+
// SESSION_ID,
|
|
4155
|
+
// dataSource
|
|
4156
|
+
// );
|
|
4157
|
+
// let view_field_obj = func.common.find_item_by_key(
|
|
4158
|
+
// _progFields,
|
|
4159
|
+
// "field_id",
|
|
4160
|
+
// field_id
|
|
4161
|
+
// );
|
|
4162
|
+
// server_field = view_field_obj.serverField
|
|
4163
|
+
// }
|
|
4133
4164
|
|
|
4134
4165
|
|
|
4135
4166
|
if (_session.IS_API || typeof IS_MASTER_WEBSOCKET !== "undefined" || typeof IS_PROCESS_SERVER !== "undefined") {
|
|
4136
4167
|
continue;
|
|
4137
4168
|
}
|
|
4138
4169
|
|
|
4139
|
-
if (tree_ret.menuType !== "component") {
|
|
4140
|
-
if (tree_ret.menuType !== "globals" || server_field) {
|
|
4141
|
-
|
|
4142
|
-
}
|
|
4170
|
+
if (tree_ret.menuType !== "component" && tree_ret.menuType !== "globals") {
|
|
4171
|
+
// if (tree_ret.menuType !== "globals" || server_field) {
|
|
4172
|
+
continue;
|
|
4173
|
+
// }
|
|
4143
4174
|
}
|
|
4144
4175
|
// debugger;
|
|
4145
4176
|
// update client
|