2024-05-06 19:41:47 +08:00
|
|
|
|
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[] = [
|
|
|
|
|
{
|
2024-05-07 17:14:14 +08:00
|
|
|
|
title: '学生姓名',
|
2024-05-06 19:41:47 +08:00
|
|
|
|
align: "center",
|
2024-07-06 15:29:03 +08:00
|
|
|
|
dataIndex: 'studentName',
|
|
|
|
|
sorter: true,
|
2024-05-06 19:41:47 +08:00
|
|
|
|
},
|
2024-05-08 16:04:27 +08:00
|
|
|
|
{
|
|
|
|
|
title: '学生学号',
|
|
|
|
|
align: "center",
|
2024-05-24 15:31:26 +08:00
|
|
|
|
dataIndex: 'createBy',
|
2024-07-06 15:29:03 +08:00
|
|
|
|
sorter: true,
|
2024-05-08 16:04:27 +08:00
|
|
|
|
},
|
2024-05-10 20:01:34 +08:00
|
|
|
|
{
|
|
|
|
|
title: '提交时间',
|
|
|
|
|
align: "center",
|
2024-07-05 10:37:21 +08:00
|
|
|
|
dataIndex: 'publishTime',
|
2024-07-06 15:29:03 +08:00
|
|
|
|
sorter: true,
|
2024-05-10 20:01:34 +08:00
|
|
|
|
},
|
2024-05-13 20:13:07 +08:00
|
|
|
|
{
|
|
|
|
|
title: '评分',
|
|
|
|
|
align: "center",
|
2024-05-22 13:43:18 +08:00
|
|
|
|
dataIndex: 'score',
|
2024-07-06 15:29:03 +08:00
|
|
|
|
sorter: true,
|
2024-05-13 20:13:07 +08:00
|
|
|
|
},
|
2024-05-06 19:41:47 +08:00
|
|
|
|
{
|
2024-06-04 08:47:27 +08:00
|
|
|
|
title: '网络查重',
|
2024-05-06 19:41:47 +08:00
|
|
|
|
align: "center",
|
2024-05-21 17:53:16 +08:00
|
|
|
|
dataIndex: 'wwsftg',
|
|
|
|
|
slots: { customRender: 'wwsftgaction' },
|
2024-07-06 15:29:03 +08:00
|
|
|
|
sorter: true,
|
2024-05-06 19:41:47 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2024-06-04 08:47:27 +08:00
|
|
|
|
title: '作业查重',
|
2024-05-06 19:41:47 +08:00
|
|
|
|
align: "center",
|
2024-05-21 17:53:16 +08:00
|
|
|
|
dataIndex: 'nwsftg',
|
|
|
|
|
slots: { customRender: 'nwsftgaction' },
|
2024-07-06 15:29:03 +08:00
|
|
|
|
sorter: true,
|
2024-05-06 19:41:47 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2024-06-04 08:47:27 +08:00
|
|
|
|
title: 'Aigc查重',
|
2024-05-06 19:41:47 +08:00
|
|
|
|
align: "center",
|
2024-05-21 17:53:16 +08:00
|
|
|
|
dataIndex: 'aigcsftg',
|
|
|
|
|
slots: { customRender: 'aigcsftgaction' },
|
2024-07-06 15:29:03 +08:00
|
|
|
|
sorter: true,
|
2024-05-24 15:31:26 +08:00
|
|
|
|
},
|
2024-05-29 17:39:31 +08:00
|
|
|
|
{
|
2024-06-04 08:47:27 +08:00
|
|
|
|
title: '校内查重',
|
2024-05-29 17:39:31 +08:00
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'xnsftg',
|
|
|
|
|
slots: { customRender: 'xnsftgaction' },
|
2024-07-06 15:29:03 +08:00
|
|
|
|
sorter: true,
|
2024-05-29 17:39:31 +08:00
|
|
|
|
},
|
|
|
|
|
|
2024-05-24 15:31:26 +08:00
|
|
|
|
{
|
|
|
|
|
title: '存档类型',
|
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'cdlx_dictText',
|
2024-07-06 15:29:03 +08:00
|
|
|
|
sorter: true,
|
2024-05-06 19:41:47 +08:00
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
2024-05-24 15:31:26 +08:00
|
|
|
|
|
2024-07-23 15:24:38 +08:00
|
|
|
|
//列表数据
|
|
|
|
|
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,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
2024-05-29 10:59:42 +08:00
|
|
|
|
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'){
|
2024-06-04 08:47:27 +08:00
|
|
|
|
text = '作业查重'
|
2024-05-29 10:59:42 +08:00
|
|
|
|
}else if(text=='3'){
|
|
|
|
|
text = '全校检测'
|
|
|
|
|
}else if(text=='2'){
|
2024-06-04 08:47:27 +08:00
|
|
|
|
text = 'Aigc查重'
|
2024-05-29 10:59:42 +08:00
|
|
|
|
}else{
|
2024-06-04 08:47:27 +08:00
|
|
|
|
text = '网络查重'
|
2024-05-29 10:59:42 +08:00
|
|
|
|
}
|
|
|
|
|
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',
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
2024-05-24 15:31:26 +08:00
|
|
|
|
|
|
|
|
|
//列表数据
|
|
|
|
|
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'
|
|
|
|
|
},
|
|
|
|
|
{
|
2024-06-04 08:47:27 +08:00
|
|
|
|
title: '网络查重',
|
2024-05-24 15:31:26 +08:00
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'wwsftg',
|
|
|
|
|
slots: { customRender: 'wwsftgaction' },
|
|
|
|
|
width: '100px'
|
|
|
|
|
},
|
|
|
|
|
{
|
2024-06-04 08:47:27 +08:00
|
|
|
|
title: '作业查重',
|
2024-05-24 15:31:26 +08:00
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'nwsftg',
|
|
|
|
|
slots: { customRender: 'nwsftgaction' },
|
|
|
|
|
width: '100px'
|
|
|
|
|
},
|
|
|
|
|
{
|
2024-06-04 08:47:27 +08:00
|
|
|
|
title: 'Aigc查重',
|
2024-05-24 15:31:26 +08:00
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'aigcsftg',
|
|
|
|
|
slots: { customRender: 'aigcsftgaction' },
|
|
|
|
|
width: '100px'
|
|
|
|
|
},
|
2024-06-04 08:47:27 +08:00
|
|
|
|
{
|
|
|
|
|
title: '校内查重',
|
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'xnsftg',
|
|
|
|
|
slots: { customRender: 'xnsftgaction' },
|
|
|
|
|
width: '100px'
|
|
|
|
|
},
|
2024-05-24 15:31:26 +08:00
|
|
|
|
{
|
|
|
|
|
title: '存档类型',
|
|
|
|
|
align: "center",
|
|
|
|
|
dataIndex: 'cdlx_dictText',
|
|
|
|
|
width: '100px'
|
|
|
|
|
},
|
|
|
|
|
];
|
2024-05-06 19:41:47 +08:00
|
|
|
|
//查询数据
|
|
|
|
|
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 [
|
2024-05-28 15:06:07 +08:00
|
|
|
|
{ required: true, message: '请上传作业附件!'},
|
2024-05-06 19:41:47 +08:00
|
|
|
|
];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
// TODO 主键隐藏字段,目前写死为ID
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'id',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
];
|