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, }, ];