diff --git a/src/glcc/api.js b/src/glcc/api.js index 6730545c9..925fb4ec9 100644 --- a/src/glcc/api.js +++ b/src/glcc/api.js @@ -328,4 +328,13 @@ export function getExamineInfoListFor0In(params) { method: 'get', params }); +} + +// 获取结项学生个人信息 +export function getStudentInfo(params) { + return fetch({ + url: `/api/glccFinalTermStudentInfo/getMyInfo`, + method: 'get', + params + }); } \ No newline at end of file diff --git a/src/glcc/interimReview/index.scss b/src/glcc/interimReview/index.scss index c3fef0531..b9a8866c4 100644 --- a/src/glcc/interimReview/index.scss +++ b/src/glcc/interimReview/index.scss @@ -137,6 +137,20 @@ } .referItem{margin-bottom: 5px;} } + &.referBoxByFinalExamine{ + .referItem.oneLine .ant-form-item-label, .pptUpload .ant-form-item-label{ + width: 125px; + } + .referItem.isEmpower{ + margin-left: 145px; + } + .referItem.oneLine input{ + width: 82%; + } + .submitByGLCC{ + margin-left: 125px !important; + } + } } .tutorContent{ border: 1px solid #fff; @@ -286,4 +300,7 @@ } } } +} +.descriptions_glcc table{ + background: none; } \ No newline at end of file diff --git a/src/glcc/interimReview/studentSubmit.jsx b/src/glcc/interimReview/studentSubmit.jsx index cbc8dec8b..73ae4a04a 100644 --- a/src/glcc/interimReview/studentSubmit.jsx +++ b/src/glcc/interimReview/studentSubmit.jsx @@ -1,5 +1,5 @@ import React, { useEffect, useState, Fragment } from "react"; -import { Form, Upload, Input, Icon, Button, message, Modal, Checkbox, notification} from "antd"; +import { Form, Upload, Input, Icon, Button, message, Modal, Checkbox, notification, Descriptions} from "antd"; import { Link } from "react-router-dom"; import axios from "axios"; import banner from '../img/banner-interim.png'; @@ -7,19 +7,23 @@ import banner1 from '../img/banner-interim1.png'; import img1 from '../img/img1.png'; import bg from '../img/bgPng.png'; import { httpUrl, main_site_url } from '../fetch'; -import {getMediumTermExamineInfo, submitMedium, formatParsedResult, hasFinalExam, currentRound} from '../api'; +import {getMediumTermExamineInfo, submitMedium, formatParsedResult, hasFinalExam, currentRound, getStudentInfo} from '../api'; import './index.scss'; function StudentSubmit(props){ const label = { mediumExamine1: '中期', - finalExamine1: '结项' + finalExamine1: '结项', + mediumExamine2: '中期', + finalExamine2: '结项' } const {form, checkedTaskId, studentRegId, period, glccSettings, isMediumExamineByToTutor, isFinalExamineByToTutor,history, current_user} = props; + // const period = "finalExamine1" const mediumExamine = glccSettings && glccSettings.filter(item=>item.name === "mediumExamine1"); const mediumExamine2 = glccSettings && glccSettings.filter(item=>item.name === "mediumExamine2"); const finalExamine = glccSettings && glccSettings.filter(item=>item.name === "finalExamine1"); const finalExamine2 = glccSettings && glccSettings.filter(item=>item.name === "finalExamine2"); + const isFinal = (period === "finalExamine1" || period === "finalExamine2"); let overtime = false; if (mediumExamine2 && mediumExamine2[0] && period === "mediumExamine1") { const nowTime = new Date().getTime(); @@ -46,16 +50,25 @@ function StudentSubmit(props){ const [disabled, setDisabled] = useState(false); // 是否授权主办方 const [isAuthed, setIsAuthed] = useState(false); + const [studentInfo, setStudentInfo] = useState(undefined); useEffect(()=>{ // 查询是否已经提交考核材料 - checkedTaskId && getMediumTermExamineInfo(checkedTaskId,{round: currentRound, term: period === "mediumExamine1" ? 1 : 2}).then(res=>{ + checkedTaskId && getMediumTermExamineInfo(checkedTaskId,{round: currentRound, term: isFinal ? 2 : 1}).then(res=>{ if(res && res.message === "success"){ setDetail(res.data); } }) },[checkedTaskId, reload]) + useEffect(()=>{ + isFinal && getStudentInfo({round: currentRound}).then(res=>{ + if(res && res.message === "success"){ + setStudentInfo(res.data); + } + }) + }, [isFinal, reload]) + // 学生提交材料 function submit(e){ setDisabled(true); @@ -63,10 +76,20 @@ function StudentSubmit(props){ validateFieldsAndScroll((err, values) => { if(!err){ Modal.confirm({ + width: '515px', title: `确认提交${label[period]}考核材料?`, - content: "提交后将无法修改考核材料,请进行二次确认", + content: isFinal ?