owl-cli 6.183.0 → 6.185.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.
@@ -24,6 +24,7 @@ function main(modelService,spec){
24
24
  taskInfo.processState = "processing";
25
25
  taskInfo.percent = 20;
26
26
  taskInfo.lastTime = new Date().getTime();
27
+ taskInfo.total = ret.total;
27
28
  taskInfo.msg = "获取数据记录完成, 数据条数:" + ret.total;
28
29
  modelService.updateExportTaskInfo(taskInfoId, taskInfo);
29
30
  /*****************************/
@@ -40,6 +41,13 @@ function main(modelService,spec){
40
41
  titleList.forEach(function(title){
41
42
  var field = title.field;
42
43
  var value = modelService.getValue(field,row);
44
+ if(title.type==="date"){
45
+ if(value){
46
+ var ts = new Date(value).getTime();
47
+ value = ts /86400000+25569; //这是excel的特殊的格式,用小数点表示
48
+ }
49
+
50
+ }
43
51
  record[field] = value;
44
52
  });
45
53
  return record;
@@ -129,7 +137,7 @@ function getRows(modelService, spec) {
129
137
  total: count
130
138
  }
131
139
  }
132
- else if(exportRange=== "selected") {
140
+ else if(exportRange=== "checkedOnly") {
133
141
  var ids = params.ids;
134
142
  var rows = [];
135
143
  ids.forEach(function(id){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owl-cli",
3
- "version": "6.183.0",
3
+ "version": "6.185.0",
4
4
  "main": "index.js",
5
5
  "preferGlobal": true,
6
6
  "bin": {