-
- {this.props.isAdmin() === true?
作品列表:
-
作品列表
- // :
作品列表(学生完成)
- }
-
-
作业问答
- {this.props.isAdmin()?
- this.state.code_review===true||jobsettingsdata === undefined ? [""] : jobsettingsdata.data.homework_status[0]==="未发布"?"":
- 代码查重:""}
-
-
设置
- {/*
导出成绩*/}
- {this.props.isAdmin() ?
导出 : ""}
- {this.props.isAdmin() ?jobsettingsdata&&jobsettingsdata.data.end_immediately===true?
-
立即截止:"" : ""}
- {this.props.isAdmin() ?jobsettingsdata&&jobsettingsdata.data.publish_immediately===true?
-
立即发布 :"": ""}
-
-
- {this.props.isAdmin()?
- this.state.code_review===true?
-
代码查重
- :"":""}
-
-
-
- {jobsettingsdata === undefined|| jobsettingsdata.data.description===null? "无" :
+ homeworkhide = () => {
+ this.isupdatas()
+ this.setState({
+ modalname: undefined,
+ modaltype: undefined,
+ visible: false,
+ Topval: undefined,
+ Topvalright: undefined,
+ Botvalleft: undefined,
+ Botval: undefined,
+ starttime: undefined,
+ endtime: undefined,
+ Cancelname: undefined,
+ Savesname: undefined,
+ Cancel: undefined,
+ Saves: undefined,
+ StudentList_value: undefined,
+ addname: undefined,
+ addnametype: false,
+ addnametab: undefined,
+ typs: undefined,
+ starttimes: undefined,
+ })
+ }
+ getcourse_groupslist = (id) => {
+ this.setState({
+ course_groupslist: id
+ })
+ }
+
+
+ // 导出实习报告批量
+ internshipreport = () => {
+ console.log("internshipreport");
+ var homeworkid = this.props.match.params.homeworkid;
+ let url = "/zip/shixun_report";
+ axios.get((url),{
+ params: {
+ homework_common_id: homeworkid,
+ }
+ }).then((response) => {
+ console.log("326");
+ console.log(response);
+
+ }).catch((error) => {
+ console.log(error)
+ });
+ }
+
+ // 课堂学生成绩的导出下载
+ Classstudentachievement = () => {
+ console.log("Classstudentachievement");
+ const course_id = this.props.match.params.coursesId;
+ let url = "/courses/" + course_id + "/export_member_scores_excel.xlsx";
+ axios.get(url).then((response) => {
+ console.log("339");
+ console.log(response);
+
+ }).catch((error) => {
+ console.log(error)
+ });
+ }
+
+ render() {
+ const dateFormat = 'YYYY-MM-DD HH:mm:ss';
+ let {
+ starttimetype, endtimetype, latetimetype, allowlate, latepenaltytype, jobsettingsdata, score_open, Showupdateinstructions
+ , homework_id
+ } = this.state;
+ const radioStyle = {
+ display: 'block',
+ height: '30px',
+ lineHeight: '30px',
+ };
+ const formItemLayout = {
+ labelCol: {span: 6},
+ wrapperCol: {span: 14},
+ };
+ let coursesId = this.props.match.params.coursesId;
+
+
+ return (
+
+ {this.state.showmodel === true ?
this.hideshowmodel()}
+ updatas={() => this.isupdatas()}
+ /> : ""}
+ {/*立即发布*/}
+ this.getcourse_groupslist(id)}
+ starttimes={this.state.starttimes}
+ typs={this.state.typs}
+ />
+
+
+
+ {jobsettingsdata === undefined ? "" : jobsettingsdata.data.course_name}
+ >
+ {jobsettingsdata === undefined ? "" : jobsettingsdata.data.category.category_name}
+ >
+ 作业详情
+
+
+
+
+ {jobsettingsdata === undefined ? "" : jobsettingsdata.data.homework_name}
+
+
+
返回
+
实训详情
+
+
+
+
+
+
+ {this.props.isAdmin() === true ?
作品列表 :
+
作品列表
+ // :
作品列表(学生完成)
+ }
+
+
作业问答
+ {this.props.isAdmin() ?
+ this.state.code_review === true || jobsettingsdata === undefined ? [""] : jobsettingsdata.data.homework_status[0] === "未发布" ? "" :
+
+ 代码查重 : ""}
+
+
设置
+ {/*
导出成绩*/}
+
+ {this.props.isAdmin() ?
+
+ 导出
+
+ : ""}
+ {this.props.isAdmin() ? jobsettingsdata && jobsettingsdata.data.end_immediately === true ?
+
立即截止 : "" : ""}
+ {this.props.isAdmin() ? jobsettingsdata && jobsettingsdata.data.publish_immediately === true ?
+
立即发布 : "" : ""}
+
+
+ {this.props.isAdmin() ?
+ this.state.code_review === true ?
+
代码查重
+ : "" : ""}
+
+
+
+
+ {jobsettingsdata === undefined || jobsettingsdata.data.description === null ? "无" :
+
{/* /!*{jobsettingsdata.data.description}*!/*/}
- {/*
*/}
+ {/*
*/}
- {/*
*/}
- {/*
*/}
- {/* /!*{ChallengesDataList === undefined ? "" :ChallengesDataList.description===null?""*!/*/}
- {/* */}
- {/* /!*}*!/*/}
- {/*
*/}
-
- {/*
*/}
+ {/*
*/}
+ {/*
*/}
+ {/* /!*{ChallengesDataList === undefined ? "" :ChallengesDataList.description===null?""*!/*/}
+ {/* */}
+ {/* /!*}*!/*/}
+ {/*
*/}
+
+ {/*
*/}
-
}
-
-
-
作业说明:
- {
- this.props.isAdmin()&&this.props.isAdmin()===true ?
-
- (Showupdateinstructions&& Showupdateinstructions === true?"":
-
this.jobdescriptiondisplaybj()} >
- ):""
- }
-
-
-
-
-
- { Showupdateinstructions&& Showupdateinstructions === true?
-
-
-
- :
-
- {jobsettingsdata === undefined ? "无" : jobsettingsdata === null ? "无" : jobsettingsdata === "null" ? "无" :
- jobsettingsdata.data.explanation=== undefined?"无" :jobsettingsdata.data.explanation=== null?"无":
-
- }
-
-
- }
+
}
+
+
+
作业说明:
+ {
+ this.props.isAdmin() && this.props.isAdmin() === true ?
+
+ (Showupdateinstructions && Showupdateinstructions === true ? "" :
+
this.jobdescriptiondisplaybj()}>
+ ) : ""
+ }
+
+
+
+
+
+ {Showupdateinstructions && Showupdateinstructions === true ?
+
+
+
+ :
+
+ {jobsettingsdata === undefined ? "无" : jobsettingsdata === null ? "无" : jobsettingsdata === "null" ? "无" :
+ jobsettingsdata.data.explanation === undefined ? "无" : jobsettingsdata.data.explanation === null ? "无" :
+
+ }
+
+
+ }
-
-{/* */}
- {/*
*/}
- {/**/}
- {/*
*/}
- {/*{ Showupdateinstructions&& Showupdateinstructions === true?*/}
- {/*
*/}
- {/* */}
- {/*
*/}
- {/* :""*/}
- {/*}*/}
- { homework_id &&
- }
-
-
-