import moment from 'moment' import { left } from 'inquirer/lib/utils/readline' import type { BasicColumn, FormSchema } from '@/components/Table' import { DICT_TYPE, getDictOptions } from '@/utils/dict' export const columns: BasicColumn[] = [ { title: '编号', dataIndex: 'id', width: 80, fixed: 'left', }, { title: '机组', dataIndex: 'unitName', width: 100, fixed: 'left', }, { title: '模型名称', dataIndex: 'modelName', width: 250, fixed: 'left', }, { title: '算法', dataIndex: 'algorithmName', width: 200, }, { title: '测点个数', dataIndex: 'pointNumber', width: 200, slots: { customRender: 'pointNumber' }, }, { title: '模型精度', dataIndex: 'precision', width: 200, slots: { customRender: 'precision' }, }, ] export const searchFormSchema: FormSchema[] = [ { label: '模型名称', field: 'modelName', component: 'Input', defaultValue: '', colProps: { span: 6 }, }, ]