dev_aliyun2
杨树林 5 years ago committed by harry
parent cf30583bc9
commit ea6f314695

@ -334,12 +334,13 @@ class Paperreview extends Component {
</div>
{
Cohetepaperbool === false ?
<Paperreview_item {...this.state} {...this.props} getdata={(data) => this.getdata(data)} setnewmyshixunmodelbool={(e) => this.setnewmyshixunmodelbool(e)}>
Cohetepaperbool===false?
<Paperreview_item {...this.state} {...this.props} artificialtype={artificialtype} Changingtopics={(e)=>this.Changingtopics(e)} Replacementtype={(e)=>this.Replacementtype(e)} getdata={(data)=>this.getdata(data)} setnewmyshixunmodelbool={(e)=>this.setnewmyshixunmodelbool(e)}>
</Paperreview_item>
:
<Comthetestpaperst {...this.state} {...this.props}
getJudquestio={(ref) => this.getcontentMdRef(ref)}
setitem_type={(item) => this.setitem_type(item)}

@ -272,7 +272,9 @@ class Paperreview_item extends Component {
} else {
//确定
const url = `/item_baskets/${this.state.item_bank_id}.json`;
axios.delete((url))
axios.delete(url, { data: {
exam_setting_id: this.props.match.params.id,
}})
.then((response) => {
if (response.data.status == 0) {
// this.props.showNotification('试题删除成功');
@ -290,8 +292,9 @@ class Paperreview_item extends Component {
}
showsetmodalsTypedels = (id, bool, type) => {
debugger
showsetmodalsTypedels=(id,bool,type)=>{
console.log("Paperreview_item");
this.setState({
item_bank_id: id,
})
@ -393,7 +396,9 @@ class Paperreview_item extends Component {
paperreviewsingleindex,
modalsTypeys
} = this.state;
let { single_questions, multiple_questions, judgement_questions, program_questions, all_score } = this.props;
let {single_questions, multiple_questions, judgement_questions, program_questions, all_score} = this.props;
console.log("this.props");
console.log(this.props);
return (
<div className=" clearfix educontent Contentquestionbankstyle w100s w1200wuh mt19">
{

@ -291,7 +291,8 @@ class Paperlibraryseeid_itemss extends Component {
}
showsetmodalsTypedels=(id,bool,type)=>{
debugger
console.log("Paperlibraryseeid_itemss");
this.setState({
item_bank_id:id,
})

Loading…
Cancel
Save