|
|
|
@ -27,7 +27,6 @@ import JudquestionEditor from "../question/component/JudquestionEditor";
|
|
|
|
|
class Paperlibraryeditid extends Component {
|
|
|
|
|
constructor(props) {
|
|
|
|
|
super(props);
|
|
|
|
|
this.contentMdRef = React.createRef();
|
|
|
|
|
this.Judquestio = React.createRef();
|
|
|
|
|
this.state = {
|
|
|
|
|
paperlibrartdata: [],
|
|
|
|
@ -41,6 +40,8 @@ class Paperlibraryeditid extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getJudquestio = (Ref) => {
|
|
|
|
|
console.log("子组件对象");
|
|
|
|
|
console.log(Ref);
|
|
|
|
|
this.Judquestio = Ref;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -163,7 +164,7 @@ class Paperlibraryeditid extends Component {
|
|
|
|
|
.then((result) => {
|
|
|
|
|
if (result.data.status === 0) {
|
|
|
|
|
this.props.showNotification(`试卷更新成功`);
|
|
|
|
|
this.props.history.replace('./paperlibrary');
|
|
|
|
|
this.props.history.push('/paperlibrary');
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error);
|
|
|
|
@ -213,7 +214,7 @@ class Paperlibraryeditid extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
<Comthetestpaperst {...this.state} {...this.props}
|
|
|
|
|
item_banksedit={this.state.item_banksedit}
|
|
|
|
|
getanswerMdRef={(ref) => this.getJudquestio(ref)}
|
|
|
|
|
getJudquestio={(ref) => this.getJudquestio(ref)}
|
|
|
|
|
></Comthetestpaperst>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|