|
|
@ -288,7 +288,7 @@ async function exportDataAlarms(ctx, alarmList, groupId) { |
|
|
|
exportData.push(item) |
|
|
|
} |
|
|
|
let ttype = groupId == '1' ? '数据中断' : groupId == '2' ? '数据异常' : groupId == '3' ? '策略命中' : '设备异常';//数据类告警类别
|
|
|
|
const fileName = `数据异常列表_${ttype}_${moment().format('YYYYMMDDHHmmss')}` + '.csv' |
|
|
|
const fileName = `数据异常列表_${ttype}_${moment().format('YYYYMMDDHHmmss')}` + '.xlsx' |
|
|
|
const filePath = await simpleExcelDown({ data: exportData, header, fileName: fileName }) |
|
|
|
const fileData = fs.readFileSync(filePath); |
|
|
|
ctx.status = 200; |
|
|
|