import {BasicColumn} from '/@/components/Table'; import {FormSchema} from '/@/components/Table'; import { rules} from '/@/utils/helper/validator'; import { render } from '/@/utils/common/renderUtils'; import { getWeekMonthQuarterYear } from '/@/utils'; //列表数据 export const columns: BasicColumn[] = [ { title: '题目id', align:"center", dataIndex: 'questionId' }, { title: '选项内容', align:"center", dataIndex: 'content' }, { title: '是否正确答案', align:"center", dataIndex: 'izCorrent' }, { title: '序号', align:"center", dataIndex: 'orderNo' }, ]; //查询数据 export const searchFormSchema: FormSchema[] = [ ]; //表单数据 export const formSchema: FormSchema[] = [ { label: '题目id', field: 'questionId', component: 'Input', }, { label: '选项内容', field: 'content', component: 'Input', }, { label: '是否正确答案', field: 'izCorrent', component: 'InputNumber', }, { label: '序号', field: 'orderNo', component: 'InputNumber', }, // TODO 主键隐藏字段,目前写死为ID { label: '', field: 'id', component: 'Input', show: false }, ]; // 高级查询数据 export const superQuerySchema = { questionId: {title: '题目id',order: 0,view: 'text', type: 'string',}, content: {title: '选项内容',order: 1,view: 'text', type: 'string',}, izCorrent: {title: '是否正确答案',order: 2,view: 'number', type: 'number',}, orderNo: {title: '序号',order: 3,view: 'number', type: 'number',}, }; /** * 流程表单调用这个方法获取formSchema * @param param */ export function getBpmFormSchema(_formData): FormSchema[]{ // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema return formSchema; }