明树Git Lab

Commit d8eebba4 authored by zengfanpei's avatar zengfanpei

update

parent 836d66af
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
"getDeviceList": false, "getDeviceList": false,
"getAllDevice": false, "getAllDevice": false,
"collectDeviceInfo": false, "collectDeviceInfo": false,
"collectDeviceInfo4": true, "collectDeviceInfo4": false,
"excel": true "excel": true
} }
} }
\ No newline at end of file
...@@ -19,7 +19,7 @@ const ExcelJS = require('exceljs'); ...@@ -19,7 +19,7 @@ const ExcelJS = require('exceljs');
const fs = require('fs'); const fs = require('fs');
// exportExcel() exportExcel()
async function exportExcel() { async function exportExcel() {
let info = await DB.ExcelRecord.findOne({ type: 2, status: 1 }); let info = await DB.ExcelRecord.findOne({ type: 2, status: 1 });
...@@ -62,7 +62,7 @@ async function exportExcel() { ...@@ -62,7 +62,7 @@ async function exportExcel() {
mimetype: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", mimetype: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
filename: name + '.xlsx', filename: name + '.xlsx',
path: excelUrl, path: excelUrl,
nginxpath: _.last(String(req.file.path).split('/mnt/vdb1')), nginxpath: _.last(String(path).split('/mnt/vdb1')),
type: 2, type: 2,
}); });
// 3. 更新任务结果 // 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