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