@xuda.io/xuda-worker-bundle-min 1.3.788 → 1.3.789
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 +15 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1899,6 +1899,8 @@ func.datasource.prepare = async function (
|
|
|
1899
1899
|
IS_DATASOURCE_REFRESH = true;
|
|
1900
1900
|
|
|
1901
1901
|
try {
|
|
1902
|
+
if (!_ds.v) _ds.v = {};
|
|
1903
|
+
|
|
1902
1904
|
delete _ds.v.old_dataSource; // to eliminate parse error
|
|
1903
1905
|
delete _ds.rows_found;
|
|
1904
1906
|
_ds.raw_data = {};
|
|
@@ -8370,18 +8372,29 @@ func.events.execute = async function (
|
|
|
8370
8372
|
SESSION_ID,
|
|
8371
8373
|
"xuda-event-javascript-module.mjs"
|
|
8372
8374
|
);
|
|
8373
|
-
|
|
8375
|
+
|
|
8376
|
+
return await module.run_javascript(
|
|
8377
|
+
SESSION_ID,
|
|
8378
|
+
jobNoP,
|
|
8379
|
+
dsSession,
|
|
8380
|
+
`(async function($elm) {
|
|
8381
|
+
${refIdP.value}
|
|
8382
|
+
})(document.querySelector(\`[xu-ui-id=${elementP}]\`))`
|
|
8383
|
+
);
|
|
8374
8384
|
},
|
|
8375
8385
|
execute_evaluate_javascript: async function () {
|
|
8376
8386
|
const module = await func.common.get_module(
|
|
8377
8387
|
SESSION_ID,
|
|
8378
8388
|
"xuda-event-javascript-module.mjs"
|
|
8379
8389
|
);
|
|
8390
|
+
|
|
8380
8391
|
return await module.run_javascript(
|
|
8381
8392
|
SESSION_ID,
|
|
8382
8393
|
jobNoP,
|
|
8383
|
-
refIdP,
|
|
8384
8394
|
dsSession,
|
|
8395
|
+
`(async function($elm) {
|
|
8396
|
+
${refIdP.value}
|
|
8397
|
+
})(document.querySelector(\`[xu-ui-id=${elementP}]\`))`,
|
|
8385
8398
|
true
|
|
8386
8399
|
);
|
|
8387
8400
|
},
|