import {BasicColumn} from '/@/components/Table'; import {FormSchema} from '/@/components/Table'; import { rules} from '/@/utils/helper/validator'; import { render } from '/@/utils/common/renderUtils'; //列表数据 export const columns: BasicColumn[] = [ { title: '问卷名称', align: "center", dataIndex: 'title', width: 200 }, { title: '学号', align: "center", dataIndex: 'userId', width: 100 }, { title: '学生', align: "center", dataIndex: 'userName', width: 100 }, { title: '得分', align: "center", dataIndex: 'score', width: 80 }, { title: '总分数', align: "center", dataIndex: 'totalScore', width: 80 }, { title: '答卷时间', align: "center", dataIndex: 'openTime', width: 150 }, { title: '交卷时间', align: "center", dataIndex: 'commitTime', width: 150 }, { title: '答卷用时', align: "center", dataIndex: 'answerSfm', width: 80 }, { title: '学期学年', align: "center", dataIndex: 'xqxn', width: 80 }, // { // title: '课程名称', // align: "center", // dataIndex: 'kcmc', // width: 200 // }, // { // title: '作答开始时间', // align: "center", // dataIndex: 'startTime', // width: 150 // }, // { // title: '作答结束时间', // align: "center", // dataIndex: 'endTime', // width: 150 // }, // { // title: '问卷描述', // align: "center", // dataIndex: 'content', // width: 200 // }, ]; export const dccolumns: BasicColumn[] = [ { title: '问卷名称', align: "center", dataIndex: 'title', width: 200 }, { title: '学号', align: "center", dataIndex: 'userId', width: 100 }, { title: '学生', align: "center", dataIndex: 'userName', width: 100 }, { title: '答卷时间', align: "center", dataIndex: 'openTime', width: 150 }, { title: '交卷时间', align: "center", dataIndex: 'commitTime', width: 150 }, { title: '答卷用时', align: "center", dataIndex: 'answerSfm', width: 80 }, { title: '学期学年', align: "center", dataIndex: 'xqxn', width: 80 }, { title: '课程名称', align: "center", dataIndex: 'kcmc', width: 200 }, { title: '开始时间', align: "center", dataIndex: 'startTime', width: 150 }, { title: '结束时间', align: "center", dataIndex: 'endTime', width: 150 }, { title: '问卷描述', align: "center", dataIndex: 'content', width: 200 }, ]; //查询数据 export const searchFormSchema: FormSchema[] = [ ]; //表单数据 export const formSchema: FormSchema[] = [ // TODO 主键隐藏字段,目前写死为ID { label: '', field: 'id', component: 'Input', show: false, }, ];