Commit 6ad85686 authored by wuhao's avatar wuhao 🎯

asder

parent 6c08e862
Pipeline #3756 passed with stages
in 3 minutes and 11 seconds
......@@ -255,6 +255,15 @@ function Checkhomework() {
colProps: { span: 24 },
valueType: "digit",
},
{
title: "评语",
dataIndex: "comment",
key: "comment",
valueType: "textarea",
colProps: {
span: 24,
},
},
]}
defaultFormValue={{ examineResult: "1" }}
onFinish={(val, extra) => {
......@@ -319,6 +328,13 @@ function Checkhomework() {
title: "分数",
dataIndex: "score",
key: "score",
span:2
},
{
title: "评语",
dataIndex: "comment",
key: "comment",
span: 3
},
],
]}
......@@ -364,20 +380,26 @@ function Checkhomework() {
variant: "contained",
onClick: async (e) => {
e.stopPropagation();
if(active === "1"){
let formval = formRef?.current.getFieldsValue()
if (active === "1") {
let formval = formRef?.current.getFieldsValue();
const params = {
...formval,
type:active
}
await doFetch({url:"/studentExperiment/exportByLoginTeacher",params});
}else{
type: active,
};
await doFetch({
url: "/studentExperiment/exportByLoginTeacher",
params,
});
} else {
let formval = formRefs?.current.getFieldsValue();
const params = {
...formval,
type:active
}
await doFetch({url:"/studentExperiment/exportByLoginTeacher",params});
type: active,
};
await doFetch({
url: "/studentExperiment/exportByLoginTeacher",
params,
});
}
},
}}
......
......@@ -23,6 +23,19 @@ function Record() {
}));
};
const detailcolumns = [
{
title: "分数",
dataIndex: "score",
key: "score",
hideInSearch: true,
span: 2,
},
{
title: "评语",
dataIndex: "comment",
key: "comment",
span: 2,
},
{ title: "学生姓名", dataIndex: "studentName", key: "studentName" },
{ title: "学生账号", dataIndex: "studentAccount", key: "studentAccount" },
{ title: "课程名称", dataIndex: "courseName", key: "courseName" },
......@@ -33,8 +46,6 @@ function Record() {
dataIndex: "testTime",
key: "testTime",
},
{ title: "分数", dataIndex: "score", key: "score", hideInSearch: true },
{ title: "权重", dataIndex: "weight", key: "weight", hideInSearch: true },
{ title: "分数", dataIndex: "scoreWeight", key: "scoreWeight" },
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment