panshi_vue_new/src/views/base/waterFlowConfig/BlWaterFlowConfig.data.ts

48 lines
1.6 KiB
TypeScript

import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
{
title: 'SN',
align: "center",
dataIndex: 'sn'
},
{
title: '热力公司',
align: "center",
dataIndex: 'companyCompanyId_dictText'
},
{
title: '锅炉房',
align: "center",
dataIndex: 'sourceSourceId_dictText'
},
// {
// title: '换热站名称',
// align: "center",
// dataIndex: 'stationStationId_dictText'
// },
{
title: '注册设备时间',
align: "center",
dataIndex: 'occurtime',
customRender:({text}) =>{
text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
return text;
},
},
];
// 高级查询数据
export const superQuerySchema = {
sn: {title: 'SN',order: 0,view: 'text', type: 'string',},
occurtime: {title: '注册设备时间',order: 1,view: 'date', type: 'string',},
companyCompanyId: {title: '公司名称',order: 2,view: 'number', type: 'number',dictTable: "bl_thermalcompany", dictCode: 'id', dictText: 'company_name',},
sourceSourceId: {title: '热源名称',order: 3,view: 'number', type: 'number',dictTable: "bl_heatsource", dictCode: 'id', dictText: 'source_name',},
stationStationId: {title: '换热站名称',order: 4,view: 'number', type: 'number',dictTable: "bl_heatsourcestation", dictCode: 'id', dictText: 'station_name',},
};