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])} | ++ |
请选择学生和科目
+ )} +学生成绩:
*/} +