| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- import { BasicColumn } from '/@/components/Table';
- import { FormSchema } from '/@/components/Table';
- import { list } from '../substationTabel/substation.api';
- export const columns: BasicColumn[] = [
- {
- title: '名称',
- dataIndex: 'strname',
- width: 120,
- },
- {
- title: '安装位置',
- dataIndex: 'strinstallpos',
- width: 100,
- },
- {
- title: '风窗类型',
- dataIndex: 'nwindowtype_dictText',
- width: 100,
- },
- {
- title: '风窗净宽(m)',
- dataIndex: 'fclearwidth',
- width: 80,
- },
- {
- title: '活动扇叶高度(m)',
- dataIndex: 'fperheight',
- width: 100,
- },
- {
- title: '活动扇叶数量',
- dataIndex: 'nwindownum',
- width: 100,
- },
- {
- title: '所属分站',
- width: 150,
- dataIndex: 'stationname',
- },
- {
- title: '安装位置巷道面积',
- width: 100,
- dataIndex: 'finstalltunarea',
- },
- ];
- export const recycleColumns: BasicColumn[] = [
- {
- title: '名称',
- dataIndex: 'strname',
- width: 100,
- },
- {
- title: '是否为常闭型',
- dataIndex: 'bnormalclose',
- width: 100,
- },
- ];
- export const searchFormSchema: FormSchema[] = [
- {
- label: '设备类型',
- field: 'strtype',
- component: 'JDictSelectTag',
- componentProps: {
- dictCode: 'windowkind',
- placeholder: '请选择设备类型',
- },
- colProps: { span: 6 },
- },
- {
- label: '安装位置',
- field: 'strinstallpos',
- component: 'Input',
- colProps: { span: 6 },
- },
- {
- label: '所属分站',
- field: 'nsubstationid',
- component: 'ApiSelect',
- componentProps: {
- api: list,
- labelField: 'strname',
- valueField: 'id',
- },
- colProps: { span: 6 },
- },
- ];
- export const formSchema: FormSchema[] = [
- {
- label: '',
- field: 'id',
- component: 'Input',
- show: false,
- },
- {
- label: '名称',
- field: 'strname',
- component: 'Input',
- },
- {
- label: '安装位置',
- field: 'strinstallpos',
- component: 'Input',
- },
- {
- label: '风窗类型',
- field: 'nwindowtype',
- component: 'JDictSelectTag',
- componentProps: {
- dictCode: 'nwindowtype',
- placeholder: '请选择',
- },
- },
- {
- label: '最大面积(㎡)',
- field: 'maxarea',
- component: 'InputNumber',
- },
- {
- label: '风窗净宽(m)',
- field: 'fclearwidth',
- component: 'InputNumber',
- },
- {
- label: '活动扇叶高度(m)',
- field: 'fperheight',
- component: 'InputNumber',
- },
- {
- label: '风窗厚度(m)',
- field: 'fperdepth',
- component: 'InputNumber',
- },
- {
- label: '风窗道数',
- field: 'nwindownum',
- component: 'InputNumber',
- },
- {
- label: '活动扇叶数量',
- field: 'nwindow',
- component: 'InputNumber',
- },
- {
- label: '前窗脉冲数',
- field: 'nfrontplusecircle',
- component: 'InputNumber',
- },
- {
- label: '后窗脉冲数',
- field: 'nbackplusecircle ',
- component: 'InputNumber',
- },
- {
- label: '所属分站',
- field: 'nsubstationid',
- component: 'ApiSelect',
- componentProps: {
- api: list,
- labelField: 'strname',
- valueField: 'id',
- },
- },
- {
- label: '安装位置巷道面积',
- field: 'finstalltunarea',
- component: 'InputNumber',
- },
- {
- label: '点表',
- field: 'strtype',
- component: 'JDictSelectTag',
- componentProps: {
- dictCode: 'windowkind',
- placeholder: '请选择状态',
- },
- },
- {
- label: '监测类型',
- field: 'monitorflag_dictText',
- component: 'JDictSelectTag',
- componentProps: {
- dictCode: 'monitorflag',
- placeholder: '请选择状态',
- },
- },
- {
- label: '是否模拟数据',
- field: 'testflag',
- component: 'RadioGroup',
- defaultValue: 1,
- componentProps: () => {
- return {
- options: [
- { label: '是', value: 1, key: '1' },
- { label: '否', value: 0, key: '2' },
- ],
- };
- },
- },
- ];
|