完成按钮

dev_aliyun_beta
hjm 6 years ago
parent 83e46c8b43
commit 22e82c3583

@ -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> */} {/* <i className="iconfont icon-tianjiafangda color-white font-14 mr5" style={{ marginTop: '-1px', display: 'inline-block'}}></i> */}
试卷预览 试卷预览
</ActionBtn>} </ActionBtn>}
{this.props.bottomSection && this.props.bottomSection}
</div>} </div>}
</div> </div>
</React.Fragment> </React.Fragment>

@ -1,5 +1,6 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import axios from 'axios' import axios from 'axios'
import { ActionBtn } from 'educoder'
import ExerciseNewCommon from '../../../courses/exercise/ExerciseNewCommon' import ExerciseNewCommon from '../../../courses/exercise/ExerciseNewCommon'
@ -32,7 +33,7 @@ class ExerciseBanksEdit extends Component {
} }
render(){ render(){
let { workId } = this.props.match.params let { Id, type } = this.props.match.params
const common = { const common = {
// onCancel:this.onCancel, // onCancel:this.onCancel,
// isGroup: this.isGroup, // isGroup: this.isGroup,
@ -59,6 +60,9 @@ class ExerciseBanksEdit extends Component {
shixunsUrl={`/exercise_banks/choose_shixun.json`} shixunsUrl={`/exercise_banks/choose_shixun.json`}
exercise_url={'exercise_banks'} exercise_url={'exercise_banks'}
exercise_url_questions={'exercise_bank_questions'} exercise_url_questions={'exercise_bank_questions'}
bottomSection={<ActionBtn style="blue" className="fr" to={`/banks/exercise/${Id}/${this.props.match.params.type}`}>
完成
</ActionBtn>}
></ExerciseNewCommon> ></ExerciseNewCommon>
</div> </div>
) )

Loading…
Cancel
Save