cloud-web-corejs 1.0.54-dev.580 → 1.0.54-dev.582
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/package.json
CHANGED
|
@@ -421,8 +421,6 @@ modules = {
|
|
|
421
421
|
initValue(val) {
|
|
422
422
|
// this.clearRowWidgets()
|
|
423
423
|
let rows = val || [];
|
|
424
|
-
// 处理树结构数据排序
|
|
425
|
-
|
|
426
424
|
// this.handleNullValue(rows);
|
|
427
425
|
rows.forEach((row, index) => {
|
|
428
426
|
row._X_ROW_KEY = "row_" + generateId();
|
|
@@ -494,8 +492,6 @@ modules = {
|
|
|
494
492
|
// console.log("rows:",val);
|
|
495
493
|
this.clearRowWidgets();
|
|
496
494
|
let rows = val || [];
|
|
497
|
-
// 处理树结构数据排序
|
|
498
|
-
// rows = this.handleTreeData(rows);
|
|
499
495
|
rows.forEach((row, index) => {
|
|
500
496
|
if (!row._X_ROW_KEY) {
|
|
501
497
|
row._X_ROW_KEY = "row_" + generateId();
|
|
@@ -1052,8 +1048,8 @@ modules = {
|
|
|
1052
1048
|
},
|
|
1053
1049
|
callback: (res) => {
|
|
1054
1050
|
if (res.type === "success") {
|
|
1055
|
-
let items = this.handleTreeData((res.objx
|
|
1056
|
-
if(res.objx
|
|
1051
|
+
let items = this.handleTreeData((res.objx?.records || res.objx || []));
|
|
1052
|
+
if(res.objx?.records !== undefined){
|
|
1057
1053
|
res.objx.records = items;
|
|
1058
1054
|
}else{
|
|
1059
1055
|
res.objx = items;
|
|
@@ -1378,8 +1374,8 @@ modules = {
|
|
|
1378
1374
|
let done = (res) => {
|
|
1379
1375
|
// this.clearRowWidgets();
|
|
1380
1376
|
|
|
1381
|
-
let items = this.handleTreeData((res.objx
|
|
1382
|
-
if(res.objx
|
|
1377
|
+
let items = this.handleTreeData((res.objx?.records || res.objx || []));
|
|
1378
|
+
if(res.objx?.records !== undefined){
|
|
1383
1379
|
res.objx.records = items;
|
|
1384
1380
|
}else{
|
|
1385
1381
|
res.objx = items;
|
|
@@ -1714,8 +1710,8 @@ modules = {
|
|
|
1714
1710
|
let $grid = this.getGridTable();
|
|
1715
1711
|
// let rows = res.objx ? res.objx.records || res.objx || [] : [];
|
|
1716
1712
|
|
|
1717
|
-
let items = this.handleTreeData((res.objx
|
|
1718
|
-
if(res.objx
|
|
1713
|
+
let items = this.handleTreeData((res.objx?.records || res.objx || []));
|
|
1714
|
+
if(res.objx?.records !== undefined){
|
|
1719
1715
|
res.objx.records = items;
|
|
1720
1716
|
}else{
|
|
1721
1717
|
res.objx = items;
|