|
@@ -147,8 +147,12 @@ class ProductService extends CrudService {
|
|
'sheet1': Object.assign({}, output, { '!ref': ref })
|
|
'sheet1': Object.assign({}, output, { '!ref': ref })
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
+ const nowDate = new Date().getTime()
|
|
|
|
+ const path = 'D:\\wwwroot\\service\\service-file\\upload\\platform\\' + nowDate + '.xlsx'
|
|
|
|
+ const respath = 'http://free.liaoningdoupo.com:80/files/platform/'+ nowDate + '.xlsx'
|
|
// 导出 Excel
|
|
// 导出 Excel
|
|
- XLSX.writeFile(wb, 'D:/'+new Date().getTime()+'.xlsx');
|
|
|
|
|
|
+ XLSX.writeFile(wb, path);
|
|
|
|
+ return respath
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|