|
|
|
@ -538,6 +538,7 @@ class GraduatesRequirement extends Component {
|
|
|
|
|
daChengYuZhi: response.data.calculation_value,
|
|
|
|
|
daChengYuZhiSaved: response.data.calculation_value,
|
|
|
|
|
course_ids: response.data.course_ids,
|
|
|
|
|
is_manager: response.data.is_manager,
|
|
|
|
|
calculating: false,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -583,13 +584,14 @@ class GraduatesRequirement extends Component {
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
const { match, history, current_user } = this.props
|
|
|
|
|
const { daChengYuZhiEditableMode, daChengYuZhi, daChengYuZhiSaved } = this.state
|
|
|
|
|
const { daChengYuZhiEditableMode, daChengYuZhi, daChengYuZhiSaved, is_manager } = this.state
|
|
|
|
|
let { schooldata } =this.state;
|
|
|
|
|
let { example_major, template_major } = schooldata;
|
|
|
|
|
let showCalculateButton = false;
|
|
|
|
|
if (example_major && current_user.admin || !example_major && template_major) {
|
|
|
|
|
showCalculateButton = true;
|
|
|
|
|
}
|
|
|
|
|
let showCalculateButton = is_manager;
|
|
|
|
|
// let showCalculateButton = false;
|
|
|
|
|
// if (example_major && current_user.admin || !example_major && template_major) {
|
|
|
|
|
// showCalculateButton = true;
|
|
|
|
|
// }
|
|
|
|
|
return (
|
|
|
|
|
<div className="newMain clearfix">
|
|
|
|
|
<div className="educontent mb290">
|
|
|
|
|