glcc issue修改

This commit is contained in:
谢思 2022-10-08 11:20:26 +08:00
parent bc6a03926c
commit 8b6a83309a
5 changed files with 36 additions and 23 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 895 KiB

After

Width:  |  Height:  |  Size: 896 KiB

View File

@ -89,7 +89,7 @@ const Glcc = (propsF) => {
const checkTime1 = new Date().getTime() > new Date('2022/10/01 8:0').getTime();
//
const checkTime2 = new Date().getTime() > new Date('2022/10/01 8:0').getTime() && new Date().getTime() < new Date('2022/10/23 24:0').getTime();
// 8260
//
const checkTime3 = new Date().getTime() > new Date('2022/10/24 10:0').getTime();
// id

View File

@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react";
import { Form, Upload, Input, Icon, Button, message } from "antd";
import { Form, Upload, Input, Icon, Button, message, Modal } from "antd";
import { Link } from "react-router-dom";
import banner from '../img/banner-interim.png';
import img1 from '../img/img1.png';
@ -19,7 +19,7 @@ function StudentSubmit(props){
//
const submitTime = new Date().getTime() < new Date('2022/10/14 24:0').getTime();
//
const lookTime = new Date().getTime() > new Date('2022/10/15 0:0').getTime() && new Date().getTime() < new Date('2022/10/20 24:0').getTime();
const lookTime = new Date().getTime() > new Date('2022/10/15 0:0').getTime() && new Date().getTime() < new Date('2022/10/23 24:0').getTime();
useEffect(()=>{
if(!checkTime1){
@ -42,32 +42,44 @@ function StudentSubmit(props){
e.preventDefault();
validateFieldsAndScroll((err, values) => {
if(!err){
const {pptAttachment, defenceVideoUrl, codeOrPrUrl} = values;
const pptAttachmentId = pptAttachment.file.response.data.id;
const params = {
pptAttachmentId,
codeOrPrUrl,
defenceVideoUrl,
taskId: checkedTaskId,
studentRegId: studentRegId,
term: 2
}
submitMedium(params).then(res=>{
if(res && res.message === "success"){
if(!res.data){
setReload(Math.random());
}else if(res.data.code === '-1'){
message.error('不可重复提交');
Modal.confirm({
title: "确认提交结项考核材料?",
content: "提交后将无法修改考核材料,请进行二次确认",
onOk: ()=>{
const {pptAttachment, defenceVideoUrl, codeOrPrUrl} = values;
const pptAttachmentId = pptAttachment.file.response.data.id;
const params = {
pptAttachmentId,
codeOrPrUrl,
defenceVideoUrl,
taskId: checkedTaskId,
studentRegId: studentRegId,
term: 2
}
submitMedium(params).then(res=>{
if(res && res.message === "success"){
if(!res.data){
setReload(Math.random());
}else if(res.data.code === '-1'){
message.error('不可重复提交');
}
}else{
setDisabled(false);
}
})
},
onCancel:()=>{
setDisabled(false);
}
})
}else{
setDisabled(false);
}
})
}
//
function changeFileList(e) {
const {fileList} = e;
console.log('fileList', fileList, e);
const lastFile = fileList.splice(fileList.length-1, fileList.length);
setFileList(lastFile);
}
@ -79,7 +91,7 @@ function StudentSubmit(props){
<div className="navBox font-16"><Link to={`/glcc`} className="linkBox">开源夏令营 / </Link>提交结项考核材料</div>
<div className="tipBox mt30">
<div className="font-15 spanBox">材料提交说明:</div>
<div>1请各位学生<a href={`${main_site_url.indexOf("gitlink") !== -1 ? '/api/attachments/392565' : httpUrl+'/busiAttachments/download/169'}`} className="blueSpan">下载PPT模板</a> 根据课题开发进展按照PPT模板要求填写课题学习调研方案开发进度及开发成果等考核材料</div>
<div>1请各位学生<a href={httpUrl+`/busiAttachments/download/${main_site_url.indexOf("gitlink") === -1 ? '211' : '743'}`} className="blueSpan">下载PPT模板</a> 根据课题开发进展按照PPT模板要求填写课题学习调研方案开发进度及开发成果等考核材料</div>
<div>2欢迎各位学生录制本课题答辩视频将视频链接填写至下方视频介绍填写栏</div>
<div>3学生提交考核材料的时间为<span className="spanBox">2022年10月1日8点至2022年10月14日24点</span>请在截止时间前提交</div>
<div>4若导师已给出评分各位学生可在此页面查看自己的结项考核成绩对考核成绩有异议的学生请及时联系您的导师</div>
@ -116,6 +128,7 @@ function StudentSubmit(props){
</div>
{!detail && <div className="nullDateTip font-15">很遗憾您在指定时间内未提交考核材料</div>}
{detail && lookTime && !detail.glccTutorEvaluation && <div className="font-15 nullDateTip">您的课题导师暂未评分请提醒导师尽快提交结项考核评分</div>}
{detail && new Date().getTime() > new Date('2022/10/24 10:0').getTime() && !detail.glccTutorEvaluation && <div className="font-15 nullDateTip">很遗憾您的导师尚未评分您未通过结项考核</div>}
{detail && detail.glccTutorEvaluation && <div className="tutorRes">
<div>您的课题导师对您的结项考核评价如下如有异议请及时联系导师进行更改</div>
<div className="mt10 mb10 smallTil">

View File

@ -179,7 +179,7 @@ function TutorReview(props){
{detail.glccTutorEvaluation && !isEdit && <Button style={{width: '100px', height: '36px'}} className="mt20" type="primary" onClick={()=>{setIsEdit(true);setDisabled(false);}}>修改</Button>}
</Form.Item>}
</Form>
</div>:<Nodata _html="该课题学生暂未提交中期考核材料,请提醒学生尽快提交"/>}
</div>:<Nodata _html="该课题学生暂未提交结项考核材料,请提醒学生尽快提交"/>}
</div>
</div>
</div>

View File

@ -958,7 +958,7 @@ body{
display: flex!important;
padding:10px 2px;
align-items: center;
justify-content: space-between;
justify-content: center;
a{
background: #FFFFFF;
box-shadow: 0px 1px 8px 1px rgba(0, 0, 0, 0.06);