试卷更新操作

dev_jupyter
杨树林 5 years ago
parent 5efa4002ea
commit 3074cda9cc

@ -215,7 +215,7 @@ class Paperreview extends Component {
.then((result) => { .then((result) => {
if (result.data.status === 0) { if (result.data.status === 0) {
this.props.showNotification(`组卷成功`); this.props.showNotification(`组卷成功`);
this.props.history.replace('./paperlibrary'); this.props.history.replace('/paperlibrary');
} }
}).catch((error) => { }).catch((error) => {
console.log(error); console.log(error);

@ -364,8 +364,8 @@ class Paperreview_item extends Component {
} }
showparagraphs = (e,name) => { showparagraphs = (e,name) => {
console.log("showparagraphs"); // console.log("showparagraphs");
console.log(e); // console.log(e);
this.setState({ this.setState({
paperreviewsingleindex: e, paperreviewsingleindex: e,
paperreviewsinglename:name, paperreviewsinglename:name,

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

@ -284,8 +284,8 @@ class Paperreview_item extends Component {
} }
showparagraphs = (e,name) => { showparagraphs = (e,name) => {
console.log("showparagraphs"); // console.log("showparagraphs");
console.log(e); // console.log(e);
this.setState({ this.setState({
paperreviewsingleindex: e, paperreviewsingleindex: e,
paperreviewsinglename:name, paperreviewsinglename:name,

@ -364,8 +364,8 @@ class Paperlibraryseeid_itemss extends Component {
} }
showparagraphs = (e,name) => { showparagraphs = (e,name) => {
console.log("showparagraphs"); // console.log("showparagraphs");
console.log(e); // console.log(e);
this.setState({ this.setState({
paperreviewsingleindex: e, paperreviewsingleindex: e,
paperreviewsinglename:name, paperreviewsinglename:name,

Loading…
Cancel
Save