@xuda.io/xuda-worker-bundle-min 1.3.1153 → 1.3.1155

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.
Files changed (2) hide show
  1. package/index.js +47 -14
  2. 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
- // _ds.data_feed.rows[record_id][field_id] = value;
4101
+
4102
4102
 
4103
4103
  if (!fields_changes.includes(field_id)) {
4104
4104
  fields_changes.push(field_id);
@@ -4109,37 +4109,70 @@ 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 = [];
4115
4141
  }
4116
4142
  if (!_ds.data_feed.rows_changed.includes(record_id))
4117
4143
  _ds.data_feed.rows_changed.push(record_id);
4144
+
4145
+
4146
+
4118
4147
  }
4119
4148
 
4120
4149
  if (!from_worker) {
4121
4150
  if (glb.IS_WORKER) {
4122
4151
  let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _ds.prog_id);
4123
4152
  let server_field = false
4124
- if (tree_ret.menuType === "globals") {
4125
- let _view_obj = await func.utils.VIEWS_OBJ.get(SESSION_ID, _ds.prog_id);
4126
- let view_field_obj = func.common.find_item_by_key(
4127
- _view_obj.progFields,
4128
- "field_id",
4129
- field_id
4130
- );
4131
- server_field = view_field_obj.serverField
4132
- }
4153
+ // if (tree_ret.menuType === "globals") {
4154
+
4155
+ // const _progFields = await func.datasource.get_progFields(
4156
+ // SESSION_ID,
4157
+ // dataSource
4158
+ // );
4159
+ // let view_field_obj = func.common.find_item_by_key(
4160
+ // _progFields,
4161
+ // "field_id",
4162
+ // field_id
4163
+ // );
4164
+ // server_field = view_field_obj.serverField
4165
+ // }
4133
4166
 
4134
4167
 
4135
4168
  if (_session.IS_API || typeof IS_MASTER_WEBSOCKET !== "undefined" || typeof IS_PROCESS_SERVER !== "undefined") {
4136
4169
  continue;
4137
4170
  }
4138
4171
 
4139
- if (tree_ret.menuType !== "component") {
4140
- if (tree_ret.menuType !== "globals" || server_field) {
4141
- continue;
4142
- }
4172
+ if (tree_ret.menuType !== "component" && tree_ret.menuType !== "globals") {
4173
+ // if (tree_ret.menuType !== "globals" || server_field) {
4174
+ continue;
4175
+ // }
4143
4176
  }
4144
4177
  // debugger;
4145
4178
  // update client
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.1153",
3
+ "version": "1.3.1155",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {