Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cs_vsofpm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
cs_vsofpm
Commits
6ad85686
Commit
6ad85686
authored
Jun 12, 2023
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
6c08e862
Pipeline
#3756
passed with stages
in 3 minutes and 11 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
11 deletions
+44
-11
index.jsx
src/pages/checkhomework/index.jsx
+31
-9
index.jsx
src/pages/myrecord/index.jsx
+13
-2
No files found.
src/pages/checkhomework/index.jsx
View file @
6ad85686
...
...
@@ -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
,
});
}
},
}
}
...
...
src/pages/myrecord/index.jsx
View file @
6ad85686
...
...
@@ -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"
},
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment