diff --git a/public/react/src/modules/courses/exercise/ExerciseNewCommon.js b/public/react/src/modules/courses/exercise/ExerciseNewCommon.js index 609a88884..f2b6ae0cc 100644 --- a/public/react/src/modules/courses/exercise/ExerciseNewCommon.js +++ b/public/react/src/modules/courses/exercise/ExerciseNewCommon.js @@ -610,6 +610,8 @@ class ExerciseNewCommon extends Component{ {/* <i className="iconfont icon-tianjiafangda color-white font-14 mr5" style={{ marginTop: '-1px', display: 'inline-block'}}></i> */} 试卷预览 </ActionBtn>} + + {this.props.bottomSection && this.props.bottomSection} </div>} </div> </React.Fragment> diff --git a/public/react/src/modules/user/usersInfo/banks/ExerciseBanksEdit.js b/public/react/src/modules/user/usersInfo/banks/ExerciseBanksEdit.js index 7ab9aedec..723761277 100644 --- a/public/react/src/modules/user/usersInfo/banks/ExerciseBanksEdit.js +++ b/public/react/src/modules/user/usersInfo/banks/ExerciseBanksEdit.js @@ -1,5 +1,6 @@ import React, { Component } from 'react'; import axios from 'axios' +import { ActionBtn } from 'educoder' import ExerciseNewCommon from '../../../courses/exercise/ExerciseNewCommon' @@ -32,7 +33,7 @@ class ExerciseBanksEdit extends Component { } render(){ - let { workId } = this.props.match.params + let { Id, type } = this.props.match.params const common = { // onCancel:this.onCancel, // isGroup: this.isGroup, @@ -59,6 +60,9 @@ class ExerciseBanksEdit extends Component { shixunsUrl={`/exercise_banks/choose_shixun.json`} exercise_url={'exercise_banks'} exercise_url_questions={'exercise_bank_questions'} + bottomSection={<ActionBtn style="blue" className="fr" to={`/banks/exercise/${Id}/${this.props.match.params.type}`}> + 完成 + </ActionBtn>} ></ExerciseNewCommon> </div> )