import {BasicColumn} from '/@/components/Table'; import {FormSchema} from '/@/components/Table'; //列表数据 export const columns: BasicColumn[] = [ // { // title: '单元编码', // align: "center", // dataIndex: 'nuId' // }, // { // title: '单元名称', // align: "center", // dataIndex: 'nuName' // }, // { // title: '序号', // align: "center", // dataIndex: 'id' // }, { title: '设备序号', align: "center", dataIndex: 'sn' }, { title: '设备维度', align: "center", dataIndex: 'dimension' }, { title: '设备状态', align: "center", dataIndex: 'relayState', customRender:({record})=>{ if(record.relayState=='1'){ return "合闸"; }else if(record.relayState=='0'){ return "拉闸"; }else{ return "未知"; } }, }, { title: '分配状态', align: "center", dataIndex: 'izAllocate', customRender:({record})=>{ if(record.izAllocate=='Y'){ return "已分配"; }else{ return "未分配"; } }, }, { title: '用电量KWH', align: "center", dataIndex: 'eleValue' }, { title: '上次抄表时间', align: "center", dataIndex: 'readTime' }, ]; export const searchFormSchema: FormSchema[] = [ { label: '设备状态', field: 'relayState', component: 'JDictSelectTag', componentProps: { placeholder: '请选择状态', options: [ { label: '合闸', value: '1' }, { label: '拉闸', value: '0' }, ], }, // colProps: { span: 6 }, }, { label: '分配状态', field: 'izAllocate', component: 'JDictSelectTag', componentProps: { placeholder: '请选择分配状态', options: [ {label: '已分配', value: 'Y'}, {label: '未分配', value: 'N'}, ], }, // colProps: { span: 6 }, } ];