Merge remote-tracking branch 'origin/topic_bank' into topic_bank

topic_bank
杨树明 6 years ago
commit 90e0bda9b6

@ -436,6 +436,7 @@ class ExerciseNewCommon extends Component{
getAddQuestionUrl: this.getAddQuestionUrl, getAddQuestionUrl: this.getAddQuestionUrl,
getEditQuestionUrl: this.getEditQuestionUrl, getEditQuestionUrl: this.getEditQuestionUrl,
exercise_url: this.props.exercise_url,
} }
return( return(
<React.Fragment> <React.Fragment>

@ -156,10 +156,10 @@ class ShixunEditor extends Component{
this.props.onEditorCancel() this.props.onEditorCancel()
} }
componentDidMount = () => { componentDidMount = () => {
const { shixun_id } = this.props; const { shixun_id, exercise_url } = this.props;
// shixun_id // shixun_id
const Id = this.props.match.params.Id const Id = this.props.match.params.Id
const url = `/exercises/${Id}/commit_shixun.json` const url = `/${exercise_url || 'exercises'}/${Id}/commit_shixun.json`
axios.get(url, { axios.get(url, {
params: { params: {
shixun_id shixun_id

@ -111,7 +111,7 @@ class BanksMenu extends Component{
// console.log("banksMenubanksMenubanksMenubanksMenu"); // console.log("banksMenubanksMenubanksMenubanksMenu");
// console.log(banksMenu); // console.log(banksMenu);
return( return(
<div className="clearfix bor-bottom-greyE edu-back-white" style={{padding:"2px 30px"}}> <div className="clearfix bor-bottom-greyE edu-back-white" style={{padding:"0px 30px"}}>
{this.state.Modalstype&&this.state.Modalstype===true?<Modals {this.state.Modalstype&&this.state.Modalstype===true?<Modals
modalsType={this.state.Modalstype} modalsType={this.state.Modalstype}
modalsTopval={this.state.Modalstopval} modalsTopval={this.state.Modalstopval}

Loading…
Cancel
Save