|
|
|
@ -158,7 +158,7 @@ class MainContentContainer extends Component {
|
|
|
|
|
|
|
|
|
|
this.showResetCodeDialog = this.showResetCodeDialog.bind(this)
|
|
|
|
|
this.showResetPassedCodeDialog = this.showResetPassedCodeDialog.bind(this)
|
|
|
|
|
|
|
|
|
|
this.mainContent = React.createRef();
|
|
|
|
|
|
|
|
|
|
this.oldRepositoryCode = '';
|
|
|
|
|
|
|
|
|
@ -177,7 +177,9 @@ class MainContentContainer extends Component {
|
|
|
|
|
isEditablePath: true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mainContentfun = (Ref) => {
|
|
|
|
|
this.mainContent = Ref;
|
|
|
|
|
}
|
|
|
|
|
// ------------------------------------------------
|
|
|
|
|
// static childContextTypes = {
|
|
|
|
|
// muiTheme: PropTypes.object
|
|
|
|
@ -589,7 +591,9 @@ class MainContentContainer extends Component {
|
|
|
|
|
onRunChooseTest() {
|
|
|
|
|
const { st, game, onRunChooseTestFinish, showSnackbar } = this.props;
|
|
|
|
|
// 获取form表单值
|
|
|
|
|
var value = this.refs.mainContent.refs.chooseQ.getForm().getFieldsValue();
|
|
|
|
|
// console.log(this.mainContent.chooseQ.props.form.getFieldsValue())
|
|
|
|
|
var value = this.mainContent.chooseQ.props.form.getFieldsValue();
|
|
|
|
|
// this.refs.mainContent.refs.chooseQ.getForm().getFieldsValue();
|
|
|
|
|
|
|
|
|
|
var valueArray = []; // map转array
|
|
|
|
|
var unSelectOptionIndexArray = [] // 自己做未选提示
|
|
|
|
@ -984,7 +988,7 @@ class MainContentContainer extends Component {
|
|
|
|
|
</Dialog>
|
|
|
|
|
|
|
|
|
|
<UpdateDrawer {...this.props} fetchRepositoryCode={this.fetchRepositoryCode}></UpdateDrawer>
|
|
|
|
|
<MainContent ref="mainContent" {...this.props} output_sets={output_sets} {...this.state}
|
|
|
|
|
<MainContent ref="mainContent" mainContentfun={(ref)=>this.mainContentfun(ref)} {...this.props} output_sets={output_sets} {...this.state}
|
|
|
|
|
onRepositoryCodeUpdate={this.onRepositoryCodeUpdate} onRunCodeTest={this.onRunCodeTest}
|
|
|
|
|
codemirrorDidMount={this.codemirrorDidMount} fetchRepositoryCode={this.fetchRepositoryCode}
|
|
|
|
|
showResetCodeDialog={this.showResetCodeDialog} showResetPassedCodeDialog={this.showResetPassedCodeDialog}
|
|
|
|
|