handleDownload() {
this.downloadLoading = true
import('@/utils/excel').then((excel) => {
const tHeader = ['产品', '设备编码', '设备名称', '设备状态', '最近在线时间', '离线时长', '数据上报频率']
const filterVal = ['productName', 'deviceNo', 'deviceName', 'deviceDataStatus', 'reportLatelyTime', 'offlineDuration', 'reportRate']
const list = this.list
const data = this.formatJson(filterVal, list)
excel.export_json_to_excel({
header: tHeader,
data,
filename: this.filename,
autoWidth: this.autoWidth,
bookType: this.bookType,
})
this.downloadLoading = false
})
},