|
|
@ -86,13 +86,13 @@ class Trainingjobsetting extends Component {
|
|
|
|
latepenaltytype: false,
|
|
|
|
latepenaltytype: false,
|
|
|
|
unifiedsetting: true,
|
|
|
|
unifiedsetting: true,
|
|
|
|
allowreplenishment: undefined,
|
|
|
|
allowreplenishment: undefined,
|
|
|
|
completionefficiencyscore: true,
|
|
|
|
completionefficiencyscore: false,
|
|
|
|
whethertopay: false,
|
|
|
|
whethertopay: false,
|
|
|
|
proportion: undefined,
|
|
|
|
proportion: undefined,
|
|
|
|
level: undefined,
|
|
|
|
level: undefined,
|
|
|
|
ealuation: false,
|
|
|
|
ealuation: false,
|
|
|
|
latededuction: undefined,
|
|
|
|
latededuction: undefined,
|
|
|
|
latedeductiontwo: "20",
|
|
|
|
latedeductiontwo: "0",
|
|
|
|
database: false,
|
|
|
|
database: false,
|
|
|
|
datasheet: false,
|
|
|
|
datasheet: false,
|
|
|
|
databasetwo: undefined,
|
|
|
|
databasetwo: undefined,
|
|
|
@ -123,6 +123,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
end_timebool:false,
|
|
|
|
end_timebool:false,
|
|
|
|
late_timesbool:false,
|
|
|
|
late_timesbool:false,
|
|
|
|
|
|
|
|
work_efficiencys:false,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// console.log("获取到的值")
|
|
|
|
// console.log("获取到的值")
|
|
|
|
// console.log("Trainingjobsetting")
|
|
|
|
// console.log("Trainingjobsetting")
|
|
|
@ -284,7 +285,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
allowreplenishment: result.data.allow_late,
|
|
|
|
allowreplenishment: result.data.allow_late,
|
|
|
|
latededuction: result.data.late_penalty,
|
|
|
|
latededuction: result.data.late_penalty,
|
|
|
|
level: result.data.answer_open_evaluation === true ? "满分" : "扣分",
|
|
|
|
level: result.data.answer_open_evaluation === true ? "满分" : "扣分",
|
|
|
|
completionefficiencyscore: result.data.work_efficiency,
|
|
|
|
work_efficiencys: result.data.work_efficiency,
|
|
|
|
latedeductiontwo: result.data.eff_score,
|
|
|
|
latedeductiontwo: result.data.eff_score,
|
|
|
|
proportion: result.data.shixun_evaluation === 0 ? "均分比例" : result.data.shixun_evaluation === 1 ? "经验值比例" : result.data.shixun_evaluation === 2 ? "自定义分值" : "",
|
|
|
|
proportion: result.data.shixun_evaluation === 0 ? "均分比例" : result.data.shixun_evaluation === 1 ? "经验值比例" : result.data.shixun_evaluation === 2 ? "自定义分值" : "",
|
|
|
|
publicwork: result.data.work_public,
|
|
|
|
publicwork: result.data.work_public,
|
|
|
@ -660,7 +661,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
flagPageEditsthrees:false,
|
|
|
|
flagPageEditsthrees:false,
|
|
|
|
flagPageEditsfor:false,
|
|
|
|
flagPageEditsfor:false,
|
|
|
|
whethertopay:false,
|
|
|
|
whethertopay:false,
|
|
|
|
completionefficiencyscore:true,
|
|
|
|
completionefficiencyscore:false,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.refs.targetElementTrainingjobsetting.scrollIntoView()
|
|
|
|
this.refs.targetElementTrainingjobsetting.scrollIntoView()
|
|
|
|
|
|
|
|
|
|
|
@ -1703,7 +1704,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
flagPageEditstwo:releasetime,
|
|
|
|
flagPageEditstwo:releasetime,
|
|
|
|
flagPageEditsthrees:deadline,
|
|
|
|
flagPageEditsthrees:deadline,
|
|
|
|
flagPageEditsfor:endtime,
|
|
|
|
flagPageEditsfor:endtime,
|
|
|
|
completionefficiencyscore:true,
|
|
|
|
completionefficiencyscore:false,
|
|
|
|
unifiedsetting:this.state.unifiedsetting,
|
|
|
|
unifiedsetting:this.state.unifiedsetting,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
if(this.state.proportion === "自定义分值"){
|
|
|
|
if(this.state.proportion === "自定义分值"){
|
|
|
@ -1852,7 +1853,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const dataformat = 'YYYY-MM-DD HH:mm';
|
|
|
|
const dataformat = 'YYYY-MM-DD HH:mm';
|
|
|
|
let {flagPageEdit,testscripttiptype,publish_timebool,end_timebool,late_timesbool,flagPageEdits,flagPageEditstwo,flagPageEditsbox,whethertopay,handclass,flagPageEditsthrees, flagPageEditsfor,rules,rulest,unifiedsetting,group_settings, course_group,unit_e_tip, borreds,borredss,unit_p_tip, end_time, late_time, score_open, publish_time, starttimetype, modalsType, modalsTopval, loadtype, modalSave, endtimetype, latetimetype, allowlate, latepenaltytype, jobsettingsdata, endOpen, mystyle, mystyles} = this.state;
|
|
|
|
let {flagPageEdit,testscripttiptype,publish_timebool,end_timebool,late_timesbool,work_efficiencys,flagPageEdits,flagPageEditstwo,flagPageEditsbox,whethertopay,handclass,flagPageEditsthrees, flagPageEditsfor,rules,rulest,unifiedsetting,group_settings, course_group,unit_e_tip, borreds,borredss,unit_p_tip, end_time, late_time, score_open, publish_time, starttimetype, modalsType, modalsTopval, loadtype, modalSave, endtimetype, latetimetype, allowlate, latepenaltytype, jobsettingsdata, endOpen, mystyle, mystyles} = this.state;
|
|
|
|
console.log(publish_timebool);
|
|
|
|
console.log(publish_timebool);
|
|
|
|
console.log(!flagPageEditstwo);
|
|
|
|
console.log(!flagPageEditstwo);
|
|
|
|
const radioStyle = {
|
|
|
|
const radioStyle = {
|
|
|
@ -1881,7 +1882,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
// console.log(this.props.isAdmin())
|
|
|
|
// console.log(this.props.isAdmin())
|
|
|
|
// console.log(this.state.code_review===false)
|
|
|
|
// console.log(this.state.code_review===false)
|
|
|
|
console.log("引入的分值");
|
|
|
|
console.log("引入的分值");
|
|
|
|
console.log(this.state.completionefficiencyscore);
|
|
|
|
console.log(this.state.work_efficiencys);
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className=" clearfix " ref='targetElementTrainingjobsetting' style={{margin: "auto", minWidth:"1200px"}}>
|
|
|
|
<div className=" clearfix " ref='targetElementTrainingjobsetting' style={{margin: "auto", minWidth:"1200px"}}>
|
|
|
|
{this.state.showmodel===true?<ShixunWorkModal
|
|
|
|
{this.state.showmodel===true?<ShixunWorkModal
|
|
|
@ -2136,7 +2137,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
<div className=" clearfix edu-back-white poll_list mt10" style={{marginLeft:" 40px"}}>
|
|
|
|
<div className=" clearfix edu-back-white poll_list mt10" style={{marginLeft:" 40px"}}>
|
|
|
|
<Checkbox disabled={!flagPageEdit} className=" font-13 mt10"
|
|
|
|
<Checkbox disabled={!flagPageEdit} className=" font-13 mt10"
|
|
|
|
onChange={this.onChangeeffectiveness}
|
|
|
|
onChange={this.onChangeeffectiveness}
|
|
|
|
checked={this.state.completionefficiencyscore} style={{"color":"#666666"}}>效率分<span
|
|
|
|
checked={this.state.work_efficiencys} style={{"color":"#666666"}}>效率分<span
|
|
|
|
className={"font-14 color-grey-c font-14 ml15"} style={{"text-align":"left"}}>(选中,则学生最终成绩包含效率分)</span>
|
|
|
|
className={"font-14 color-grey-c font-14 ml15"} style={{"text-align":"left"}}>(选中,则学生最终成绩包含效率分)</span>
|
|
|
|
</Checkbox>
|
|
|
|
</Checkbox>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|