|
|
@ -455,28 +455,25 @@ import * as echarts from "echarts"; |
|
|
|
}, |
|
|
|
//导出 |
|
|
|
SystemStatusExport(){ |
|
|
|
download( |
|
|
|
"/fault/list/exportFaultReport", |
|
|
|
{ faultId: row.id }, |
|
|
|
"file.xlsx"); |
|
|
|
// getSystemStatusExport({ |
|
|
|
// startTime:this.startTime, |
|
|
|
// time:this.time, |
|
|
|
// type:this.typeQuery, |
|
|
|
// }).then((res)=>{ |
|
|
|
// console.log(res); |
|
|
|
// const url = window.URL.createObjectURL(new Blob([res])) |
|
|
|
// let link = document.createElement('a') |
|
|
|
// link.style.display = 'none' |
|
|
|
// link.href = url |
|
|
|
// link.setAttribute('download', '学生信息列表.xlsx') |
|
|
|
// document.body.appendChild(link) |
|
|
|
// link.click() |
|
|
|
// URL.revokeObjectURL(link.href) // 释放URL 对象 |
|
|
|
// document.body.removeChild(link) |
|
|
|
// link = null |
|
|
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
getSystemStatusExport({ |
|
|
|
startTime:this.startTime, |
|
|
|
time:this.time, |
|
|
|
type:this.typeQuery, |
|
|
|
}).then((res)=>{ |
|
|
|
console.log(res); |
|
|
|
const url = window.URL.createObjectURL(new Blob([res])) |
|
|
|
let link = document.createElement('a') |
|
|
|
link.style.display = 'none' |
|
|
|
link.href = url |
|
|
|
link.setAttribute('download', '设备统计信息.xlsx') |
|
|
|
document.body.appendChild(link) |
|
|
|
link.click() |
|
|
|
URL.revokeObjectURL(link.href) // 释放URL 对象 |
|
|
|
document.body.removeChild(link) |
|
|
|
link = null |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
queryChartList(){ |
|
|
|
|
|
|
|