taskId:083 remark:"commit"

This commit is contained in:
fks-xuxinyue
2024-07-11 09:17:20 +08:00
parent a698c69b7c
commit 5ed7449392
6 changed files with 361 additions and 125 deletions

View File

@@ -1,111 +1,74 @@
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,
export const tableColumns = [
{
title: '序号',
customRender: (text: any) => {
return text.index + 1;
},
},
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: {},
{
title: '能源种类',
dataIndex: 'money',
},
// pagination: { pageSizeOptions: false },
rowKey: 'uuid',
};
{
title: '计量单位',
className: 'column-money',
dataIndex: 'money',
},
{
title: '全年',
dataIndex: 'address',
},
{
title: '1月',
dataIndex: 'address',
},
{
title: '2月',
dataIndex: 'address',
},
{
title: '3月',
dataIndex: 'address',
},
{
title: '4月',
dataIndex: 'address',
},
{
title: '5月',
dataIndex: 'address',
},
{
title: '6月',
dataIndex: 'address',
},
{
title: '7月',
dataIndex: 'address',
},
{
title: '8月',
dataIndex: 'address',
},
{
title: '9月',
dataIndex: 'address',
},
{
title: '10月',
dataIndex: 'address',
},
{
title: '11月',
dataIndex: 'address',
},
{
title: '12月',
dataIndex: 'address',
},
{
title: '操作',
key: 'action',
width: 130
},
];