2025-07-02 20:17:21 +08:00
|
|
|
import { BasicColumn } from '/@/components/Table';
|
2025-07-03 16:13:18 +08:00
|
|
|
|
2025-07-02 20:17:21 +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'
|
|
|
|
},
|
2025-07-02 20:17:21 +08:00
|
|
|
{
|
|
|
|
title: 'ICCID',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'iccid',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '是否在线',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'isOnline',
|
2025-07-03 16:13:18 +08:00
|
|
|
format(text) {
|
2025-07-02 20:17:21 +08:00
|
|
|
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 '离仓';
|
2025-07-02 20:17:21 +08:00
|
|
|
} else {
|
2025-07-03 16:13:18 +08:00
|
|
|
return '在仓';
|
2025-07-02 20:17:21 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
];
|