owl-cli 6.204.0 → 6.205.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.
@@ -64,7 +64,7 @@ function main(modelService,spec){
64
64
  var value = modelService.getValue(title.field,row);
65
65
  if(title.type==="date"){
66
66
  if(value){
67
- var ts = new Date(value).getTime();
67
+ var ts = new Date(Number(value));
68
68
  value = formatDateWithTimeZone(ts, 8);
69
69
  // value = ts /86400000+25569; //这是excel的特殊的格式,用小数点表示
70
70
  }
@@ -125,6 +125,12 @@ function main(modelService,spec){
125
125
  /****************************************/
126
126
  var export_fileName = DateUtil.getLongDate(new Date().getTime());
127
127
 
128
+ titleList.forEach(function(title){
129
+ //date类型的值,已经变成了字符串,不需要再设置导出类型,默认为字符串
130
+ if(title.type==='date'){
131
+ delete title.type;
132
+ }
133
+ });
128
134
  var fileUrl = Excel.createExcelList(export_fileName, titleList, recordList);
129
135
 
130
136
  var taskInfo = modelService.getExportTaskInfo(taskInfoId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owl-cli",
3
- "version": "6.204.0",
3
+ "version": "6.205.0",
4
4
  "main": "index.js",
5
5
  "preferGlobal": true,
6
6
  "bin": {