FenXiNspBackControl/src/views/appmana/orientwater/realtime/SurvTransdataOrientwater.da...

162 lines
3.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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: 'dataWaterTp'
},
{
title: '总氮(mg/L)',
align: "center",
dataIndex: 'dataWaterTn'
},
// {
// title: '硝态氮(mg/L)',
// align: "center",
// dataIndex: 'dataWaterNo'
// },
{
title: '化学需氧量(mg/L)',
align: "center",
dataIndex: 'dataWaterCod'
},
// {
// title: '1#球阀状态',
// align: "center",
// dataIndex: 'firstValveStatus',
// customRender: ({ text }) => {
// if (!text || text == '00') {
// return '开';
// } else if (text == '01') {
// return '关';
// }
// },
// },
// {
// title: '2#球阀状态',
// align: "center",
// dataIndex: 'secondValveStatus',
// customRender: ({ text }) => {
// if (!text || text == '00') {
// return '开';
// } else if (text == '01') {
// return '关';
// }
// },
// },
// {
// title: '数据类型;realTime=实时dayTime=日数据month=月数据year=年数据',
// align: "center",
// dataIndex: 'dataGatherType'
// },
];
//查询数据
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: 'dataWaterTp',
component: 'Input',
},
{
label: '总氮',
field: 'dataWaterTn',
component: 'Input',
},
{
label: '氨氮',
field: 'dataWaterNh',
component: 'Input',
},
{
label: '化学需氧量',
field: 'dataWaterCod',
component: 'Input',
},
{
label: '数据更新时间',
field: 'dataDateTime',
component: 'DatePicker',
},
{
label: '数据类型;realTime=实时dayTime=日数据month=月数据year=年数据',
field: 'dataGatherType',
component: 'Input',
},
// TODO 主键隐藏字段目前写死为ID
{
label: '',
field: 'id',
component: 'Input',
show: false,
},
];