-
编辑作业
+
编辑作业
+
撤回作业
批阅作业
@@ -577,7 +625,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
pageSize: 10,
},
actionColumn: {
- width: '300px',
+ width: '170px',
fixed: 'right',
},
showTableSetting: true,
@@ -623,6 +671,26 @@ function handleViewInfo(record) {
});
handleShowType(4);
}
+//教师修改作业分数
+function handleChangeScore(record) {
+ console.log('👯', record);
+ var score = record.score;
+ console.log('👝', score);
+ console.log('👝', isNaN(score));
+ if (isNaN(score)) {
+ createMessage.error('请输入正确的评分1');
+ return;
+ } else if (parseInt(score) > 100 || parseInt(score) < 0) {
+ createMessage.error('请输入正确的评分2');
+ return;
+ }
+
+ defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/editFabu', params: { id: record.id, score: record.score } }).then((res) => {
+ console.log('😮', res);
+ handleSuccess();
+ });
+}
+
//学生互评详细
function handleXshpfs(record) {
defHttp.get({ url: '/zyInfoStudentHp/zyInfoStudentHp/list', params: { zyStuId: record.id, pageSize: -1 } }).then((res) => {
@@ -776,14 +844,14 @@ function getTableAction(record) {
label: '驳回',
onClick: handleBohui.bind(null, record),
},
- {
- label: record.score ? '修改评分' : '评分',
- onClick: handleScore.bind(null, record),
- },
- {
- label: '发布评分',
- onClick: handleScoreFabu.bind(null, record),
- },
+ // {
+ // label: record.score ? '修改评分' : '评分',
+ // onClick: handleScore.bind(null, record),
+ // },
+ // {
+ // label: '发布评分',
+ // onClick: handleScoreFabu.bind(null, record),
+ // },
{
label: '下载',
onClick: handleDown.bind(null, record.filePath),
@@ -892,8 +960,12 @@ function handleBatchAdd() {
return;
}
for (var i = 0; i < list.length; i++) {
+ console.log('🥵', list);
var score = list[i].score;
- if (score == null || score == '') {
+ console.log('👨❤️💋👨', !score);
+ console.log('🤖', score == null);
+ console.log('🤖', score+"" == '');
+ if (score == null || score+"" == '') {
createMessage.error('第' + (i + 1) + '次作业占期末总成绩的百分比不能为空!');
sfjx = 1;
break;
@@ -1035,7 +1107,7 @@ async function submitForm() {
console.log('🚶♂️', model);
if (wwtgl) {
if ((wwcc == false && xncc == false && nwcc == false && aigccc == false) || (!wwcc && !xncc && !nwcc && !aigccc)) {
- createMessage.warning('您设置了检测通过率,但您没设置查重方式,请先设置查重方式');
+ createMessage.warning('您设置了检测通过率,但您没有设置查重比对库,请先设置查重比对库!');
confirmLoading.value = false;
return;
}
@@ -1043,7 +1115,7 @@ async function submitForm() {
} else {
console.log('22222222222', wwtgl, wwcc, xncc, aigccc);
if (wwcc == true || xncc == true || nwcc == true || aigccc == true || wwcc == 'true' || xncc == 'true' || nwcc == 'true' || aigccc == 'true') {
- createMessage.warning('您设置了查重方式,但您没设置检测通过率,请先设置检测通过率');
+ createMessage.warning('您设置了查重比对库,但您没设置检测通过率,请先设置检测通过率');
confirmLoading.value = false;
return;
}
@@ -1055,7 +1127,7 @@ async function submitForm() {
var xshpkssjTimestamp = Date.parse(xshpkssj);
var xshpjssjTimestamp = Date.parse(xshpjssj);
if (xshpkssjTimestamp > xshpjssjTimestamp) {
- createMessage.warning('互评开始时间不能大于互评结束时间!');
+ createMessage.warning('作业截止时间不能大于互评结束时间!');
confirmLoading.value = false;
return;
}
@@ -1236,11 +1308,31 @@ function handleAdd() {
registerModal.value.add();
}
+function handleChehui(record) {
+ createConfirm({
+ iconType: 'warning',
+ title: '撤回作业',
+ content: '您确认撤回此次作业吗?',
+ okText: '确认',
+ cancelText: '取消',
+ onOk: () => {
+ defHttp
+ .post({
+ url: '/zyInfo/zyInfo/editChehui',
+ params: { id: record.id },
+ })
+ .then((res) => {
+ createMessage.success(res.message);
+ handleSuccess2();
+ });
+ },
+ });
+}
+
/**
* 编辑事件
*/
function handleEdit(record, type) {
- console.log('👩🎓1111111', record);
if (!record.sturead) {
record.sturead = '1';
}
@@ -1253,15 +1345,12 @@ function handleEdit(record, type) {
if (!record.xssfck) {
record.xssfck = '1';
}
- console.log('💂♀️2222222', record);
editDisabled.value = type;
zyInfo.value = record;
- console.log('😔3333333', zyInfo.value);
dataKhnr.value = [];
var kcnr = zyInfo.value.kcnr;
if (kcnr) {
defHttp.get({ url: '/teachingunitcontent/kcTeachingUnitContentOne/getAllList', params: { id: kcnr } }).then((res) => {
- console.log('🤦♀️', res);
dataKhnr.value = res;
});
}
@@ -1447,6 +1536,9 @@ onMounted(() => {
margin-left: 20px;
font-size: 18px;
}
+.title2 {
+ font-size: 18px;
+}
.ant-divider-horizontal {
display: flex;
clear: both;
diff --git a/src/views/zy/zyInfoStudent/ZyInfoStudent.data.ts b/src/views/zy/zyInfoStudent/ZyInfoStudent.data.ts
index 0fc7bbf..225a289 100644
--- a/src/views/zy/zyInfoStudent/ZyInfoStudent.data.ts
+++ b/src/views/zy/zyInfoStudent/ZyInfoStudent.data.ts
@@ -73,18 +73,22 @@ export const newcolumns: BasicColumn[] = [
align: "center",
dataIndex: 'studentName',
sorter: true,
+ width: 100,
},
{
title: '学生学号',
align: "center",
dataIndex: 'createBy',
sorter: true,
+ width: 100,
},
{
title: '教师评分',
align: "center",
dataIndex: 'score',
+ slots: { customRender: 'scoreaction' },
sorter: true,
+ width: 100,
},
{
title: '互评分数',
@@ -92,11 +96,13 @@ export const newcolumns: BasicColumn[] = [
dataIndex: 'xshpfs',
sorter: true,
slots: { customRender: 'xshpfsaction' },
+ width: 100,
},
{
title: '互评奖励',
align: "center",
dataIndex: 'jxzf',
+ width: 100,
},
// {
// title: '绩效分2',
@@ -109,6 +115,7 @@ export const newcolumns: BasicColumn[] = [
align: "center",
dataIndex: 'zzdf',
sorter: true,
+ width: 100,
},
{
@@ -117,6 +124,7 @@ export const newcolumns: BasicColumn[] = [
dataIndex: 'zgccl',
// sorter: true,
slots: { customRender: 'zgcclaction' },
+ width: 100,
},
@@ -182,7 +190,8 @@ export const columnsStu: BasicColumn[] = [
{
title: '评分',
align: "center",
- dataIndex: 'stuscore',
+ dataIndex: 'zzdf',
+ slots: { customRender: 'zzdfaction' },
// sorter: true,
},
// {
@@ -192,33 +201,40 @@ export const columnsStu: BasicColumn[] = [
// // sorter: true,
// },
{
- title: '网络查重',
+ 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' },
+ dataIndex: 'zgccl',
+ slots: { customRender: 'zgcclgaction' },
// 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,
+ // },
];
//列表数据
diff --git a/src/views/zy/zyInfoStudent/components/ZyInfoStudentForm.vue b/src/views/zy/zyInfoStudent/components/ZyInfoStudentForm.vue
index 8dcc846..ca161a1 100644
--- a/src/views/zy/zyInfoStudent/components/ZyInfoStudentForm.vue
+++ b/src/views/zy/zyInfoStudent/components/ZyInfoStudentForm.vue
@@ -25,7 +25,7 @@
{{zyInfo.startTime}}
-
+
@@ -38,10 +38,10 @@
-
+
-
+