@xuda.io/xuda-worker-bundle-min 1.3.829 → 1.3.831
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 +7 -22
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1933,7 +1933,9 @@ func.datasource.prepare = async function (
|
|
|
1933
1933
|
SESSION_OBJ[SESSION_ID].dataSourceSessionGlobal++;
|
|
1934
1934
|
}
|
|
1935
1935
|
dataSourceSession = SESSION_OBJ[SESSION_ID].dataSourceSessionGlobal;
|
|
1936
|
-
SESSION_OBJ[SESSION_ID].DS_GLB[dataSourceSession] = {
|
|
1936
|
+
SESSION_OBJ[SESSION_ID].DS_GLB[dataSourceSession] = {
|
|
1937
|
+
data_feed: { rows: [] },
|
|
1938
|
+
};
|
|
1937
1939
|
};
|
|
1938
1940
|
const init_existing_dataSource = function () {
|
|
1939
1941
|
let _ds = SESSION_OBJ[SESSION_ID].DS_GLB[dataSourceNoP];
|
|
@@ -2354,23 +2356,6 @@ func.datasource.execute = async function (
|
|
|
2354
2356
|
filterModel
|
|
2355
2357
|
);
|
|
2356
2358
|
|
|
2357
|
-
// _ds.v.raw_data = await func.db.get_query(
|
|
2358
|
-
// SESSION_ID,
|
|
2359
|
-
// _ds._dataSourceTableId,
|
|
2360
|
-
// _ds.v.couchView,
|
|
2361
|
-
// dataSourceSession,
|
|
2362
|
-
// _ds.viewSourceDesc,
|
|
2363
|
-
// "datasource table",
|
|
2364
|
-
// prog_obj.progDataSource.dataSourceReduce,
|
|
2365
|
-
// await get_skip(),
|
|
2366
|
-
// (await get_limit()) || 99999999,
|
|
2367
|
-
// null,
|
|
2368
|
-
// null,
|
|
2369
|
-
// _ds?.progDataSource?.sortModel,
|
|
2370
|
-
// null,
|
|
2371
|
-
// filterModel
|
|
2372
|
-
// );
|
|
2373
|
-
|
|
2374
2359
|
const ret_rows_found = await func.db.get_query(
|
|
2375
2360
|
SESSION_ID,
|
|
2376
2361
|
_ds._dataSourceTableId,
|
|
@@ -2649,12 +2634,12 @@ func.datasource.execute = async function (
|
|
|
2649
2634
|
!_ds?.data_feed?.rows?.length
|
|
2650
2635
|
) {
|
|
2651
2636
|
_ds.set_mode = "C";
|
|
2652
|
-
data_arr = [{ _ROWID: newRecord }];
|
|
2637
|
+
data_arr = [{ _ROWID: "newRecord" }];
|
|
2653
2638
|
}
|
|
2654
2639
|
|
|
2655
2640
|
if (tree_obj.crudMode === "C") {
|
|
2656
2641
|
_ds.set_mode = "C";
|
|
2657
|
-
data_arr = [{ _ROWID: newRecord }];
|
|
2642
|
+
data_arr = [{ _ROWID: "newRecord" }];
|
|
2658
2643
|
}
|
|
2659
2644
|
|
|
2660
2645
|
for await (let val of data_arr) {
|
|
@@ -2721,7 +2706,7 @@ func.datasource.execute = async function (
|
|
|
2721
2706
|
await func.datasource.render_fields_form(
|
|
2722
2707
|
SESSION_ID,
|
|
2723
2708
|
dataSourceSession,
|
|
2724
|
-
{ _ROWID: newRecord } // { id: "newRecord", value: {} },
|
|
2709
|
+
{ _ROWID: "newRecord" } // { id: "newRecord", value: {} },
|
|
2725
2710
|
// null,
|
|
2726
2711
|
// false,
|
|
2727
2712
|
// "newRecord"
|
|
@@ -3144,7 +3129,7 @@ func.datasource.run_rows_form = async function (
|
|
|
3144
3129
|
idx = rowIdxP;
|
|
3145
3130
|
} else {
|
|
3146
3131
|
const newRecord = 999999;
|
|
3147
|
-
val = _ds.data_feed.rows[newRecord] = { _ROWID: newRecord };
|
|
3132
|
+
val = _ds.data_feed.rows[newRecord] = { _ROWID: "newRecord" };
|
|
3148
3133
|
idx = newRecord;
|
|
3149
3134
|
}
|
|
3150
3135
|
} catch (e) {
|