425 lines
7.8 KiB
TypeScript
425 lines
7.8 KiB
TypeScript
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: 'studentName',
|
||
sorter: true,
|
||
},
|
||
{
|
||
title: '学生学号',
|
||
align: "center",
|
||
dataIndex: 'createBy',
|
||
sorter: true,
|
||
},
|
||
{
|
||
title: '提交时间',
|
||
align: "center",
|
||
dataIndex: 'publishTime',
|
||
sorter: true,
|
||
},
|
||
{
|
||
title: '评分',
|
||
align: "center",
|
||
dataIndex: 'score',
|
||
sorter: true,
|
||
},
|
||
{
|
||
title: '网络查重',
|
||
align: "center",
|
||
dataIndex: 'wwsftg',
|
||
slots: { customRender: 'wwsftgaction' },
|
||
sorter: true,
|
||
},
|
||
{
|
||
title: '作业查重',
|
||
align: "center",
|
||
dataIndex: 'nwsftg',
|
||
slots: { customRender: 'nwsftgaction' },
|
||
sorter: true,
|
||
},
|
||
{
|
||
title: 'Aigc查重',
|
||
align: "center",
|
||
dataIndex: 'aigcsftg',
|
||
slots: { customRender: 'aigcsftgaction' },
|
||
sorter: true,
|
||
},
|
||
{
|
||
title: '校内查重',
|
||
align: "center",
|
||
dataIndex: 'xnsftg',
|
||
slots: { customRender: 'xnsftgaction' },
|
||
sorter: true,
|
||
},
|
||
|
||
{
|
||
title: '存档类型',
|
||
align: "center",
|
||
dataIndex: 'cdlx_dictText',
|
||
sorter: true,
|
||
},
|
||
];
|
||
|
||
|
||
//列表数据
|
||
export const newcolumns: BasicColumn[] = [
|
||
{
|
||
title: '学生姓名',
|
||
align: "center",
|
||
dataIndex: 'studentName',
|
||
sorter: true,
|
||
},
|
||
{
|
||
title: '学生学号',
|
||
align: "center",
|
||
dataIndex: 'createBy',
|
||
sorter: true,
|
||
},
|
||
{
|
||
title: '教师评分',
|
||
align: "center",
|
||
dataIndex: 'score',
|
||
sorter: true,
|
||
},
|
||
{
|
||
title: '互评分数',
|
||
align: "center",
|
||
dataIndex: 'xshpfs',
|
||
sorter: true,
|
||
slots: { customRender: 'xshpfsaction' },
|
||
},
|
||
{
|
||
title: '互评奖励',
|
||
align: "center",
|
||
dataIndex: 'jxzf',
|
||
},
|
||
// {
|
||
// title: '绩效分2',
|
||
// align: "center",
|
||
// dataIndex: 'jxfs2',
|
||
// sorter: true,
|
||
// },
|
||
{
|
||
title: '最终得分',
|
||
align: "center",
|
||
dataIndex: 'zzdf',
|
||
sorter: true,
|
||
},
|
||
|
||
{
|
||
title: '最高查重率',
|
||
align: "center",
|
||
dataIndex: 'zgccl',
|
||
// sorter: true,
|
||
slots: { customRender: 'zgcclaction' },
|
||
},
|
||
|
||
|
||
|
||
|
||
// {
|
||
// title: '网络查重',
|
||
// align: "center",
|
||
// dataIndex: 'wwsftg',
|
||
// slots: { customRender: 'wwsftgaction' },
|
||
// sorter: true,
|
||
// },
|
||
// {
|
||
// title: '作业查重',
|
||
// align: "center",
|
||
// dataIndex: 'nwsftg',
|
||
// slots: { customRender: 'nwsftgaction' },
|
||
// sorter: true,
|
||
// },
|
||
// {
|
||
// title: 'Aigc查重',
|
||
// align: "center",
|
||
// dataIndex: 'aigcsftg',
|
||
// slots: { customRender: 'aigcsftgaction' },
|
||
// sorter: true,
|
||
// },
|
||
// {
|
||
// title: '校内查重',
|
||
// align: "center",
|
||
// dataIndex: 'xnsftg',
|
||
// slots: { customRender: 'xnsftgaction' },
|
||
// sorter: true,
|
||
// },
|
||
|
||
// {
|
||
// title: '标记作业',
|
||
// align: "center",
|
||
// dataIndex: 'cdlx_dictText',
|
||
// sorter: true,
|
||
// },
|
||
];
|
||
|
||
//列表数据
|
||
export const columnsStu: BasicColumn[] = [
|
||
{
|
||
title: '作业名称',
|
||
align: "center",
|
||
dataIndex: 'title',
|
||
// sorter: true,
|
||
},
|
||
{
|
||
title: '开始时间',
|
||
align: "center",
|
||
dataIndex: 'startTime',
|
||
// sorter: true,
|
||
},
|
||
{
|
||
title: '结束时间',
|
||
align: "center",
|
||
dataIndex: 'endTime',
|
||
// sorter: true,
|
||
},
|
||
{
|
||
title: '评分',
|
||
align: "center",
|
||
dataIndex: 'stuscore',
|
||
// sorter: true,
|
||
},
|
||
// {
|
||
// title: '存档类型',
|
||
// align: "center",
|
||
// dataIndex: 'cdlx_dictText',
|
||
// // sorter: true,
|
||
// },
|
||
{
|
||
title: '网络查重',
|
||
align: "center",
|
||
dataIndex: 'wwsftg',
|
||
slots: { customRender: 'wwsftgaction' },
|
||
// sorter: true,
|
||
},
|
||
{
|
||
title: '作业查重',
|
||
align: "center",
|
||
dataIndex: 'nwsftg',
|
||
slots: { customRender: 'nwsftgaction' },
|
||
// sorter: true,
|
||
},
|
||
{
|
||
title: 'Aigc查重',
|
||
align: "center",
|
||
dataIndex: 'aigcsftg',
|
||
slots: { customRender: 'aigcsftgaction' },
|
||
// sorter: true,
|
||
},
|
||
{
|
||
title: '校内查重',
|
||
align: "center",
|
||
dataIndex: 'xnsftg',
|
||
slots: { customRender: 'xnsftgaction' },
|
||
// sorter: true,
|
||
},
|
||
];
|
||
|
||
//列表数据
|
||
export const columnsKccyStu: BasicColumn[] = [
|
||
{
|
||
title: '测验名称',
|
||
align: "center",
|
||
dataIndex: 'title',
|
||
// sorter: true,
|
||
},
|
||
{
|
||
title: '开始时间',
|
||
align: "center",
|
||
dataIndex: 'startTime',
|
||
// sorter: true,
|
||
},
|
||
{
|
||
title: '结束时间',
|
||
align: "center",
|
||
dataIndex: 'endTime',
|
||
// sorter: true,
|
||
},
|
||
];
|
||
|
||
|
||
export const htcxcolumns: BasicColumn[] = [
|
||
{
|
||
title: '作业名称',
|
||
align: "center",
|
||
dataIndex: 'title',
|
||
},
|
||
{
|
||
title: '学生姓名',
|
||
align: "center",
|
||
dataIndex: 'stuName',
|
||
width: '100px'
|
||
},
|
||
{
|
||
title: '学生学号',
|
||
align: "center",
|
||
dataIndex: 'stuNo',
|
||
width: '100px'
|
||
},
|
||
{
|
||
title: '授课教师',
|
||
align: "center",
|
||
dataIndex: 'teaName',
|
||
width: '100px'
|
||
},
|
||
{
|
||
title: '提交时间',
|
||
align: "center",
|
||
dataIndex: 'createTime',
|
||
width: '100px'
|
||
},
|
||
{
|
||
title: '检测类型',
|
||
align: "center",
|
||
dataIndex: 'ccType',
|
||
width: '100px',
|
||
customRender:({text}) =>{
|
||
if(text=='1'){
|
||
text = '作业查重'
|
||
}else if(text=='3'){
|
||
text = '全校检测'
|
||
}else if(text=='2'){
|
||
text = 'Aigc查重'
|
||
}else{
|
||
text = '网络查重'
|
||
}
|
||
return text;
|
||
},
|
||
},
|
||
{
|
||
title: '检测状态',
|
||
align: "center",
|
||
dataIndex: 'filestateid',
|
||
width: '100px',
|
||
customRender:({text}) =>{
|
||
if(text=='1'){
|
||
text = '检测中'
|
||
}else if(text=='3'){
|
||
text = '检测失败'
|
||
}else if(text=='2'){
|
||
text = '检测完成'
|
||
}else{
|
||
text = '未检测'
|
||
}
|
||
return text;
|
||
},
|
||
},
|
||
{
|
||
title: '文档ID',
|
||
align: "center",
|
||
dataIndex: 'paperid',
|
||
width: '100px',
|
||
},
|
||
{
|
||
title: '检测结果',
|
||
align: "center",
|
||
dataIndex: 'message',
|
||
},
|
||
];
|
||
|
||
|
||
|
||
//列表数据
|
||
export const cdxxcolumns: BasicColumn[] = [
|
||
{
|
||
title: '作业名称',
|
||
align: "center",
|
||
dataIndex: 'zyname'
|
||
},
|
||
{
|
||
title: '学生姓名',
|
||
align: "center",
|
||
dataIndex: 'studentName'
|
||
},
|
||
{
|
||
title: '学生学号',
|
||
align: "center",
|
||
dataIndex: 'createBy',
|
||
width: '100px'
|
||
},
|
||
{
|
||
title: '提交时间',
|
||
align: "center",
|
||
dataIndex: 'createTime',
|
||
width: '100px'
|
||
},
|
||
{
|
||
title: '评分',
|
||
align: "center",
|
||
dataIndex: 'score',
|
||
width: '80px'
|
||
},
|
||
{
|
||
title: '网络查重',
|
||
align: "center",
|
||
dataIndex: 'wwsftg',
|
||
slots: { customRender: 'wwsftgaction' },
|
||
width: '100px'
|
||
},
|
||
{
|
||
title: '作业查重',
|
||
align: "center",
|
||
dataIndex: 'nwsftg',
|
||
slots: { customRender: 'nwsftgaction' },
|
||
width: '100px'
|
||
},
|
||
{
|
||
title: 'Aigc查重',
|
||
align: "center",
|
||
dataIndex: 'aigcsftg',
|
||
slots: { customRender: 'aigcsftgaction' },
|
||
width: '100px'
|
||
},
|
||
{
|
||
title: '校内查重',
|
||
align: "center",
|
||
dataIndex: 'xnsftg',
|
||
slots: { customRender: 'xnsftgaction' },
|
||
width: '100px'
|
||
},
|
||
// {
|
||
// title: '存档类型',
|
||
// align: "center",
|
||
// dataIndex: 'cdlx_dictText',
|
||
// width: '100px'
|
||
// },
|
||
];
|
||
//查询数据
|
||
export const searchFormSchema: FormSchema[] = [
|
||
{
|
||
label: "作业名称",
|
||
field: 'mainId',
|
||
component: 'Input',
|
||
colProps: {span: 6},
|
||
},
|
||
];
|
||
|
||
//表单数据
|
||
export const formSchema: FormSchema[] = [
|
||
{
|
||
label: '作业附件',
|
||
field: 'filePath',
|
||
component: 'JUpload',
|
||
componentProps:{
|
||
},
|
||
dynamicRules: ({model,schema}) => {
|
||
return [
|
||
{ required: true, message: '请上传作业附件!'},
|
||
];
|
||
},
|
||
},
|
||
// TODO 主键隐藏字段,目前写死为ID
|
||
{
|
||
label: '',
|
||
field: 'id',
|
||
component: 'Input',
|
||
show: false,
|
||
},
|
||
];
|