From 703f95996bf4b87d299f98f8ef5c2e0c7ec2a170 Mon Sep 17 00:00:00 2001 From: xiaohei <11674173+xiaohei102908@user.noreply.gitee.com> Date: Tue, 5 Dec 2023 19:14:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC3.8.0=20=202023-12-05=20=20lj?= =?UTF-8?q?d=201=E3=80=81=E8=AE=BE=E5=A4=87=E5=AF=BC=E5=87=BA=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=A2=9E=E5=8A=A0=E4=BA=86=E8=BF=90=E8=90=A5=E5=95=86?= =?UTF-8?q?=E5=92=8Cimsi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/doorLock.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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: '上线时间', }