...
|
...
|
@@ -167,6 +167,8 @@ const couponController = { |
|
|
downloadNoList(req, res, next) {
|
|
|
const couponId = req.query.id;
|
|
|
|
|
|
res.setTimeout(1000 * 60 * 3 + 1000);
|
|
|
|
|
|
if (!couponId) {
|
|
|
return res.json({
|
|
|
code: 400,
|
...
|
...
|
@@ -216,7 +218,6 @@ const couponController = { |
|
|
|
|
|
let exportFile = excelExport.execute(conf);
|
|
|
|
|
|
res.setTimeout(1000 * 60 * 3 + 1000);
|
|
|
res.setHeader('Content-Type', 'application/vnd.openxmlformats');
|
|
|
res.setHeader('Content-Disposition', 'attachment; filename=couponList.xlsx');
|
|
|
res.end(exportFile, 'binary');
|
...
|
...
|
|