From 3219a1ac959bc3c617fedcbd2be088723cf3c984 Mon Sep 17 00:00:00 2001 From: 30404 <3040471803@qq.com> Date: Wed, 3 Jul 2024 14:08:43 +0800 Subject: [PATCH] 1223123 --- .../src/TeacherPages/MarkingPages/Marking.css | 4 + .../src/TeacherPages/MarkingPages/Marking.jsx | 9 +- .../TeacherPages/MarkingPages/StudentLink.jsx | 29 ++++- .../TestManage/{Test.tsx => Test.jsx} | 14 +-- .../TeacherPages/Trainmanage/Trainmanage.jsx | 29 ++++- app-dm/src/pages/Home/Home.jsx | 20 +--- .../pages/ListPages/Subject/SubjectPage.jsx | 7 +- .../pages/ListPages/Training/Operation2.jsx | 55 +-------- app-dm/src/router/index.jsx | 6 +- app-dm/src/setupProxy.js | 4 +- python/app.py | 41 ++++++- python/assets/type0-pod.yaml | 8 +- python/assets/type1-pod.yaml | 8 +- python/del.py | 6 + python/k8s_func.py | 31 ++++-- python/teacher_func.py | 104 +++++++++++++----- python/test.py | 30 +++++ 17 files changed, 254 insertions(+), 151 deletions(-) rename app-dm/src/TeacherPages/TestManage/{Test.tsx => Test.jsx} (77%) create mode 100644 python/del.py create mode 100644 python/test.py diff --git a/app-dm/src/TeacherPages/MarkingPages/Marking.css b/app-dm/src/TeacherPages/MarkingPages/Marking.css index 5179ebd..2eae47d 100644 --- a/app-dm/src/TeacherPages/MarkingPages/Marking.css +++ b/app-dm/src/TeacherPages/MarkingPages/Marking.css @@ -61,4 +61,8 @@ font-size: 13px; margin-top: -12px; color: #525252; +} +#TF{ + position: absolute; + margin-left: 1200px; } \ No newline at end of file diff --git a/app-dm/src/TeacherPages/MarkingPages/Marking.jsx b/app-dm/src/TeacherPages/MarkingPages/Marking.jsx index e38c9df..4a07a49 100644 --- a/app-dm/src/TeacherPages/MarkingPages/Marking.jsx +++ b/app-dm/src/TeacherPages/MarkingPages/Marking.jsx @@ -9,6 +9,7 @@ import axios from 'axios'; // 批改 function Marking(){ const teacher_ID=localStorage.getItem('islogin') + const currentTime = new Date().toLocaleString() if(teacher_ID==null){ alert('登录过期,请重新登录') window.location.href='http://36.138.114.105:30294/' @@ -59,10 +60,6 @@ function Marking(){ const ClassChange=(event)=>{ setClassID(event.target.value) } - const click=()=>{ - console.log(ClassID); - console.log(MarkData); - } return(
实训ID:{MarkData[key][0][10]}{eval(MarkData[key][0][11])}
- {MarkData[key][0][6]} +{key} | -{TestLink[key][6]} | -+ | {TestLink[key][6]} | +