评分:{{item.score?item.score:'未评'}}分
网络查重:{{item.wwxsl?item.wwxsl+'%':'-'}}
@@ -86,6 +86,7 @@
import { downloadFile } from '/@/utils/common/renderUtils';
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
import { useGlobSetting } from '/@/hooks/setting';
+ import dayjs from 'dayjs';
import JInput from '/@/components/Form/src/jeecg/components/JInput.vue';
import ZyInfoModal from './components/ZyInfoModal.vue';
import ZyInfoStudentListModal from '/@/views/zy/zyInfoStudent/ZyInfoStudentListModal.vue';
diff --git a/src/views/zy/zyInfoStudent/ZyInfoStudent.data.ts b/src/views/zy/zyInfoStudent/ZyInfoStudent.data.ts
index 3fff072..04d936d 100644
--- a/src/views/zy/zyInfoStudent/ZyInfoStudent.data.ts
+++ b/src/views/zy/zyInfoStudent/ZyInfoStudent.data.ts
@@ -27,23 +27,6 @@ export const columns: BasicColumn[] = [
dataIndex: 'score',
width: '80px'
},
- // {
- // title: '作业附件',
- // align: "center",
- // dataIndex: 'filePath',
- // slots: { customRender: 'fileSlot' },
- // },
- // {
- // title: '在线预览',
- // align: "center",
- // dataIndex: 'filePath',
- // slots: { customRender: 'fileZxSlot' },
- // },
- // {
- // title: '外网相似率',
- // align: "center",
- // dataIndex: 'wwxsl'
- // },
{
title: '外网检测',
align: "center",
@@ -51,11 +34,6 @@ export const columns: BasicColumn[] = [
slots: { customRender: 'wwsftgaction' },
width: '100px'
},
- // {
- // title: '内网相似率',
- // align: "center",
- // dataIndex: 'nwxsl'
- // },
{
title: '内网检测',
align: "center",
@@ -63,11 +41,6 @@ export const columns: BasicColumn[] = [
slots: { customRender: 'nwsftgaction' },
width: '100px'
},
- // {
- // title: 'aigc相似率',
- // align: "center",
- // dataIndex: 'aigcxsl'
- // },
{
title: 'aigc检测',
align: "center",
@@ -163,7 +136,7 @@ export const formSchema: FormSchema[] = [
},
dynamicRules: ({model,schema}) => {
return [
- { required: true, message: '请输入作业附件!'},
+ { required: true, message: '请上传作业附件!'},
];
},
},
diff --git a/src/views/zy/zyInfoStudent/ZyInfoStudentList.vue b/src/views/zy/zyInfoStudent/ZyInfoStudentList.vue
index f18ffdb..fd28e86 100644
--- a/src/views/zy/zyInfoStudent/ZyInfoStudentList.vue
+++ b/src/views/zy/zyInfoStudent/ZyInfoStudentList.vue
@@ -1,12 +1,17 @@
-
+
-
+
检测时间提醒: 非高峰期预计30分钟内返回检测结果,高峰期预计时间会更长,请您耐心等待!
@@ -102,6 +108,7 @@
import { useGlobSetting } from '/@/hooks/setting';
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from '/@/hooks/web/useMessage';
+ import { JInput } from '/@/components/Form';
const { createMessage } = useMessage();
@@ -132,8 +139,11 @@
},
},
exportConfig: {
- name: "学生提交作业",
+ name: "学生作业信息",
url: getExportUrl,
+ params: () => {
+ return Object.assign({},queryParam.value);
+ }
},
importConfig: {
url: getImportUrl,
@@ -232,8 +242,8 @@
reload();
}
- function handleDown(record){
- downloadFile(record.filePath);
+ function handleDown(text){
+ downloadFile(text);
}
/**
@@ -243,22 +253,10 @@
if(record.filePath){
if(record.scoreFabu=='1'){
var list = [
- // {
- // label: '详情',
- // onClick: handleDetail.bind(null, record),
- // },
{
label: '设置样本',
onClick: handleSzyb.bind(null, record),
},
- {
- label: '下载',
- onClick: handleDown.bind(null, record),
- },
- {
- label: '预览',
- onClick: yulanFile.bind(null, record),
- }
];
return list;
}else{
@@ -275,62 +273,76 @@
label: '发布评分',
onClick: handleScoreFabu.bind(null, record),
},
- // {
- // label: '详情',
- // onClick: handleDetail.bind(null, record),
- // },
- {
- label: '下载',
- onClick: handleDown.bind(null, record),
- },
- {
- label: '预览',
- onClick: yulanFile.bind(null, record),
- }];
+ ];
return list;
}
}else{
- // var list = [
- // {
- // label: '详情',
- // onClick: handleDetail.bind(null, record),
- // },];
+ var list = [ ];
return list;
}
}
-
+function handleYulan(text){
+ window.open(text,"_blank")
+}
/**
* 下拉操作栏
*/
function getDropDownAction(record) {
- return [
- {
+ var list = [];
+ if(record.filePath){
+ list.push({
+ label: '作业下载',
+ onClick: handleDown.bind(null, record.filePath),
+ });
+ list.push({
+ label: '作业预览',
+ onClick: yulanFile.bind(null, record),
+ });
+ }
+ if(record.wwpaperdownurl){
+ list.push({
label: '外网结果下载',
- onClick: handleDetail.bind(null, record),
- },
- {
+ onClick: handleDown.bind(null, record.wwpaperdownurl),
+ });
+ list.push({
label: '外网结果预览',
- onClick: handleDetail.bind(null, record),
- },
- {
- label: '内网结果下载',
- onClick: handleDetail.bind(null, record),
- },
- {
- label: '内网结果预览',
- onClick: handleDetail.bind(null, record),
- },
- {
+ onClick: handleYulan.bind(null, record.wwpaperviewurl),
+ });
+ }
+ if(record.zypaperdownurl){
+ list.push({
+ label: '作业结果下载',
+ onClick: handleDown.bind(null, record.zypaperdownurl),
+ });
+ list.push({
+ label: '作业结果预览',
+ onClick: handleYulan.bind(null, record.zypaperviewurl),
+ });
+ }
+ if(record.aigcpaperdownurl){
+ list.push({
label: 'aigc结果下载',
- onClick: handleDetail.bind(null, record),
- },
- {
+ onClick: handleDown.bind(null, record.aigcpaperdownurl),
+ });
+ list.push({
label: 'aigc结果预览',
- onClick: handleDetail.bind(null, record),
- },
- ]
+ onClick: handleYulan.bind(null, record.aigcpaperviewurl),
+ });
+ }
+ if(record.xxpaperdownurl){
+ list.push({
+ label: '学校结果下载',
+ onClick: handleDown.bind(null, record.xxpaperdownurl),
+ });
+ list.push({
+ label: '学校结果预览',
+ onClick: handleYulan.bind(null, record.xxpaperviewurl),
+ });
+ }
+
+ return list;
}
/**
@@ -352,6 +364,7 @@
}
function init(record){
+ queryParam.value = {};
queryParam.value.mainId = record.id;
mainId.value = record.id;
reload();
diff --git a/src/views/zy/zyInfoStudent/components/ZyInfoStudentForm.vue b/src/views/zy/zyInfoStudent/components/ZyInfoStudentForm.vue
index 6a50a28..aafde3a 100644
--- a/src/views/zy/zyInfoStudent/components/ZyInfoStudentForm.vue
+++ b/src/views/zy/zyInfoStudent/components/ZyInfoStudentForm.vue
@@ -59,7 +59,7 @@
const confirmLoading = ref(false);
//表单验证
const validatorRules = {
- filePath: [{ required: true, message: '请输入作业附件!'},],
+ filePath: [{ required: true, message: '请上传作业附件!'},],
};
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: true });