123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- import { BasicColumn } from '/@/components/Table';
- import { FormSchema } from '/@/components/Table';
- import { list, modalList, huifengids, xufengids, getDeviceIds } from './workingFace.api';
- export const columns: BasicColumn[] = [
- {
- title: '系统名称',
- dataIndex: 'strname',
- width: 120,
- },
- {
- title: '系统型号',
- dataIndex: 'strinstallpos',
- width: 100,
- },
- {
- title: '系统Code',
- dataIndex: 'nwindowtype_dictText',
- width: 100,
- },
- {
- title: '类型',
- dataIndex: 'strtype',
- width: 80,
- },
- {
- title: '模型ID',
- dataIndex: 'fperheight',
- width: 100,
- },
- {
- title: '控制策略',
- dataIndex: 'nwindow',
- width: 100,
- },
- {
- title: '风向',
- width: 150,
- dataIndex: 'stationname',
- },
- ];
- export const recycleColumns: BasicColumn[] = [
- {
- title: '名称',
- dataIndex: 'strname',
- width: 100,
- },
- {
- title: '是否为常闭型',
- dataIndex: 'bnormalclose',
- width: 100,
- },
- ];
- export const searchFormSchema: FormSchema[] = [
- {
- label: '系统名称',
- field: 'systemname',
- component: 'Input',
- colProps: { span: 6 },
- },
- ];
- export const formSchema: FormSchema[] = [
- {
- label: '',
- field: 'id',
- component: 'Input',
- show: false,
- },
- {
- label: '系统名称',
- field: 'systemname',
- component: 'Input',
- },
- {
- label: '系统型号',
- field: 'strsystype',
- component: 'Input',
- },
- {
- label: '系统Code',
- field: 'code',
- component: 'Input',
- },
- {
- label: '系统类型',
- field: 'strtype',
- component: 'JDictSelectTag',
- componentProps: {
- dictCode: 'syskind',
- placeholder: '请选择系统型号',
- },
- },
- {
- label: '模型ID',
- field: 'nmodelid',
- component: 'ApiSelect',
- componentProps: () => {
- return {
- api: modalList,
- resultField: 'records',
- labelField: 'strmodelname',
- valueField: 'nmodelid',
- };
- },
- },
- {
- label: '控制策略',
- field: 'workmode',
- component: 'JDictSelectTag',
- componentProps: {
- dictCode: 'workmode',
- placeholder: '请选择控制策略',
- stringToNumber: true,
- },
- },
- {
- label: '点表',
- field: 'strtype',
- component: 'JDictSelectTag',
- componentProps: {
- dictCode: 'syskind',
- placeholder: '请选择状态',
- },
- },
- {
- label: '风向',
- field: 'windkind',
- component: 'JDictSelectTag',
- componentProps: {
- dictCode: 'winddir',
- placeholder: '请选择风向',
- stringToNumber: true,
- },
- },
- {
- label: '所属回风系统',
- field: 'huifengid',
- component: 'ApiSelect',
- componentProps: () => {
- return {
- api: huifengids,
- labelField: 'huifengName',
- valueField: 'id',
- };
- },
- },
- {
- label: '关联需风量地点',
- field: 'xufengliangid',
- component: 'ApiSelect',
- componentProps: () => {
- return {
- api: xufengids,
- labelField: 'strmodelname',
- valueField: 'nmodelid',
- };
- },
- },
- ];
|