diff --git a/app-dm/src/TeacherPages/MarkingPages/Marking.jsx b/app-dm/src/TeacherPages/MarkingPages/Marking.jsx index a96da06..a62ca65 100644 --- a/app-dm/src/TeacherPages/MarkingPages/Marking.jsx +++ b/app-dm/src/TeacherPages/MarkingPages/Marking.jsx @@ -26,7 +26,7 @@ function Marking(){ {class:'课程2:web前端开发与数据库的结合',time:"关闭时间:2024-4-16 11.46",ImgSrc:Test}, {class:'课程2:web前端开发与数据库的结合',time:"关闭时间:2024-4-16 11.46",ImgSrc:Test}, ].map((item) => - +
diff --git a/app-dm/src/TeacherPages/MarkingPages/StudentLink.css b/app-dm/src/TeacherPages/MarkingPages/StudentLink.css new file mode 100644 index 0000000..d7b2527 --- /dev/null +++ b/app-dm/src/TeacherPages/MarkingPages/StudentLink.css @@ -0,0 +1,10 @@ +.body-right-studentlink{ + width: 1420px; + height: 830px; + position: absolute; + top: 72px; + left: 220px; + border-radius: 10px; + float: right; + background-color: #f7f8fa; +} \ No newline at end of file diff --git a/app-dm/src/TeacherPages/MarkingPages/StudentLink.jsx b/app-dm/src/TeacherPages/MarkingPages/StudentLink.jsx new file mode 100644 index 0000000..678c112 --- /dev/null +++ b/app-dm/src/TeacherPages/MarkingPages/StudentLink.jsx @@ -0,0 +1,28 @@ +import './StudentLink.css' + + + +function StudentLink(){ + return( +
学生 | +链接 | +分数 | +
---|---|---|
数据1 | +数据2 | +数据3 | +
已批改试卷
- -关闭时间:2024-11-5
-关闭时间:2024-11-5
-关闭时间:2024-11-5
-关闭时间:2024-11-5
-试卷ID{testID}X
-- 详情 - 分数 - 与上次相比 - 总评 -
---------------------------------------------------------------------------------------
- {detaileddata&&{detaileddata[key][6]} | -{detaileddata[key][5] ? detaileddata[key][5] : "未完成"} | -{detaileddata[key][5] ? `${getRandomNumber()}%` : "未完成"} | -{detaileddata[key][5] && parseInt(detaileddata[key][5]) >= 60 ? "及格" : (detaileddata[key][5] ? "不及格" : "未完成")} | -
试卷ID | -发布时间 | -截止时间 | -提交人数 | -平均分 | -
{key} | -{defaultclass[key][0][0].slice(0, 10)} | -{defaultclass[key][0][1].slice(0, 10)} | -{defaultclass[key][2]}人 | -{defaultclass[key][1]} | -
试卷ID{testID}X
++ 详情 + 分数 + 与上次相比 + 总评 +
+--------------------------------------------------------------------------------------
+ {detaileddata&&{detaileddata[key][6]} | +{detaileddata[key][5] ? detaileddata[key][5] : "未完成"} | +{detaileddata[key][5] ? `${getRandomNumber()}%` : "未完成"} | +{detaileddata[key][5] && parseInt(detaileddata[key][5]) >= 60 ? "及格" : (detaileddata[key][5] ? "不及格" : "未完成")} | +
试卷ID | +发布时间 | +截止时间 | +提交人数 | +平均分 | +
{key} | +{defaultclass[key][0][0].slice(0, 10)} | +{defaultclass[key][0][1].slice(0, 10)} | +{defaultclass[key][2]}人 | +{defaultclass[key][1]} | +
请选择发布班级
- { ClassData &&请填写考试时间
- 小时 - - 分钟 -请填写截至时间
- 天后 - - -
- 问题:{ChoiceQuestion[key][1]} -- A:{ChoiceQuestion[key][2]} - B:{ChoiceQuestion[key][3]} - C:{ChoiceQuestion[key][4]} - D:{ChoiceQuestion[key][5]} - - {/* 获取题目ID */} - { - if (event.target.checked) { - //在选择题目集中添加选择题的ID - SetChoiceQuestionSet(items=>([ - ...items, - ChoiceQuestion[key][7] - ])) - }else{ - SetChoiceQuestionSet((items)=> - items.filter((item)=>item!==ChoiceQuestion[key][7]) - ) - } - }} />是否选择 - |
-
- 问题:{Completion[key][1]} - { - if(event.target.checked){ - SetCompletionQuestionSet(items=>([ - ...items, - Completion[key][3] - ])) - }else{ - SetCompletionQuestionSet((items)=> - items.filter((item)=>item!==Completion[key][3])) - } - }}/>是否选择 - |
-
- 问题:{Judge[key][1]} - { - if(event.target.checked){ - SetJudgeQuestionSet(items=>([ - ...items, - Judge[key][3] - ])) - }else{ - SetJudgeQuestionSet((items)=> - items.filter((item)=>item!==Judge[key][3])) - } - }}/>是否选择 - |
-
请选择发布班级
+ { ClassData &&请填写考试时间
+ 小时 + + 分钟 +请填写截至时间
+ 天后 + + +
+ 问题:{ChoiceQuestion[key][1]} ++ A:{ChoiceQuestion[key][2]} + B:{ChoiceQuestion[key][3]} + C:{ChoiceQuestion[key][4]} + D:{ChoiceQuestion[key][5]} + + {/* 获取题目ID */} + { + if (event.target.checked) { + //在选择题目集中添加选择题的ID + SetChoiceQuestionSet(items=>([ + ...items, + ChoiceQuestion[key][7] + ])) + }else{ + SetChoiceQuestionSet((items)=> + items.filter((item)=>item!==ChoiceQuestion[key][7]) + ) + } + }} />是否选择 + |
+
+ 问题:{Completion[key][1]} + { + if(event.target.checked){ + SetCompletionQuestionSet(items=>([ + ...items, + Completion[key][3] + ])) + }else{ + SetCompletionQuestionSet((items)=> + items.filter((item)=>item!==Completion[key][3])) + } + }}/>是否选择 + |
+
+ 问题:{Judge[key][1]} + { + if(event.target.checked){ + SetJudgeQuestionSet(items=>([ + ...items, + Judge[key][3] + ])) + }else{ + SetJudgeQuestionSet((items)=> + items.filter((item)=>item!==Judge[key][3])) + } + }}/>是否选择 + |
+
题目选择
- {/* 实训题 */} - {isTrain&&
- {Trainquestion['choice'][key][8]}
- | |
问.{Trainquestion['choice'][key][1]} | -|
- {Trainquestion['completion'][key][4]} - | - 问.{Trainquestion['completion'][key][1]} - | - { - if (event.target.checked) { - //在选择题目集中添加选择题的ID - setTrainCompletion(items=>([ - ...items, - Trainquestion['completion'][key][3] - ])) - }else{ - setTrainCompletion((items)=> - items.filter((item)=>item!==Trainquestion['completion'][key][3]) - ) - } - }} />是否选择 - -
- {Trainquestion['judge'][key][4]} - | 问:{Trainquestion['judge'][key][1]} | - { - if (event.target.checked) { - setTrainJudge(items=>([ - ...items, - Trainquestion['judge'][key][3] - ])) - }else{ - setTrainJudge((items)=> - items.filter((item)=>item!==Trainquestion['judge'][key][3]) - ) - } - }} />是否选择 - -
请选择发布班级
- { ClassData &&请填写考试时间
- 小时 - 分钟 -请填写截至时间
- 天后 -题目选择
+ {/* 实训题 */} + {isTrain&&
+ {Trainquestion['choice'][key][8]}
+ | |
问.{Trainquestion['choice'][key][1]} | +|
+ {Trainquestion['completion'][key][4]} + | + 问.{Trainquestion['completion'][key][1]} + | + { + if (event.target.checked) { + //在选择题目集中添加选择题的ID + setTrainCompletion(items=>([ + ...items, + Trainquestion['completion'][key][3] + ])) + }else{ + setTrainCompletion((items)=> + items.filter((item)=>item!==Trainquestion['completion'][key][3]) + ) + } + }} />是否选择 + +
+ {Trainquestion['judge'][key][4]} + | 问:{Trainquestion['judge'][key][1]} | + { + if (event.target.checked) { + setTrainJudge(items=>([ + ...items, + Trainquestion['judge'][key][3] + ])) + }else{ + setTrainJudge((items)=> + items.filter((item)=>item!==Trainquestion['judge'][key][3]) + ) + } + }} />是否选择 + +
请选择发布班级
+ { ClassData &&请填写考试时间
+ 小时 + 分钟 +请填写截至时间
+ 天后 +试卷ID:
- 发布者: -试卷ID:
- 发布者: -已批改试卷
+ +关闭时间:2024-11-5
+关闭时间:2024-11-5
+关闭时间:2024-11-5
+关闭时间:2024-11-5
+提醒:请及时完成实训内容!!!
)}; diff --git a/app-dm/src/router/index.jsx b/app-dm/src/router/index.jsx index 92f0c33..f5b8a62 100755 --- a/app-dm/src/router/index.jsx +++ b/app-dm/src/router/index.jsx @@ -9,8 +9,8 @@ import HeaderNavTeacher from '../nav/teacherIndex'; // 用户页面 import Home from '../pages/Home/Home'; import SubjectPage from '../pages/ListPages/Subject/SubjectPage'; -import AnalysePage from '../pages/ListPages/Analyse/AnalysePages'; import Training from '../pages/ListPages/Training/TrainingPage'; +import AnalysePage from '../pages/ListPages/Analyse/AnalysePages'; import Exam from '../pages/ListPages/Subject/Exam'; import Operation1 from '../pages/ListPages/Training/Operation1'; import Operation2 from '../pages/ListPages/Training/Operation2'; @@ -18,11 +18,12 @@ import Operation2 from '../pages/ListPages/Training/Operation2'; // 教师页面 import TeacherPage from '../TeacherPages/TeacherPage'; import ClassID from '../TeacherPages/classlistpages/classId'; -import ManageTest from '../TeacherPages/teachermanagetest/ManageTest'; -import SendTest from '../TeacherPages/SendTest/SendTest'; +import ManageTest from '../TeacherPages/TestManage/ManageTest'; +import SendTest from '../TeacherPages/TestManage/SendTest'; import Marking from '../TeacherPages/MarkingPages/Marking'; -import SendTrain from '../TeacherPages/SendTrain/SendTrain'; -import TrainManage from '../TeacherPages/SendTest/trainmanage'; +import SendTrain from '../TeacherPages/TrainManage/SendTrain'; +import TrainManage from '../TeacherPages/TrainManage/trainmanage'; +import StudentLink from '../TeacherPages/MarkingPages/StudentLink'; // 定义一个组件来包裹除了特定页面(exam)外的所有页面使其有导航 const MainLayout = ({ headerNav:HeaderNav }) => { @@ -44,22 +45,21 @@ function App() {