panshi_vue_new/src/views/heating/heatanalysis/Heatanalysis.data.ts

273 lines
4.7 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: 'view001Name',
width:140,
ellipsis: false
},
{
title: '锅炉房',
align: "center",
dataIndex: 'view002Name',
ellipsis: false
},
{
title: '换热站',
align: "center",
dataIndex: 'view004Name',
ellipsis: false
},
{
title: '数据时间',
align: "center",
dataIndex: 'datatime',
ellipsis: false
},
{
title:'一次网',
width:100,
children:[
{
title: '供水温度',
align:"center",
width:120,
dataIndex: 'view005',
},
{
title: '回水温度',
align:"center",
width:120,
dataIndex: 'view006'
},
{
title: '供水压力',
align:"center",
width:120,
dataIndex: 'view007'
},
{
title: '回水压力',
align:"center",
width:120,
dataIndex: 'view008'
}
]},
{
title:'二次网',
width:100,
children:[
{
title: '供水温度',
align:"center",
width:120,
dataIndex: 'view009'
},
{
title: '回水温度',
align:"center",
width:120,
dataIndex: 'view010'
},
{
title: '供水压力',
align:"center",
width:120,
dataIndex: 'view011'
},
{
title: '回水压力',
align:"center",
width:120,
dataIndex: 'view012'
}
]},
];
//列表数据
export const columnsJx: BasicColumn[] = [
{
title: '热力公司',
align: "center",
dataIndex: 'view001Name',
width:100,
},
{
title: '锅炉房',
align: "center",
dataIndex: 'view002Name',
width:120,
},
{
title: '数据时间',
align: "center",
dataIndex: 'view032',
width:160,
},
{
title: '供水温度',
align: "center",
width: 90,
dataIndex: 'view005',
},
{
title: '回水温度',
align: "center",
width: 90,
dataIndex: 'view006'
},
{
title: '供水压力',
align: "center",
width: 90,
dataIndex: 'view007'
},
{
title: '回水压力',
align: "center",
width: 90,
dataIndex: 'view008'
},
{
title: '瞬时热量',
align: "center",
width: 90,
dataIndex: 'view041'
},
{
title: '正累积热量',
align: 'center',
width: 90,
dataIndex: 'view042',
},
{
title: '负累积热量',
align: 'center',
width: 90,
dataIndex: 'view043',
},
{
title: '净累积热量',
align: "center",
width: 90,
dataIndex: 'view044'
},
{
title: '瞬时流量',
align: "center",
width: 90,
dataIndex: 'view037'
},
{
title: '正累积流量',
align: 'center',
width: 90,
dataIndex: 'view038',
},
{
title: '负累积流量',
align: 'center',
width: 90,
dataIndex: 'view039',
},
{
title: '净累积流量',
align: "center",
width: 90,
dataIndex: 'view040'
},
{
title: '流体速度',
align: 'center',
width: 90,
dataIndex: 'view045',
},
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
{
label: '热力公司',
field: 'view001Name',
},
{
label: '锅炉房',
field: 'view002Name',
},
{
label: '换热站',
field: 'view004Name',
},
{
label: '数据时间',
field: 'datatime',
component: 'DatePicker',
},
{
label: '一次供水温度',
field: 'view005',
component: 'InputNumber',
},
{
label: '一次回水温度',
field: 'view006',
component: 'InputNumber',
},
{
label: '一次供水压力',
field: 'view007',
component: 'InputNumber',
},
{
label: '一次回水压力',
field: 'view008',
component: 'InputNumber',
},
{
label: '二次供水温度',
field: 'view009',
component: 'InputNumber',
},
{
label: '二次回水温度',
field: 'view010',
component: 'InputNumber',
},
{
label: '二次供水压力',
field: 'view011',
component: 'InputNumber',
},
{
label: '二次回水压力',
field: 'view012',
component: 'InputNumber',
},
{
label: 'sim',
field: 'sim',
component: 'Input',
},
{
label: '设备代码',
field: 'code',
component: 'Input',
},
// TODO 主键隐藏字段目前写死为ID
{
label: '',
field: 'id',
component: 'Input',
show: false,
},
];