owl-cli 6.165.0 → 6.167.0

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.
@@ -524,6 +524,7 @@ var @projectCodeService = (function (pigeon) {
524
524
 
525
525
 
526
526
  treeNode.parentPathIds = parentPathIds.reverse();
527
+ treeNode.fullPathIds = treeNode.parentPathIds.concat([treeNode.id]);
527
528
  treeNode.parentPathNames = parentPathNames.reverse();
528
529
  if(treeNode.parentPathNames ){
529
530
  var sep = "";
@@ -13,30 +13,32 @@ taskInfo.processState = "processing";
13
13
  taskInfo.msg = "获取导出总数成功......";
14
14
  taskInfo.percent = "1";
15
15
  taskInfo.fileUrls = [];
16
+ @projectCodeService.updateExportTaskInfo( taskInfoId, taskInfo );
17
+
16
18
 
17
19
  var from = 0;
20
+ var allListObjs = [];
18
21
  while(from < taskInfo.total){
19
22
  var listObjs = @projectCodeService.getAllObjectsEx(from, 10000);
20
-
23
+ allListObjs = allListObjs.concat(listObjs);
24
+ from = from + listObjs.length;
21
25
  taskInfo.lastTime = new Date().getTime();
22
26
  taskInfo.processState = "processing";
23
- taskInfo.msg = "导出数据成功,生成zip......";
24
- taskInfo.percent = (from + listObjs.length) * 100 / taskInfo.total;
25
-
26
- var s = JSON.stringify(listObjs);
27
- var fileId = "" + $.addAsZip(s);
28
-
29
- taskInfo.fileId = fileId;
30
- taskInfo.fileUrl = FileService.getFullPath(fileId);
31
- taskInfo.fileUrls.push(taskInfo.fileUrl);
27
+ taskInfo.msg = "正在导出......";
28
+ taskInfo.percent = (allListObjs.length) * 100 / taskInfo.total;
32
29
  taskInfo.exportedRows = from + listObjs.length;
33
- from = from + listObjs.length;
34
30
  @projectCodeService.updateExportTaskInfo( taskInfoId, taskInfo );
35
31
  }
36
32
 
33
+ var s = JSON.stringify(allListObjs);
34
+ var fileId = "" + $.addAsZip(s);
35
+
37
36
  taskInfo.processState = "success";
38
37
  taskInfo.percent = 100;
39
38
  taskInfo.msg = "导出文件成功";
39
+ taskInfo.fileId = fileId;
40
+ taskInfo.fileUrl = FileService.getFullPath(fileId);
41
+ taskInfo.fileUrls.push(taskInfo.fileUrl);
40
42
  @projectCodeService.updateExportTaskInfo( taskInfoId, taskInfo );
41
43
 
42
44
 
@@ -47,3 +49,5 @@ taskInfo.msg = "导出文件成功";
47
49
 
48
50
 
49
51
 
52
+
53
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owl-cli",
3
- "version": "6.165.0",
3
+ "version": "6.167.0",
4
4
  "main": "index.js",
5
5
  "preferGlobal": true,
6
6
  "bin": {