From c7418fa1f5abed13a44a99ea0a7614af66afb983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Wed, 21 Jun 2023 09:39:12 +0800 Subject: [PATCH] =?UTF-8?q?glcc=E4=BF=AE=E6=94=B9=E8=AF=BE=E9=A2=98?= =?UTF-8?q?=E6=9C=AA=E4=BC=A0=E5=8F=82taskId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/glcc/apply/editInfo.jsx | 6 ++++-- src/glcc/apply/taskApply.jsx | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/glcc/apply/editInfo.jsx b/src/glcc/apply/editInfo.jsx index b9198b41e..b9aed5f53 100644 --- a/src/glcc/apply/editInfo.jsx +++ b/src/glcc/apply/editInfo.jsx @@ -27,7 +27,7 @@ function EditRepoApplyInfo(props) { const taskCountArr = [] registrationTaskList.map((item, index)=>{ taskCountArr.push(index+1); - const{taskName, taskUrl, taskDifficulty, taskReward, tutorName, tutorMail, taskDesc, tutorPhone} = item; + const{taskName, taskUrl, taskDifficulty, taskReward, tutorName, tutorMail, taskDesc, tutorPhone, id} = item; taskInfo[`taskName${index+1}`] = taskName; taskInfo[`taskUrl${index+1}`] = taskUrl; taskInfo[`taskDifficulty${index+1}`] = taskDifficulty; @@ -36,6 +36,7 @@ function EditRepoApplyInfo(props) { taskInfo[`tutorMail${index+1}`] = tutorMail; taskInfo[`taskDesc${index+1}`] = taskDesc; taskInfo[`tutorPhone${index+1}`] = tutorPhone; + taskInfo[`taskId${index+1}`] = id; }) setTaskCount(taskCountArr); setTimeout(() => { @@ -76,6 +77,7 @@ function EditRepoApplyInfo(props) { const registrationTaskList = [] taskCount && taskCount.map(item=>{ registrationTaskList.push({ + id: values[`taskId${item}`], taskName: values[`taskName${item}`], taskUrl: values[`taskUrl${item}`], taskDifficulty: values[`taskDifficulty${item}`], @@ -267,7 +269,7 @@ function EditRepoApplyInfo(props) {
课题信息({index+1}/5)
{index>0 && } - + })} {taskCount && taskCount.length<5 &&
diff --git a/src/glcc/apply/taskApply.jsx b/src/glcc/apply/taskApply.jsx index a263f9bd2..86ed6c5f0 100644 --- a/src/glcc/apply/taskApply.jsx +++ b/src/glcc/apply/taskApply.jsx @@ -4,7 +4,7 @@ import TextArea from 'antd/lib/input/TextArea'; const Option = Select.Option; // 课题信息编辑 function TaskApply(props) { - const {helper, disabled, taskKey, phonereg, emailreg} = props; + const {helper, disabled, taskKey, phonereg, emailreg, getFieldDecorator} = props; // 低、中、高 const difficultyList = [ {id: 1, name: "低"}, @@ -26,6 +26,9 @@ function TaskApply(props) { return(
+ {helper('课题名称', '', `taskName${taskKey}`,