Browse Source

版本3.8.0 2023-12-05 ljd

1、设备导出列表增加了运营商和imsi
master
xiaohei 1 year ago
parent
commit
703f95996b
1 changed files with 11 additions and 2 deletions
  1. +11
    -2
      src/views/doorLock.vue

+ 11
- 2
src/views/doorLock.vue View File

@ -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: '上线时间',
}


Loading…
Cancel
Save