明树Git Lab

Commit d8eebba4 authored by zengfanpei's avatar zengfanpei

update

parent 836d66af
......@@ -37,7 +37,7 @@
"getDeviceList": false,
"getAllDevice": false,
"collectDeviceInfo": false,
"collectDeviceInfo4": true,
"collectDeviceInfo4": false,
"excel": true
}
}
\ No newline at end of file
......@@ -19,7 +19,7 @@ const ExcelJS = require('exceljs');
const fs = require('fs');
// exportExcel()
exportExcel()
async function exportExcel() {
let info = await DB.ExcelRecord.findOne({ type: 2, status: 1 });
......@@ -62,7 +62,7 @@ async function exportExcel() {
mimetype: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
filename: name + '.xlsx',
path: excelUrl,
nginxpath: _.last(String(req.file.path).split('/mnt/vdb1')),
nginxpath: _.last(String(path).split('/mnt/vdb1')),
type: 2,
});
// 3. 更新任务结果
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment