cloud-web-corejs 1.0.54-dev.522 → 1.0.54-dev.524
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
|
@@ -232,19 +232,24 @@ export default {
|
|
|
232
232
|
enabled: true,
|
|
233
233
|
},
|
|
234
234
|
success: (res) => {
|
|
235
|
-
res.objx
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
235
|
+
let rows = res.objx || [];
|
|
236
|
+
if (rows.length) {
|
|
237
|
+
rows.forEach((value) => {
|
|
238
|
+
value.leaf = !value.hasChild;
|
|
239
|
+
});
|
|
240
|
+
if (node.level === 0) {
|
|
241
|
+
if (rows[0].isParent) {
|
|
242
|
+
if (node.childNodes && node.childNodes.length) {
|
|
243
|
+
this.$nextTick(() => {
|
|
244
|
+
let nodedata = node.childNodes[0];
|
|
245
|
+
nodedata.expanded = true;
|
|
246
|
+
nodedata.loadData();
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
}
|
|
245
250
|
}
|
|
246
251
|
}
|
|
247
|
-
resolve(
|
|
252
|
+
resolve(rows);
|
|
248
253
|
},
|
|
249
254
|
});
|
|
250
255
|
},
|