149 lines
2.8 KiB
TypeScript
149 lines
2.8 KiB
TypeScript
import {BasicColumn} from '/@/components/Table';
|
||
import {FormSchema} from '/@/components/Table';
|
||
import { rules} from '/@/utils/helper/validator';
|
||
import { render } from '/@/utils/common/renderUtils';
|
||
//列表数据
|
||
export const columns: BasicColumn[] = [
|
||
{
|
||
title: '站点名称',
|
||
align: 'center',
|
||
dataIndex: 'stationName',
|
||
},
|
||
{
|
||
title: '设备编号',
|
||
align: 'center',
|
||
dataIndex: 'deployCode',
|
||
},
|
||
{
|
||
title: '数据更新时间',
|
||
align: 'center',
|
||
dataIndex: 'dataDateTime',
|
||
},
|
||
// {
|
||
// title: '数据ID',
|
||
// align: "center",
|
||
// dataIndex: 'dataId'
|
||
// },
|
||
{
|
||
title: '总磷(mg/L)',
|
||
align: 'center',
|
||
dataIndex: 'dataWaterTpSy',
|
||
},
|
||
{
|
||
title: '总氮(mg/L)',
|
||
align: 'center',
|
||
dataIndex: 'dataWaterTnSy',
|
||
},
|
||
// {
|
||
// title: '氨氮(mg/L)',
|
||
// align: "center",
|
||
// dataIndex: 'dataWaterNh'
|
||
// },
|
||
{
|
||
title: '化学需氧量(mg/L)',
|
||
align: 'center',
|
||
dataIndex: 'dataWaterCodSy',
|
||
},
|
||
|
||
// {
|
||
// title: '数据类型;realTime=实时,dayTime=日数据,month=月数据,year=年数据',
|
||
// align: "center",
|
||
// dataIndex: 'dataGatherType'
|
||
// },
|
||
// {
|
||
// title: '转储时间',
|
||
// align: "center",
|
||
// dataIndex: 'transDate',
|
||
// },
|
||
];
|
||
|
||
//查询数据
|
||
export const searchFormSchema: FormSchema[] = [
|
||
];
|
||
|
||
//表单数据
|
||
export const formSchema: FormSchema[] = [
|
||
{
|
||
label: '租户号',
|
||
field: 'tenantId',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '乐观锁',
|
||
field: 'reVision',
|
||
component: 'InputNumber',
|
||
},
|
||
{
|
||
label: '创建人',
|
||
field: 'createdBy',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '创建时间',
|
||
field: 'createTime',
|
||
component: 'DatePicker',
|
||
},
|
||
{
|
||
label: '更新人',
|
||
field: 'updatedBy',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '逻辑删除',
|
||
field: 'isDel',
|
||
component: 'InputNumber',
|
||
},
|
||
{
|
||
label: '更新时间',
|
||
field: 'updatedTime',
|
||
component: 'DatePicker',
|
||
},
|
||
{
|
||
label: '数据ID',
|
||
field: 'dataId',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '总磷',
|
||
field: 'dataWaterTpSy',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '总氮',
|
||
field: 'dataWaterTnSy',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '化学需氧量',
|
||
field: 'dataWaterCodSy',
|
||
component: 'Input',
|
||
},
|
||
// {
|
||
// label: '硝态氮',
|
||
// field: 'dataWaterNo',
|
||
// component: 'Input',
|
||
// },
|
||
{
|
||
label: '数据更新时间',
|
||
field: 'dataDateTime',
|
||
component: 'DatePicker',
|
||
},
|
||
{
|
||
label: '数据类型;realTime=实时,dayTime=日数据,month=月数据,year=年数据',
|
||
field: 'dataGatherType',
|
||
component: 'Input',
|
||
},
|
||
{
|
||
label: '转储时间',
|
||
field: 'transDate',
|
||
component: 'DatePicker',
|
||
},
|
||
// TODO 主键隐藏字段,目前写死为ID
|
||
{
|
||
label: '',
|
||
field: 'id',
|
||
component: 'Input',
|
||
show: false,
|
||
},
|
||
];
|