dev_SaaS
hjm 6 years ago
parent e58628b38b
commit 045ac6bff7

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

Loading…
Cancel
Save