+ {this.state.Chongzuomodeltype===true?
this.hideChongzuomodeltype()}
+ Isupdatass={()=>this.Isupdatass()}
+ />:""}
+
{visible === true ? this.cancelModulationModel()}
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js b/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js
index 454b11c6f..6534eea5e 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js
@@ -22,6 +22,7 @@ import "../common/formCommon.css";
import '../css/Courses.css';
import './style.css';
import 'moment/locale/zh-cn';
+import Chongzuomodel from "./Chongzuomodel";
class ShixunWorkReport extends Component {
@@ -39,7 +40,12 @@ class ShixunWorkReport extends Component {
work_comment:undefined,
has_commit: false,
shixun_detail:[],
- view_tpi:false
+ view_tpi:false,
+ myshixun_id:undefined,
+ myshixun_identifier:undefined,
+ homework_end:undefined,
+ chongzuoId:undefined,
+ Chongzuomodeltype:false
}
}
@@ -117,7 +123,10 @@ class ShixunWorkReport extends Component {
spinning: false,
has_commit: result.data.has_commit,
shixun_detail:result.data.shixun_detail,
- view_tpi:result.data.view_tpi
+ view_tpi:result.data.view_tpi,
+ myshixun_id:result.data.myshixun_id,
+ myshixun_identifier:result.data.myshixun_identifier,
+ homework_end:result.data.homework_end,
})
}
@@ -308,8 +317,22 @@ class ShixunWorkReport extends Component {
}
}
+
+ Backtoredo=(id)=>{
+ this.setState({
+ chongzuoId:id,
+ Chongzuomodeltype:true
+ })
+ }
+
+ hideChongzuomodeltype=()=>{
+ this.setState({
+ chongzuoId:undefined,
+ Chongzuomodeltype:false
+ })
+ }
render() {
- let {data, showAppraiseModaltype, work_comment_hidden, work_comment, has_commit,shixun_detail,view_tpi} = this.state;
+ let {data, showAppraiseModaltype, work_comment_hidden, work_comment, has_commit,shixun_detail,view_tpi,myshixun_id,myshixun_identifier,homework_end} = this.state;
let category_id=data===undefined?"":data.category===null?"":data.category.category_id;
let homework_common_id=data===undefined?"":data.homework_common_id;
@@ -320,10 +343,17 @@ class ShixunWorkReport extends Component {
// let showAppraiseModals=work_comment===null||work_comment===undefined?false:true;
// console.log(this.props.isAdmin())
document.title=data&&data.course_name;
-
+
return (
data===undefined?"":
+ {this.state.Chongzuomodeltype===true?this.hideChongzuomodeltype()}
+ Isupdatass={()=>this.getdatalist()}
+ />:""}
+
this.showAppraiseModal(1)}*/}
{/*>评阅 : ""}*/}
+
+ {this.props.isAdmin()?homework_end===false&&myshixun_id!=0?this.Backtoredo(myshixun_identifier)}
+ >打回重做:"":""}
+
{this.props.isAdmin() ?this.showAppraiseModal("main",undefined,work_comment,work_comment_hidden)}