issues25489
杨树明 5 years ago
parent a11617e6d3
commit d3193f045a

@ -120,9 +120,9 @@ class ExerciseNewCommon extends Component{
componentDidMount = () => { componentDidMount = () => {
this.fetchExercise() this.fetchExercise()
} }
handleSubmit = (e) => { // handleSubmit = (e) => {
//
} // }
onSaveExercise = () => { onSaveExercise = () => {
const { exercise_name, exercise_description } = this.state; const { exercise_name, exercise_description } = this.state;
const exercise_id = this.props.match.params.Id const exercise_id = this.props.match.params.Id
@ -472,7 +472,9 @@ class ExerciseNewCommon extends Component{
></div> ></div>
</div>} </div>}
{this.state.editMode && <Form {...formItemLayout} onSubmit={this.handleSubmit}> {this.state.editMode && <Form {...formItemLayout}
// onSubmit={this.handleSubmit}
>
<div className="formBlock" style={{paddingBottom: '2px',borderBottom:"none"}}> <div className="formBlock" style={{paddingBottom: '2px',borderBottom:"none"}}>
<Form.Item <Form.Item
label="试卷标题" label="试卷标题"

@ -292,7 +292,7 @@ class Testpapersettinghomepage extends Component{
const isStudent = this.props.isStudent(); const isStudent = this.props.isStudent();
// TODO // TODO
// console.log(Commonheadofthetestpaper.exercise_status); //console.log(Commonheadofthetestpaper.exercise_status);
document.title=this.props.coursedata&&this.props.coursedata.name; document.title=this.props.coursedata&&this.props.coursedata.name;
return( return(
<div className="newMain clearfix "> <div className="newMain clearfix ">
@ -411,7 +411,7 @@ class Testpapersettinghomepage extends Component{
</div> </div>
{ {
isAdmin === true &&Commonheadofthetestpaper && Commonheadofthetestpaper.user_permission.user_commit_counts>0? isAdmin === true &&Commonheadofthetestpaper && Commonheadofthetestpaper.user_permission.user_commit_counts>0&&Commonheadofthetestpaper.exercise_status===2?
<a className="fr color-blue font-16 mt20 mr20" onClick={this.Ecerciseacallagain}>打回重做</a>:"" <a className="fr color-blue font-16 mt20 mr20" onClick={this.Ecerciseacallagain}>打回重做</a>:""
} }

@ -218,7 +218,7 @@ class Bullsubdirectory extends Component{
const {getFieldDecorator} = this.props.form; const {getFieldDecorator} = this.props.form;
// console.log("Bullsubdirectory"); // console.log("Bullsubdirectory");
// console.log(this.props.isAdmin()); // console.log(this.props.isAdmin());
// console.log(this.props.yslbool); // console.log(this.props);
return( return(
<React.Fragment > <React.Fragment >
<div > <div >
@ -274,7 +274,7 @@ class Bullsubdirectory extends Component{
</div> </div>
<div id="MakedownHTML"className="markdown-body fonttext yslmtopcg yslminHeigth markdownysltext" dangerouslySetInnerHTML={{__html: markdownToHTML(mydescription).replace(/▁/g, "▁▁▁")}}/> <div id="MakedownHTML"className="markdown-body fonttext yslmtopcg yslminHeigth markdownysltext" dangerouslySetInnerHTML={{__html: markdownToHTML(mydescription).replace(/▁/g, "▁▁▁")}}/>
</div> </div>
<div className="bor-bottom-greyE mr25 ml25"></div> {parseInt(this.props&&this.props.informs.length)===parseInt(this.props&&this.props.index+1)?"":<div className="bor-bottom-greyE mr25 ml25"></div>}
</div> </div>
: :
<div className="edu-back-white "> <div className="edu-back-white ">

@ -493,7 +493,7 @@ class Eduinforms extends Component{
<div className="edu-back-white "> <div className="edu-back-white ">
{ informs&&informs.map((item, index) => { { informs&&informs.map((item, index) => {
return ( return (
<Bullsubdirectory {...this.state} {...this.props} key={index} yslbool={yslbool} id={item.id} myname={item.name} mydescription={item.description} <Bullsubdirectory {...this.state} {...this.props} key={index} index={index} yslbool={yslbool} id={item.id} myname={item.name} mydescription={item.description}
getyslbooltrue={()=>this.getyslbooltrue()} getyslbooltrue={()=>this.getyslbooltrue()}
getyslboolfalse={()=>this.getyslboolfalse()} getyslboolfalse={()=>this.getyslboolfalse()}
getinputdata={()=>this.getinputdata()} ></Bullsubdirectory> getinputdata={()=>this.getinputdata()} ></Bullsubdirectory>

Loading…
Cancel
Save