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: 'xqxn', }, { title: '开课单位', align: 'center', dataIndex: 'kkdw', }, { title: '课程编号', align: 'center', dataIndex: 'kcbh', }, { title: '课程名称', align: 'center', dataIndex: 'kcmc', }, { title: '开课任务编号', align: 'center', dataIndex: 'rwbh', }, { title: '上课时间', align: 'center', dataIndex: 'sksj', }, { title: '上课地点', align: 'center', dataIndex: 'skdd', }, { title: '授课教师', align: 'center', dataIndex: 'skjs', }, { title: '选课学生', align: 'center', dataIndex: 'xkrs', }, { title: '测验数量', align: "center", dataIndex: 'num', }, // { // title: '课程简介', // align: 'center', // dataIndex: 'kcjs', // }, // { // title: '教学日历', // align: "center", // dataIndex: 'jxrlFilePath', // slots: { customRender: 'fileSlot2' }, // width: '300' // }, { title: '发布作业次数', align: 'center', dataIndex: 'fbzycs', }, { title: '作业完成次数', align: 'center', dataIndex: 'zywccs', }, { title: '超时未完成次数', align: 'center', dataIndex: 'cswwccs', }, ]; //查询数据 export const searchFormSchema: FormSchema[] = [ ]; //表单数据 export const formSchema: FormSchema[] = [ { label: '附件', field: 'filePath', component: 'JUpload', componentProps:{ }, }, // TODO 主键隐藏字段,目前写死为ID { label: '', field: 'id', component: 'Input', show: false, }, ];