dev_home
杨树林 5 years ago
parent be668f5b5f
commit 139ba4f5e3

@ -713,6 +713,7 @@ class Exercisesetting extends Component{
course_group={course_group}
flagPageEdit={flagPageEdit}
rulesCheckInfo={(info)=>this.rulesCheckInfo(info)}
Commonheadofthetestpaper
></PollDetailTabForthRules>
}
</div>

@ -475,7 +475,7 @@ class Testpapersettinghomepage extends Component{
}
{
parseInt(tab[0])==3 ? <WrappedExercisesetting {...this.props} {...this.state} triggerRef={this.bindRef}></WrappedExercisesetting>:""
parseInt(tab[0])==3 ? <WrappedExercisesetting Commonheadofthetestpaper={this.state.Commonheadofthetestpaper} {...this.props} {...this.state} triggerRef={this.bindRef}></WrappedExercisesetting>:""
}
</div>
</div>
@ -483,4 +483,4 @@ class Testpapersettinghomepage extends Component{
}
}
export default Testpapersettinghomepage;
export default Testpapersettinghomepage;

@ -478,7 +478,24 @@ class PollDetailTabForthRules extends Component{
{rule.p_timeflag===undefined?r > 0&&rule.publish_time===null?<Tooltip title="删除">
<a className="mr20" onClick={()=>this.removeRules(`${r}`)}><i className="iconfont icon-shanchu color-grey-9 font-18"></i></a>
</Tooltip>
:"":
:(
this.props.Commonheadofthetestpaper?
(this.props.Commonheadofthetestpaper.exercise_status===1&&r > 0?
<Tooltip title="删除">
<a className="mr20" onClick={()=>this.removeRules(`${r}`)}><i className="iconfont icon-shanchu color-grey-9 font-18"></i></a>
</Tooltip>
:"")
:this.props.teacherdatapage?
(
this.props.teacherdatapage.homework_status[0]==="未发布"&&r > 0?
<Tooltip title="删除">
<a className="mr20" onClick={()=>this.removeRules(`${r}`)}><i className="iconfont icon-shanchu color-grey-9 font-18"></i></a>
</Tooltip>
:""
):
""
):
r > 0 && rule.p_timeflag == false ?
<Tooltip title="删除">
<a className="mr20" onClick={()=>this.removeRules(`${r}`)}><i className="iconfont icon-shanchu color-grey-9 font-18"></i></a>

@ -354,7 +354,7 @@ class ShixunHomeworkPage extends Component {
{parseInt(tab) === 0 ?<Listofworksstudentone triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Listofworksstudentone>:""}
{parseInt(tab) === 1 ?<Workquestionandanswer triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)} Showupdateinstructionsboolfalse={(i)=>this.Showupdateinstructionsboolfalse(i)}></Workquestionandanswer>:""}
{parseInt(tab) === 2 ?<ShixunStudentWork triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></ShixunStudentWork>:""}
{parseInt(tab) === 3 ?<Trainingjobsetting triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Trainingjobsetting>:""}
{parseInt(tab) === 3 ?<Trainingjobsetting teacherdatapage={this.state.teacherdatapage} triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Trainingjobsetting>:""}
</Spin>
</div>
</div>

@ -2503,6 +2503,7 @@ class Trainingjobsetting extends Component {
<PollDetailTabForthRules
{...this.props}
{...this.state}
teacherdatapage={this.props.teacherdatapage}
rules={rules}
moduleName={"作业"}
course_group={rulest}

Loading…
Cancel
Save