From 5ba6b27722bcedca1d56dedd123f240290e549fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Sat, 13 Aug 2022 13:31:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E6=BA=90=E5=A4=8F=E4=BB=A4=E8=90=A5?= =?UTF-8?q?=E4=B8=AD=E6=9C=9F=E8=80=83=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/glcc/api.js | 35 +++++ src/glcc/home/index.jsx | 38 ++++- src/glcc/img/banner-interim.png | Bin 0 -> 1777836 bytes src/glcc/img/img1.png | Bin 0 -> 1405 bytes src/glcc/img/img2.png | Bin 0 -> 2223 bytes src/glcc/img/resultBanner3.png | Bin 0 -> 1777895 bytes src/glcc/index.jsx | 48 +++++- src/glcc/interimReview/index.scss | 191 +++++++++++++++++++++++ src/glcc/interimReview/result.jsx | 141 +++++++++++++++++ src/glcc/interimReview/studentSubmit.jsx | 114 ++++++++++++++ src/glcc/interimReview/tutorReview.jsx | 172 ++++++++++++++++++++ 11 files changed, 733 insertions(+), 6 deletions(-) create mode 100644 src/glcc/img/banner-interim.png create mode 100644 src/glcc/img/img1.png create mode 100644 src/glcc/img/img2.png create mode 100644 src/glcc/img/resultBanner3.png create mode 100644 src/glcc/interimReview/index.scss create mode 100644 src/glcc/interimReview/result.jsx create mode 100644 src/glcc/interimReview/studentSubmit.jsx create mode 100644 src/glcc/interimReview/tutorReview.jsx diff --git a/src/glcc/api.js b/src/glcc/api.js index 61a02bab9..546c8e49c 100644 --- a/src/glcc/api.js +++ b/src/glcc/api.js @@ -141,4 +141,39 @@ export function getPassList(params) { method: 'get', params, }); +} + +// 中期考核-查看中期考核信息 +export function getMediumTermExamineInfo(taskId) { + return fetch({ + url: `/api/mediumTermExamineMaterial/getMediumTermExamineInfo/${taskId}`, + method: 'get' + }); +} + +// 中期考核-提交中期考核信息 +export function submitMedium(data) { + return fetch({ + url: `/api/mediumTermExamineMaterial/create`, + method: 'post', + data + }); +} + +// 中期考核-导师提交中期考核评分 +export function submitTutorEvaluation(data) { + return fetch({ + url: `/api/tutorEvaluation/create`, + method: 'post', + data + }); +} + +// 中期考核-导师更新中期考核评分 +export function updateTutorEvaluation(data) { + return fetch({ + url: `/api/tutorEvaluation/update`, + method: 'post', + data + }); } \ No newline at end of file diff --git a/src/glcc/home/index.jsx b/src/glcc/home/index.jsx index 35c85a917..42e041078 100644 --- a/src/glcc/home/index.jsx +++ b/src/glcc/home/index.jsx @@ -11,13 +11,15 @@ import banner from "../img/banner.png"; import introduce from "../img/introduce.png"; import apply1 from "../img/apply1.png"; import apply2 from "../img/apply2.png"; +import img1 from "../img/img1.png"; +import img2 from "../img/img2.png"; import teacher from "../img/teacher.png"; import logo from "../img/openmmlab/logo1.png"; import { hasAuditRole } from '../api'; import './index.scss'; export default (props) => { - const { current_user, isGlccApplyDate, showNotification, studentApplyStart, history, secondStudentApplyDate, isStudentApplyDate } = props; + const { current_user, isGlccApplyDate, showNotification, studentApplyStart, history, secondStudentApplyDate, isStudentApplyDate, checkedTaskId, checkTime1, checkTime2 } = props; // function goToApply() { // if (isGlccApplyDate) { // if (current_user && current_user.login) { @@ -31,9 +33,9 @@ export default (props) => { // } // } - const [hasRole, setHhasRole] = useState(false); + const [hasRole, setHasRole] = useState(false); const resultTime1 = new Date().getTime() > new Date('2022-06-28 1:0').getTime() && new Date().getTime() < new Date('2022-07-01 0:0').getTime(); - const resultTime2 = new Date().getTime() > new Date('2022-07-01 12:0').getTime(); + const resultTime2 = new Date().getTime() > new Date('2022-07-01 12:0').getTime() && new Date().getTime() < new Date('2022-08-12 0:0').getTime(); useEffect(() => { if (!current_user.user_id) { @@ -41,7 +43,7 @@ export default (props) => { } hasAuditRole({ userId: current_user.user_id }).then(res => { if (res && res.message == 'success' && res.data.hasRole) { - setHhasRole(true); + setHasRole(true); } }) }, []) @@ -85,6 +87,32 @@ export default (props) => {
R7@+D
z)x>VwAJGN2|JN+jpTY=o7*T?|RtZXQ$1|i0$^Ecd4ZIEF+c}j-UC4fZqj)Q2V$mTg
zBp$clgfIz W~$FlU2KaAmJ71iW&^b3
z=wEtZ5G=mw?MK}5)Fs_JU0Tj|7I)1Ydw53 tOCkQ|Bm-VaCpVK*=Vl;=ba`F}*MW`JVPJUH~lt|0)X
z-;luQQ(JX+cPL38TUsmBIc19#PPu}q>1F)vwH?}4+ul!#$>bD}VIMjeP+&b0s)M@R
zBCDL tcgz)$`MI4FDFBhU9
zaV>ztL-yw%^
ZT1ypQV=
7AG4`^JX%^{7oEV@)?ZaAE4=@#q+m*QS^fF%P+(BLorN-i)22{8HAaz8G1%G
zj~u>5dWQz8i&Rp)YH|#Uocn|?cHR~h?>EFF$IjvNVU~4D3ZwGYUzyOZpBecHjhfE-
ze(wV54)yL;aaFt0s&xZPQt){?Rz_KVBT{baQ!7sI9f|ICC+8S~trCR862#19#LUnX
zk_UdShkp~0&m<ZOD!zIW0_J1DY`dErAFyASD7u*jMtfmQhc
R7Y7&-;|x#q*g~P326wB=DX!g-r0E
z@|$T$|C|O}MiuoNg7@!D9C?38jt5r~{K-(nmr0l&KiCY`K+y2n&Ylu|DX9W+@YbCI
zUT;upVu}tjB{%}~@JtT9c`Mh~Wq1Hid;P_d%k8)AhkHWl#k8dfQRmHq@J~%fiU1X7
zTBB*q#kT=D&jW(+Zd?MM^pXtal&eUXAo!p~ekzmRhh3RuWW?EqnJ$2l>jv6WJYya@
zC82iZ