import { BasicColumn } from '/@/components/Table'; import { FormSchema } from '/@/components/Table'; import { rules } from '/@/utils/helper/validator'; import { render } from '/@/utils/common/renderUtils'; import { getWeekMonthQuarterYear } from '/@/utils'; //列表数据 export const columns: BasicColumn[] = [ { title: '设备编码', align: 'center', dataIndex: 'imei', }, { title: 'ICCID', align: 'center', dataIndex: 'iccid', }, { title: '是否在线', align: 'center', dataIndex: 'isOnline', format(text, record, index) { console.log("🌊 ~ format ~ text:", text) if (text == 'true') { return '在线'; } else { return '离线'; } }, }, { title: '区域名称', align: 'center', dataIndex: 'housingestateName', }, { title: '设备点位', align: 'center', dataIndex: 'content', }, { title: '桶数量', align: 'center', dataIndex: 'boxNum', }, { title: '是否在仓库中', align: 'center', dataIndex: 'inWarehouse', format(text, record, index) { if (text == 0) { return '0待翻译'; } else { return '1待翻译'; } }, }, // { // title: '区域ID', // align: 'center', // dataIndex: 'housingestateId', // }, ]; // 高级查询数据 export const superQuerySchema = { imei: { title: '设备编码', order: 0, view: 'text', type: 'string' }, iccid: { title: 'ICCID', order: 1, view: 'text', type: 'string' }, isOnline: { title: '是否在线', order: 2, view: 'text', type: 'string' }, content: { title: '设备点位', order: 3, view: 'text', type: 'string' }, boxNum: { title: '桶数量', order: 4, view: 'text', type: 'string' }, inWarehouse: { title: '是否在仓库中', order: 5, view: 'text', type: 'string' }, housingestateId: { title: '区域ID', order: 6, view: 'text', type: 'string' }, };