diff --git a/src/views/doorLock.vue b/src/views/doorLock.vue index ab95972..0f0072d 100644 --- a/src/views/doorLock.vue +++ b/src/views/doorLock.vue @@ -1313,11 +1313,18 @@ export default { orderBy: "open_time desc", 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) { 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({ roomName: item.roomName, deviceNum: item.deviceNum, @@ -1326,6 +1333,7 @@ export default { isOnline: item.isOnline == 1 ? '在线' : item.isOnline == 2 ? '异常' : '离线', battery: item.battery, rssi: item.rssi, + Operator: item.accessPlatformText, createAt: moment(item.createAt).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: '状态', battery: '电量', rssi: '信号', + Operator: "运营商", createAt: '注册时间', lastReportAt: '上线时间', }