From 7be953025f9c4a1a8e682659aef801a0bc8baa4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Tue, 25 Jun 2019 18:18:51 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/shixunHomework/CommitSummary.js | 62 +- .../courses/shixunHomework/Listofworks.js | 825 +++++++++++++++--- .../shixunHomework/Listofworksstudentone.js | 139 ++- .../TraineetraininginformationModal.js | 5 +- .../shixunHomework/Trainingjobsetting.js | 34 +- 5 files changed, 826 insertions(+), 239 deletions(-) diff --git a/public/react/src/modules/courses/shixunHomework/CommitSummary.js b/public/react/src/modules/courses/shixunHomework/CommitSummary.js index d8d84608c..3e12e2bb6 100644 --- a/public/react/src/modules/courses/shixunHomework/CommitSummary.js +++ b/public/react/src/modules/courses/shixunHomework/CommitSummary.js @@ -26,17 +26,11 @@ class CommitSummary extends Component{ data:undefined, cancels:false, } - // console.log("CommitSummary"); - // console.log(this.props); + } componentDidMount() { this.Getsubmissionsummaryinterface(); - // this.props.form.setFieldsValue({ - // description:"result.data.selected_data.tea_id", - // - // }); - this.getTrainingjobsetting(); let query = this.props.location.pathname; const type = query.split('/'); this.setState({ @@ -44,36 +38,6 @@ class CommitSummary extends Component{ }) } - // saveFormData = () => { - // form.validateFields((err, values) => { - // if (err) { - // return; - // } - // var worksid=this.state.data.homeworkid; - // // console.log(values); - // // console.log(homeworkid); - // console.log(worksid); - // // 在这里执行保存到服务器的操作使用axios - // // message.success('保存成功!') - // var url = `/student_works/${worksid}/update_des.json`; - // axios.post(url,{ - // description:values, - // }).then((result) => { - // if (result.status === 200) { - // // console.log(url) - // // console.log("提交总结接口") - // // console.log(JSON.stringify(result)) - // // message.success(result.data.message); - // } - // if(result.status === 403){ - // - // } - // }).catch((error) => { - // console.log(error) - // }) - // }); - // } - //获取提交总结接口 Getsubmissionsummaryinterface=()=>{ @@ -183,20 +147,6 @@ class CommitSummary extends Component{ * 内容 - {/*
{teacherdata === undefined ? "" : teacherdata.homework_name}
@@ -696,11 +746,11 @@ class Listofworksstudentone extends Component { typelist={teacherdata === undefined ? [""] : teacherdata.homework_status} /> 返回 + href={`/courses/${this.state.props.match.params.coursesId}/${this.state.shixuntypes}/${jobsettingsdata === undefined ? "" : jobsettingsdata.data.category.category_id === undefined ? "" : jobsettingsdata.data.category.category_id}`}>返回