调整实训作业

dev_cxt
杨树明 5 years ago
parent b30885da7e
commit 972fd53767

@ -157,9 +157,9 @@ class Trainingjobsetting extends Component {
this.props.triggerRef(this);
if (this.props.isAdmin() === false) {
this.cancelEdit()
}
// if (this.props.isAdmin() === false) {
// this.cancelEdit()
// }
}
// componentWillReceiveProps(nextProps) {
@ -383,6 +383,10 @@ class Trainingjobsetting extends Component {
}
let max = latedeductiontwos + len;
let maxs = max.toFixed(1);
// console.log(1)
// console.log(maxs)
this.setState({
CalculateMax: maxs,
})
@ -1212,7 +1216,8 @@ class Trainingjobsetting extends Component {
}
//总比分
Totalscorecalculation = (value) => {
debugger
// console.log(2)
// console.log(value)
this.setState({
CalculateMax: value,
})
@ -2168,6 +2173,9 @@ class Trainingjobsetting extends Component {
})
this.refs.targetElementTrainingjobsetting.scrollIntoView();
this.getTrainingjobsetting(false);
// console.log(3)
// console.log(this.state.total_scoretwo)
this.setState({
CalculateMax:this.state.total_scoretwo,
})
@ -2311,7 +2319,7 @@ class Trainingjobsetting extends Component {
// console.log(this.props.isAdmin())
// console.log(this.state.code_review===false)
// console.log("引入的分值");
// console.log(this.state.work_efficiencys);
// console.log(this.state.CalculateMax);
return (

Loading…
Cancel
Save