From 37170bbdb2c8d36da5d0c5d26553ba689cc69c8d Mon Sep 17 00:00:00 2001 From: nopy <646880214@qq.com> Date: Fri, 5 Jul 2024 17:10:09 +0800 Subject: [PATCH] 1 --- .../Questionmanage/questionmanage.css | 11 + .../Questionmanage/questionmanage.jsx | 8 + app-dm/src/TeacherPages/TeacherPage.css | 31 +- app-dm/src/TeacherPages/TeacherPage.jsx | 6 +- .../TeacherPages/Trainmanage/SendTrain.css | 135 +++++++- .../TeacherPages/Trainmanage/SendTrain.jsx | 130 +++---- .../TeacherPages/classlistpages/classId.jsx | 326 +++++++++--------- .../TeacherPages/classlistpages/classid.css | 110 ++++-- app-dm/src/nav/teacherIndex.jsx | 3 +- app-dm/src/pages/Home/img/question.jpg | Bin 0 -> 3523 bytes app-dm/src/pages/SignIn/SignInPage.css | 1 - app-dm/src/router/index.jsx | 2 + 12 files changed, 485 insertions(+), 278 deletions(-) create mode 100644 app-dm/src/TeacherPages/Questionmanage/questionmanage.css create mode 100644 app-dm/src/TeacherPages/Questionmanage/questionmanage.jsx create mode 100644 app-dm/src/pages/Home/img/question.jpg diff --git a/app-dm/src/TeacherPages/Questionmanage/questionmanage.css b/app-dm/src/TeacherPages/Questionmanage/questionmanage.css new file mode 100644 index 0000000..b69db30 --- /dev/null +++ b/app-dm/src/TeacherPages/Questionmanage/questionmanage.css @@ -0,0 +1,11 @@ +/* 页面右边 */ +.body-right-question{ + 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/Questionmanage/questionmanage.jsx b/app-dm/src/TeacherPages/Questionmanage/questionmanage.jsx new file mode 100644 index 0000000..a853e21 --- /dev/null +++ b/app-dm/src/TeacherPages/Questionmanage/questionmanage.jsx @@ -0,0 +1,8 @@ +import './questionmanage.css' + +function Questionmange(){ + return ( +
+ ) +} +export default Questionmange \ No newline at end of file diff --git a/app-dm/src/TeacherPages/TeacherPage.css b/app-dm/src/TeacherPages/TeacherPage.css index 0ef903d..afad2cb 100644 --- a/app-dm/src/TeacherPages/TeacherPage.css +++ b/app-dm/src/TeacherPages/TeacherPage.css @@ -12,17 +12,32 @@ /* 班级管理 */ .manage_class{ - /* flex-basis: calc(50.00% - 10PX); */ width: 400px; height: 250px; - background-color: rgb(200, 249, 230); - margin-left: 150px; - margin-top: 50px; + background-image: linear-gradient(rgb(193,240,222),rgb(128, 235, 226)); + border: 5px double rgb(185, 222, 200); + margin: 60px 50px; + box-shadow: + 0 0 0 0 , /* 填充颜色 */ + inset 0 0 0 2px #fdfdfd, /* 外边框颜色 */ + inset 0 0 0 6px #ffffff; +} +.manage_class h3{ + font-size: 20px; + padding-left: 118px; + padding-top: 20px; + color: rgb(33, 110, 87); } .manage_class p{ - margin-left: 50px; + font-size: 18px; + padding-right: 10px; + text-align: center; + margin-top: -2px; + padding-bottom: 10px; + color: rgb(75, 122, 122); } -.manage_class button{ - margin-left: 300px; - margin-top: 100px; +.Link-teacherpage{ + padding: 10px 50px; + margin-left: 112px; + background-color: #e1fff7; } \ No newline at end of file diff --git a/app-dm/src/TeacherPages/TeacherPage.jsx b/app-dm/src/TeacherPages/TeacherPage.jsx index 03a50e0..20a80d2 100644 --- a/app-dm/src/TeacherPages/TeacherPage.jsx +++ b/app-dm/src/TeacherPages/TeacherPage.jsx @@ -9,7 +9,7 @@ function TeacherPage() { const teacher_ID = localStorage.getItem('islogin') if(teacher_ID==null){ alert('登录过期,请重新登录') - window.location.href='/signin' + window.location.href='http://36.138.114.105:30294/' } const [classData, setClassData] = useState({}); const log=(key)=>{ @@ -37,10 +37,10 @@ function TeacherPage() {班级:{key}
+人数:{classData[key][1]}
班主任:{classData[key][0]}
- {log(key);}}>管理 + {log(key);}} style={{color:'rgb(44, 103, 83)',textDecoration:'none',fontSize:'17px'}} className='Link-teacherpage'>管理
- {Trainquestion['choice'][key][8]}
+ |
+ {Trainquestion['choice'][key][8]}
| |||||
问.{Trainquestion['choice'][key][1]} | +{index+1}.{Trainquestion['choice'][key][1]} | |||||
- {Trainquestion['completion'][key][4]} - | - 问.{Trainquestion['completion'][key][1]} + |
+ {Trainquestion['completion'][key][4]}
+ | + {index+1}.{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]) - ) - } - }} /> - 是否选择 +
+ {Trainquestion['judge'][key][4]}
+ | {index+1}.{Trainquestion['judge'][key][1]} | +
{classdata[item][2]} | -{classdata[item][0]} | -{classdata[item][1]} | -{classdata[item][3]} | -{classdata[item][5]} | -{formatDate(classdata[item][4])} | -- |
{classdata[item][2]} | +{classdata[item][0]} | +{classdata[item][1]} | +{classdata[item][3]} | +{classdata[item][5]} | +{formatDate(classdata[item][4])} | ++ |
请选择学生和科目
+ )} +学生成绩:
*/} +tl3nohcoVH6wn`s8QWqj%~SRCHKJ ze!1rBk<%Jlbf~ZSZsjBUy(d0RnZ3(g?i~67%E?c`?NPQRUGdjC5W??>!_RG_yCiDv z$3~x88=2X)PZ+cV>?vLHvBK24$>kj9=iN|h9Ek@vlp|*?fn5eU>S>Z zt&G)QYI~|8-DpD+*~jgZrJl58oI@tO=&I$GRLtPV+IJmxzwQ+By%$=51=reby+dO&bu$ze))j~~KXW9_9J0Kj_?d8 kVqmPeR+@_w$JKB7 ze2y*kZf Ig$Gv&z#Y(!Kk1rI6s;m~{$42Jam2j+TInSMt3(pdAZ6 zS}tcHXXCLC)sW!Yg|7}-GWZa(_jf-b3~^H;eKakr18N^m7uYW=qO#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