|
|
@ -92,7 +92,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
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,
|
|
|
@ -635,7 +636,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
late_penalty: parseInt(this.state.latededuction), //迟交扣分
|
|
|
|
late_penalty: parseInt(this.state.latededuction), //迟交扣分
|
|
|
|
late_time: moment(this.state.late_time).format('YYYY-MM-DD HH:mm'), //结束时间
|
|
|
|
late_time: moment(this.state.late_time).format('YYYY-MM-DD HH:mm'), //结束时间
|
|
|
|
answer_open_evaluation: this.state.level === "满分" ? true : false, //扣分项
|
|
|
|
answer_open_evaluation: this.state.level === "满分" ? true : false, //扣分项
|
|
|
|
work_efficiency: this.state.completionefficiencyscore, //完成效率评分占比
|
|
|
|
work_efficiency: this.state.work_efficiencys, //完成效率评分占比
|
|
|
|
eff_score: this.state.completionefficiencyscore === true ? this.state.latedeductiontwo : undefined,//占比分
|
|
|
|
eff_score: this.state.completionefficiencyscore === true ? this.state.latedeductiontwo : undefined,//占比分
|
|
|
|
shixun_evaluation: this.state.proportion === "均分比例" ? 0 : this.state.proportion === "经验值比例" ? 1 : this.state.proportion === "自定义分值" ? 2 : 0,
|
|
|
|
shixun_evaluation: this.state.proportion === "均分比例" ? 0 : this.state.proportion === "经验值比例" ? 1 : this.state.proportion === "自定义分值" ? 2 : 0,
|
|
|
|
challenge_settings: array,
|
|
|
|
challenge_settings: array,
|
|
|
@ -660,6 +661,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
flagPageEditsthrees:false,
|
|
|
|
flagPageEditsthrees:false,
|
|
|
|
flagPageEditsfor:false,
|
|
|
|
flagPageEditsfor:false,
|
|
|
|
whethertopay:false,
|
|
|
|
whethertopay:false,
|
|
|
|
|
|
|
|
completionefficiencyscore:false,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.refs.targetElementTrainingjobsetting.scrollIntoView()
|
|
|
|
this.refs.targetElementTrainingjobsetting.scrollIntoView()
|
|
|
|
|
|
|
|
|
|
|
@ -1004,6 +1006,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
this.state.latedeductiontwo=20;
|
|
|
|
this.state.latedeductiontwo=20;
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
completionefficiencyscore: e.target.checked,
|
|
|
|
completionefficiencyscore: e.target.checked,
|
|
|
|
|
|
|
|
work_efficiencys:e.target.checked,
|
|
|
|
latedeductiontwo: 20,
|
|
|
|
latedeductiontwo: 20,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
//均分比例
|
|
|
|
//均分比例
|
|
|
@ -1020,6 +1023,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
this.state.latedeductiontwo=0;
|
|
|
|
this.state.latedeductiontwo=0;
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
completionefficiencyscore: e.target.checked,
|
|
|
|
completionefficiencyscore: e.target.checked,
|
|
|
|
|
|
|
|
work_efficiencys:e.target.checked,
|
|
|
|
latedeductiontwo: 0,
|
|
|
|
latedeductiontwo: 0,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
//均分比例
|
|
|
|
//均分比例
|
|
|
@ -1068,7 +1072,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
// //占比分
|
|
|
|
// //占比分
|
|
|
|
changeTopicNametwo = (value) => {
|
|
|
|
changeTopicNametwo = (value) => {
|
|
|
|
// console.log("2e.target.value", value)
|
|
|
|
// console.log("TrainingjobsettingTrainingjobsetting", value)
|
|
|
|
if (value === "" || value === undefined) {
|
|
|
|
if (value === "" || value === undefined) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1703,7 +1707,6 @@ class Trainingjobsetting extends Component {
|
|
|
|
flagPageEditsthrees:deadline,
|
|
|
|
flagPageEditsthrees:deadline,
|
|
|
|
flagPageEditsfor:endtime,
|
|
|
|
flagPageEditsfor:endtime,
|
|
|
|
completionefficiencyscore:true,
|
|
|
|
completionefficiencyscore:true,
|
|
|
|
latedeductiontwo:20,
|
|
|
|
|
|
|
|
unifiedsetting:this.state.unifiedsetting,
|
|
|
|
unifiedsetting:this.state.unifiedsetting,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
if(this.state.proportion === "自定义分值"){
|
|
|
|
if(this.state.proportion === "自定义分值"){
|
|
|
@ -1852,7 +1855,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 = {
|
|
|
@ -1880,6 +1883,8 @@ 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(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
|
|
|
@ -2134,7 +2139,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>
|
|
|
|