import { dateUtil } from '/nerv-lib/util/date-util'; import data from './mock.json'; export const tableConfig = { title: '设备台账', // api: '/carbon_emission/device/getDeviceList', value: data.dataSource, params: { page: 0, pageSize: 10, }, rowSelection: null, columns: [ { title: '序号', customRender: (text: any) => { return text.index + 1; }, }, { title: '能源种类', dataIndex: 'id', }, { title: '计量单位', dataIndex: 'deviceCode', }, { title: '全年', dataIndex: 'deviceName', textNumber: 8, textEllipsis: true, }, { title: '设备一级区域', dataIndex: 'position', }, { title: '设备二级区域', dataIndex: 'position', }, { title: '设备详细位置', dataIndex: 'position', }, { title: '设备规格', dataIndex: 'position', }, { title: '设备厂商纳税人识别号', dataIndex: 'position', }, { title: '厂商联系人', dataIndex: 'position', }, { title: '设备描述', dataIndex: 'position', }, { title: 'IP地址', dataIndex: 'position', }, { title: '生产日期', dataIndex: 'position', }, { title: '采购日期', dataIndex: 'position', }, { title: '启用日期', dataIndex: 'position', }, { title: '设备成本(元)', dataIndex: 'position', }, { title: '使用期限', dataIndex: 'position', }, { title: '额定功率', dataIndex: 'position', }, { title: '特殊参数', dataIndex: 'position', }, ], formConfig: { schemas: [ { field: 'createTime', label: '生产日期', component: 'NsRangePicker', fieldMap: ['queryStartDate', 'queryEndDate'], componentProps: { valueFormat: 'YYYY-MM-DD', }, }, ], params: {}, }, // pagination: { pageSizeOptions: false }, rowKey: 'uuid', };