调整评阅

schedule_job
杨树明 5 years ago
parent 603b3dd270
commit 96928934cf

@ -91,6 +91,7 @@
"react-router-dom": "^4.2.2", "react-router-dom": "^4.2.2",
"react-split-pane": "^0.1.89", "react-split-pane": "^0.1.89",
"react-url-query": "^1.4.0", "react-url-query": "^1.4.0",
"react-zmage": "^0.8.5-beta.31",
"redux": "^4.0.0", "redux": "^4.0.0",
"redux-thunk": "2.3.0", "redux-thunk": "2.3.0",
"rsuite": "^4.0.1", "rsuite": "^4.0.1",

@ -46,7 +46,7 @@ debugType = "admin";
// 老师 // 老师
// debugType="teacher"; // debugType="teacher";
// 学生 // 学生
debugType="student"; // debugType="student";

@ -107,6 +107,15 @@ class CommonWorkAppraise extends Component{
} }
gotoget_next_work=(id)=>{ gotoget_next_work=(id)=>{
if(this.props.match.path===`/classrooms/:coursesId/common_homework/:workId/:studentWorkId/appraise`){
this.props.history.replace(`/classrooms/${this.props.match.params.coursesId}/common_homeworks/${this.props.match.params.workId}/${id}/appraise`);
}
if(this.props.match.path===`/classrooms/:coursesId/group_homework/:workId/:studentWorkId/appraise`){
this.props.history.replace(`/classrooms/${this.props.match.params.coursesId}/common_homeworks/${this.props.match.params.workId}/${id}/appraise`);
}
if(this.props.match.path===`/classrooms/:coursesId/common_homeworks/:workId/:studentWorkId/appraise`){ if(this.props.match.path===`/classrooms/:coursesId/common_homeworks/:workId/:studentWorkId/appraise`){
this.props.history.replace(`/classrooms/${this.props.match.params.coursesId}/common_homeworks/${this.props.match.params.workId}/${id}/appraise`); this.props.history.replace(`/classrooms/${this.props.match.params.coursesId}/common_homeworks/${this.props.match.params.workId}/${id}/appraise`);
} }
@ -114,6 +123,7 @@ class CommonWorkAppraise extends Component{
if(this.props.match.path===`/classrooms/:coursesId/group_homeworks/:workId/:studentWorkId/appraise`){ if(this.props.match.path===`/classrooms/:coursesId/group_homeworks/:workId/:studentWorkId/appraise`){
this.props.history.replace(`/classrooms/${this.props.match.params.coursesId}/common_homeworks/${this.props.match.params.workId}/${id}/appraise`); this.props.history.replace(`/classrooms/${this.props.match.params.coursesId}/common_homeworks/${this.props.match.params.workId}/${id}/appraise`);
} }
this.setState({ this.setState({
get_next_worktype:false get_next_worktype:false
}) })

@ -1,22 +1,18 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import ReactDOM from 'react-dom' import ReactDOM from 'react-dom'
import { Redirect } from 'react-router';
import PropTypes from 'prop-types';
import Rate from 'rc-rate';
import './TaskResultLayer.css' import './TaskResultLayer.css'
class ImageLayer extends Component { class ImageLayer extends Component {
render() { render() {
let { showImage, imageSrc, onImageLayerClose } = this.props; let { showImage, imageSrc, onImageLayerClose } = this.props;
// 语法介绍 https://reactjs.org/docs/portals.html // 语法介绍 https://reactjs.org/docs/portals.html
// 将html渲染都指定的element下 // 将html渲染都指定的element下
return ReactDOM.createPortal( return ReactDOM.createPortal(
<div> <div>
{showImage ? {showImage ?
<div className="taskResultLayer" onClick={onImageLayerClose} style={{overflow: 'auto'}}> <div className="taskResultLayer" onClick={onImageLayerClose} style={{overflow: 'auto'}}>
<div className="passContent"> <div className="passContent">
<img src={ imageSrc } className="passImg" unselectable="on" alt=""/> <img src={ imageSrc } className="passImg" unselectable="on" alt=""/>

Loading…
Cancel
Save