|
|
@ -78,6 +78,17 @@ export function RouteHOC(options = {}) {
|
|
|
|
window.open(`/courses/${_courseId}/${secondName}/${_workId}/${_studentWorkId}/appraise`);
|
|
|
|
window.open(`/courses/${_courseId}/${secondName}/${_workId}/${_studentWorkId}/appraise`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
toWorkDetailPage2 = (e, _courseId, _workId, _studentWorkId) => {
|
|
|
|
|
|
|
|
const secondName = this.getModuleName()
|
|
|
|
|
|
|
|
if (typeof _courseId == "object") {
|
|
|
|
|
|
|
|
const workId = _courseId.workId
|
|
|
|
|
|
|
|
const courseId = _courseId.coursesId
|
|
|
|
|
|
|
|
const studentWorkId = _courseId.studentWorkId
|
|
|
|
|
|
|
|
window.open(`/courses/${courseId}/${secondName}/${_workId || workId}/${_studentWorkId || studentWorkId}/appraise`);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
window.open(`/courses/${_courseId}/${secondName}/${_workId}/${_studentWorkId}/appraise`);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
toNewPage = (courseId) => {
|
|
|
|
toNewPage = (courseId) => {
|
|
|
|
const secondName = this.getModuleName()
|
|
|
|
const secondName = this.getModuleName()
|
|
|
|
this.props.history.push(`/courses/${courseId.coursesId}/${secondName}/${courseId.category_id}/new`)
|
|
|
|
this.props.history.push(`/courses/${courseId.coursesId}/${secondName}/${courseId.category_id}/new`)
|
|
|
@ -149,7 +160,6 @@ export function RouteHOC(options = {}) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
const { snackbarOpen} = this.state;
|
|
|
|
const { snackbarOpen} = this.state;
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|