|
@ -1313,11 +1313,18 @@ export default { |
|
|
orderBy: "open_time desc", |
|
|
orderBy: "open_time desc", |
|
|
q: JSON.stringify(qObject) |
|
|
q: JSON.stringify(qObject) |
|
|
} |
|
|
} |
|
|
httpPost(data, this.$api.exportDeviceOrder).then(res => { |
|
|
|
|
|
|
|
|
httpPost(data, this.$api.getDeviceItems).then(res => { |
|
|
|
|
|
console.log(res) |
|
|
if (res.code == 200) { |
|
|
if (res.code == 200) { |
|
|
let exportData = [] |
|
|
let exportData = [] |
|
|
//导出数据结构构造 |
|
|
//导出数据结构构造 |
|
|
res.data.forEach(item => { |
|
|
|
|
|
|
|
|
res.data.list.forEach(item => { |
|
|
|
|
|
var accessPlatform = this.accessPlatform.show.filter(lt => lt.code == item.accessPlatform)[0] |
|
|
|
|
|
if (accessPlatform) { |
|
|
|
|
|
item['accessPlatformText'] = accessPlatform.desc |
|
|
|
|
|
} else { |
|
|
|
|
|
item['accessPlatformText'] = '' |
|
|
|
|
|
} |
|
|
exportData.push({ |
|
|
exportData.push({ |
|
|
roomName: item.roomName, |
|
|
roomName: item.roomName, |
|
|
deviceNum: item.deviceNum, |
|
|
deviceNum: item.deviceNum, |
|
@ -1326,6 +1333,7 @@ export default { |
|
|
isOnline: item.isOnline == 1 ? '在线' : item.isOnline == 2 ? '异常' : '离线', |
|
|
isOnline: item.isOnline == 1 ? '在线' : item.isOnline == 2 ? '异常' : '离线', |
|
|
battery: item.battery, |
|
|
battery: item.battery, |
|
|
rssi: item.rssi, |
|
|
rssi: item.rssi, |
|
|
|
|
|
Operator: item.accessPlatformText, |
|
|
createAt: moment(item.createAt).format("YYYY-MM-DD HH:mm:ss"), |
|
|
createAt: moment(item.createAt).format("YYYY-MM-DD HH:mm:ss"), |
|
|
lastReportAt: moment(item.lastReportAt).format("YYYY-MM-DD HH:mm:ss"), |
|
|
lastReportAt: moment(item.lastReportAt).format("YYYY-MM-DD HH:mm:ss"), |
|
|
}) |
|
|
}) |
|
@ -1339,6 +1347,7 @@ export default { |
|
|
isOnline: '状态', |
|
|
isOnline: '状态', |
|
|
battery: '电量', |
|
|
battery: '电量', |
|
|
rssi: '信号', |
|
|
rssi: '信号', |
|
|
|
|
|
Operator: "运营商", |
|
|
createAt: '注册时间', |
|
|
createAt: '注册时间', |
|
|
lastReportAt: '上线时间', |
|
|
lastReportAt: '上线时间', |
|
|
} |
|
|
} |
|
|