diff --git a/src/glcc/check/index.jsx b/src/glcc/check/index.jsx
index cf5388ab..b0583ec3 100644
--- a/src/glcc/check/index.jsx
+++ b/src/glcc/check/index.jsx
@@ -23,7 +23,7 @@ function Check({ current_user, showNotification, history }) {
const [taskId, setTaskId] = useState();
const [havePass, setHavePass] = useState(false);
- const disabledCheck = new Date().getTime() > new Date('2022-07-01').getTime();
+ const disabledCheck = new Date().getTime() > new Date('2022-07-01 00:00:00').getTime();
const columns = [
{
@@ -130,11 +130,11 @@ function Check({ current_user, showNotification, history }) {
return (
{/* 学生已入选并且锁定 */}
- {text && record.locked && }
+ {record.locked && !record.used && }
{/* 学生已经被其他导师锁定 */}
- {!text && record.locked && }
+ {record.locked && record.used && }
{/* 学生未被锁定 */}
- {!record.locked && (text ? :
+ {!record.locked && !record.used && (text ? :
)}
)
@@ -143,7 +143,7 @@ function Check({ current_user, showNotification, history }) {
];
useEffect(() => {
- if(new Date().getTime() > new Date('2022-07-01').getTime()){
+ if(new Date().getTime() > new Date('2022-07-01 0:0').getTime()){
history.push('/403');
}
if (!current_user.user_id) {
@@ -273,12 +273,12 @@ function Check({ current_user, showNotification, history }) {
const data = res.data.rows;
// 已入选数据置顶
data.map((item, index)=>{
- if(item.passStatus && item.locked){
+ if(item.locked && !item.used){
toFirst(data, index);
}
})
setData(data);
- let isPass = res.data.rows.some((item) => { return item.passStatus });
+ let isPass = res.data.rows.some((item) => { return (item.passStatus && !(item.locked&&item.used)) || (item.locked && !item.used) });
setHavePass(isPass);
}
setLoading(false);
@@ -297,8 +297,8 @@ function Check({ current_user, showNotification, history }) {
1、欢迎进入导师审核页!各位导师可查看到您发布课题的全部学生报名信息
2、您可根据学生报名信息与学生进行邮箱或电话沟通了解学生详细情况,选择满意的学生
3、每个课题仅允许审核通过一个学生,在审核过程中,您可以随时调整各学生的审核状态,直到与学生匹配成功
-
- 5、请各位导师在7月1日前完成课题申请的审核,7月1日凌晨1点平台将根据各导师审核信息,正式公布各课题学生入选名单
+ {/* */}
+ 4、请各位导师在7月1日前完成课题申请的审核,7月1日凌晨1点平台将根据各导师审核信息,正式公布各课题学生入选名单
{ setTaskId(e) }} activeKey={taskId + ''}>
diff --git a/src/glcc/home/index.jsx b/src/glcc/home/index.jsx
index a8b3e831..a66a1a5d 100644
--- a/src/glcc/home/index.jsx
+++ b/src/glcc/home/index.jsx
@@ -95,7 +95,7 @@ export default (props) => {
选择课题,开启您的开源之旅
{/* 6.28.-7.1 审核结果仅对导师可见,7.1之后对所有用户可见*/}
- {((resultTime1 && hasRole) || resultTime2) &&
+ {resultTime2 &&
名单{resultTime1 && '预'}公示
@@ -103,7 +103,7 @@ export default (props) => {
查看各课题入选学生名单
}
{/* 导师审核 */}
- {hasRole && new Date().getTime() < new Date('2022-07-01').getTime() &&
+ {hasRole && new Date().getTime() < new Date('2022-07-01 0:0').getTime() &&
导师审核
diff --git a/src/glcc/index.jsx b/src/glcc/index.jsx
index b5db4003..f5908e00 100644
--- a/src/glcc/index.jsx
+++ b/src/glcc/index.jsx
@@ -69,7 +69,7 @@ const Glcc = (propsF) => {
// 学生报名时间
const studentApplyStart = new Date().getTime() > new Date('2022-05-26').getTime();
const isStudentApplyDate = new Date().getTime() > new Date('2022-05-26').getTime() && new Date().getTime() < new Date('2022-06-25 0:0').getTime();
- const secondStudentApplyDate = new Date().getTime() > new Date('2022-06-29 1:0').getTime() && new Date().getTime() < new Date('2022-07-01 0:0').getTime();
+ const secondStudentApplyDate = new Date().getTime() > new Date('2022-06-29 1:0').getTime() && new Date().getTime() < new Date('2022-06-30 0:0').getTime();
// 用户已报名课题id数组
const [applyTaskId, setApplyTaskId] = useState({});