Merge branch 'dev_aliyun' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

issues25489
cxt 5 years ago
commit 898c43e782

@ -149,6 +149,7 @@ class GraduationTasksController < ApplicationController
else else
respond_to do |format| respond_to do |format|
format.xlsx{ format.xlsx{
set_export_cookies
graduation_work_to_xlsx(@work_excel,@task,current_user) graduation_work_to_xlsx(@work_excel,@task,current_user)
task_export_name_ = "#{current_user.real_name}_#{@course.name}_#{@task.name}_#{Time.now.strftime('%Y%m%d_%H%M%S')}" task_export_name_ = "#{current_user.real_name}_#{@course.name}_#{@task.name}_#{Time.now.strftime('%Y%m%d_%H%M%S')}"
render xlsx: "#{task_export_name_.strip}",template: "graduation_tasks/tasks_list.xlsx.axlsx",locals: {table_columns:@head_cells_column, task_users:@task_cells_column} render xlsx: "#{task_export_name_.strip}",template: "graduation_tasks/tasks_list.xlsx.axlsx",locals: {table_columns:@head_cells_column, task_users:@task_cells_column}

@ -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="试卷标题"

@ -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