@xuda.io/runtime-bundle 1.0.700 → 1.0.701
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/js/xuda-runtime-slim.js
CHANGED
|
@@ -8597,25 +8597,26 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8597
8597
|
|
|
8598
8598
|
const fx = {
|
|
8599
8599
|
update_datasource: async function () {
|
|
8600
|
-
|
|
8601
|
-
|
|
8600
|
+
if (queue_obj?.paramsP) {
|
|
8601
|
+
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[queue_obj.dsSession];
|
|
8602
|
+
_ds.currentRecordId = queue_obj.paramsP.currentRecordId;
|
|
8602
8603
|
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
};
|
|
8606
|
-
await func.datasource.update(SESSION_ID, datasource_changes);
|
|
8607
|
-
|
|
8608
|
-
if (queue_obj.paramsP.field_id) {
|
|
8609
|
-
datasource_changes = {
|
|
8610
|
-
[_ds.dsSession]: {
|
|
8611
|
-
[_ds.currentRecordId]: {
|
|
8612
|
-
[queue_obj.paramsP.field_id]: queue_obj.paramsP.field_value,
|
|
8613
|
-
},
|
|
8614
|
-
},
|
|
8604
|
+
var datasource_changes = {
|
|
8605
|
+
[_ds.dsSession]: { [_ds.currentRecordId]: 'set' },
|
|
8615
8606
|
};
|
|
8616
8607
|
await func.datasource.update(SESSION_ID, datasource_changes);
|
|
8617
|
-
}
|
|
8618
8608
|
|
|
8609
|
+
if (queue_obj.paramsP.field_id) {
|
|
8610
|
+
datasource_changes = {
|
|
8611
|
+
[_ds.dsSession]: {
|
|
8612
|
+
[_ds.currentRecordId]: {
|
|
8613
|
+
[queue_obj.paramsP.field_id]: queue_obj.paramsP.field_value,
|
|
8614
|
+
},
|
|
8615
|
+
},
|
|
8616
|
+
};
|
|
8617
|
+
await func.datasource.update(SESSION_ID, datasource_changes);
|
|
8618
|
+
}
|
|
8619
|
+
}
|
|
8619
8620
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8620
8621
|
},
|
|
8621
8622
|
execute_xu_render_attributes: async function () {
|
|
@@ -8598,25 +8598,26 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8598
8598
|
|
|
8599
8599
|
const fx = {
|
|
8600
8600
|
update_datasource: async function () {
|
|
8601
|
-
|
|
8602
|
-
|
|
8601
|
+
if (queue_obj?.paramsP) {
|
|
8602
|
+
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[queue_obj.dsSession];
|
|
8603
|
+
_ds.currentRecordId = queue_obj.paramsP.currentRecordId;
|
|
8603
8604
|
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
};
|
|
8607
|
-
await func.datasource.update(SESSION_ID, datasource_changes);
|
|
8608
|
-
|
|
8609
|
-
if (queue_obj.paramsP.field_id) {
|
|
8610
|
-
datasource_changes = {
|
|
8611
|
-
[_ds.dsSession]: {
|
|
8612
|
-
[_ds.currentRecordId]: {
|
|
8613
|
-
[queue_obj.paramsP.field_id]: queue_obj.paramsP.field_value,
|
|
8614
|
-
},
|
|
8615
|
-
},
|
|
8605
|
+
var datasource_changes = {
|
|
8606
|
+
[_ds.dsSession]: { [_ds.currentRecordId]: 'set' },
|
|
8616
8607
|
};
|
|
8617
8608
|
await func.datasource.update(SESSION_ID, datasource_changes);
|
|
8618
|
-
}
|
|
8619
8609
|
|
|
8610
|
+
if (queue_obj.paramsP.field_id) {
|
|
8611
|
+
datasource_changes = {
|
|
8612
|
+
[_ds.dsSession]: {
|
|
8613
|
+
[_ds.currentRecordId]: {
|
|
8614
|
+
[queue_obj.paramsP.field_id]: queue_obj.paramsP.field_value,
|
|
8615
|
+
},
|
|
8616
|
+
},
|
|
8617
|
+
};
|
|
8618
|
+
await func.datasource.update(SESSION_ID, datasource_changes);
|
|
8619
|
+
}
|
|
8620
|
+
}
|
|
8620
8621
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8621
8622
|
},
|
|
8622
8623
|
execute_xu_render_attributes: async function () {
|