diff --git a/src/glcc/index.jsx b/src/glcc/index.jsx index 95e9d764..0078dfcf 100644 --- a/src/glcc/index.jsx +++ b/src/glcc/index.jsx @@ -74,7 +74,7 @@ const Glcc = (propsF) => { data[item.taskId] = item.id; }) setApplyTaskId(data); - setCancelCount(Number(response.data.cancelCount)); + response.data&&setCancelCount(Number(response.data.cancelCount)); } }) },[studentInfoReset, current_user]) diff --git a/src/glcc/project/taskList/index.jsx b/src/glcc/project/taskList/index.jsx index 98e8780a..0622c2f8 100644 --- a/src/glcc/project/taskList/index.jsx +++ b/src/glcc/project/taskList/index.jsx @@ -24,9 +24,10 @@ function TaskList({applyTaskId, setStudentInfoReset, current_user, showLoginDial const columns = [ { title: '序号', dataIndex: 'index', align: 'center', className:"taskTableColumns", width: '6%', render: (text, item, index) => {(current-1)*pageSize+index + 1} }, - { title: '课题名称', dataIndex: 'taskName', className:"taskTableColumns taskName", width: '28%', ellipsis: true, render: (text, item) => {window.open(`/glcc/subjects/detail/${item.id}`)}}>{text} }, - { title: '项目名称', dataIndex: 'projectName', className:"taskTableColumns", width: '28%', ellipsis: true, render: (text) => {text} }, - { title: '课题奖金', dataIndex: 'taskReward', className:"taskTableColumns", ellipsis: true, width: `${isStudentApplyDate || studentApplyEnd ? '15%' : ''}`, render: (text) => {text} }, + { title: '课题名称', dataIndex: 'taskName', className:"taskTableColumns taskName", width: '22%', ellipsis: true, render: (text, item) => {window.open(`/glcc/subjects/detail/${item.id}`)}}>{text} }, + { title: '课题类型', dataIndex: 'projectType', className:"taskTableColumns", width: '10%', ellipsis: true, }, + { title: '项目名称', dataIndex: 'projectName', className:"taskTableColumns", width: '22%', ellipsis: true, render: (text) => {text} }, + { title: '课题奖金', dataIndex: 'taskReward', className:"taskTableColumns", ellipsis: true, width: `${isStudentApplyDate || studentApplyEnd ? '18%' : ''}`, render: (text) => {text} }, { title: '操作', dataIndex: 'action', align: 'center', className:"actionColumns taskTableColumns", render: ((text, item, index) => { return ( @@ -43,7 +44,7 @@ function TaskList({applyTaskId, setStudentInfoReset, current_user, showLoginDial ] function deleteItem(id){ - if(cancelCount==1){ + if(cancelCount==2){ showNotification("您的取消报名次数已用光,请联系导师处理相关报名审核信息"); }else{ setDeleteTaskId(id); diff --git a/src/glcc/project/taskList/index.scss b/src/glcc/project/taskList/index.scss index d1fcb558..058caf89 100644 --- a/src/glcc/project/taskList/index.scss +++ b/src/glcc/project/taskList/index.scss @@ -77,7 +77,7 @@ tr:hover .actionColumns .cancelApply{ .tipTask{ color:#666666; font-size:14px; - margin: 30px 0 30px 86px !important; + margin: 10px 0 10px 37px!important; } .tipTaskTime{ font-size: 36px; @@ -99,6 +99,9 @@ tr:hover .actionColumns .cancelApply{ color: #df0002;} } } + .ant-btn-default{ + margin-left:43px; + } } } .task.search{ diff --git a/src/glcc/student/index.jsx b/src/glcc/student/index.jsx index 00158186..949e30cc 100644 --- a/src/glcc/student/index.jsx +++ b/src/glcc/student/index.jsx @@ -119,12 +119,17 @@ function Apply(props) { }]); } - initTaskList.push({ - id: item.id, - memo: item.memo, - memoAttachmentId: item.memoAttachmentId, - taskId: item.taskId, - }); + if(item.enrollFirst){ + applyInfo.enrollFirst=i; + } + + initTaskList.push(item); + // initTaskList.push({ + // id: item.id, + // memo: item.memo, + // memoAttachmentId: item.memoAttachmentId, + // taskId: item.taskId, + // }); } setMyTaskList(initTaskList); @@ -172,8 +177,14 @@ function Apply(props) { validateFieldsAndScroll((err, values) => { if (!err) { setLoading(true); - if(myTaskList.length===2){ - myTaskList[values.enrollFirst].enrollFirst=true; + if (myTaskList.length === 2) { + if(values.enrollFirst==1){ + myTaskList[1].enrollFirst = true; + myTaskList[0].enrollFirst = false; + }else{ + myTaskList[1].enrollFirst = false; + myTaskList[0].enrollFirst = true; + } } const params = { grade: values.grade, @@ -450,11 +461,17 @@ function Apply(props) { { myTaskList.map((item, i) => { + console.log(item ) return (

课题信息({i + 1}/2) {/* {myTaskList.length > 1 && { deleteTask(i) }}>删除} */}

+ {item.status == 1 && item.auditRemark &&
+
欢迎您报名CCF GitLink开源编程夏令营,感谢您对GLCC项目及课题的关注和支持!本次您的报名信息未通过初审,原因如下:
+
+
希望您尽快修改并重新提交报名信息,我们将再次审核,万分感谢!
+
} {helper('课题名称', '', 'taskId' + i, diff --git a/src/glcc/student/index.scss b/src/glcc/student/index.scss index c145b5dc..41fa70c0 100644 --- a/src/glcc/student/index.scss +++ b/src/glcc/student/index.scss @@ -294,7 +294,7 @@ .glcc_info_form .ant-row.ant-form-item.priority { display: block; width: 100%; - padding-top:5px; + padding-top: 5px; border-top: 1px dashed #bec5d5; .ant-col { width: 100%; @@ -307,17 +307,37 @@ font-size: 14px; } - .ant-radio-checked::after{ + .ant-radio-checked::after { border: 1px solid #466aff; } - .ant-radio-checked .ant-radio-inner{ + .ant-radio-checked .ant-radio-inner { border-color: #466aff; } - .ant-radio-inner::after{ + .ant-radio-inner::after { background-color: #466aff; } } } +.reject-reason { + width: 100%; + min-height: 45px; + line-height: 42px; + background-color: rgba(242, 216, 216, 0.63); + border: 1px solid #df4c4c; + color: #595e82; + font-size: 15px; + padding-left:22px; + margin-bottom: 30px; + + .icon-shanchudiao{ + position: relative; + top:1px; + color: #e21b1b; + margin-right: 5px; + font-weight: 600; + } +} + .glcc-banner { width: 100%; } @@ -333,7 +353,6 @@ background-color: #e9efff; } } - } .glcc_select .ant-select-dropdown-menu-item-active:not(.ant-select-dropdown-menu-item-disabled) {