huanzi-vue/src/views/zh/shebei/zcxx/DeviceInfo.data.ts

66 lines
1.1 KiB
TypeScript
Raw Normal View History

import { BasicColumn } from '/@/components/Table';
2025-07-03 16:13:18 +08:00
//列表数据
export const columns: BasicColumn[] = [
{
title: '设备编码',
align: 'center',
dataIndex: 'imei',
},
2025-07-03 16:13:18 +08:00
{
title: '区域名称',
align: 'center',
dataIndex: 'housingestateName',
},
{
title: '设备点位',
align: 'center',
dataIndex: 'content',
},
{
title: '桶数量',
align: 'center',
dataIndex: 'boxNum',
},
{
title: '注册会员数',
align: "center",
dataIndex: 'hyCount'
},
{
title: '投递次数',
align: "center",
dataIndex: 'tdcsCount'
},
{
title: 'ICCID',
align: 'center',
dataIndex: 'iccid',
},
{
title: '是否在线',
align: 'center',
dataIndex: 'isOnline',
2025-07-03 16:13:18 +08:00
format(text) {
if (text == 'true') {
return '在线';
} else {
return '离线';
}
},
},
{
title: '是否在仓库中',
align: 'center',
dataIndex: 'inWarehouse',
format(text, record, index) {
2025-07-03 16:13:18 +08:00
if (text == '0') {
return '离仓';
} else {
2025-07-03 16:13:18 +08:00
return '在仓';
}
},
},
];