调整实训作业

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

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

Loading…
Cancel
Save