mast_item_banktwo
杨树林 5 years ago
parent f1d4f07c75
commit 5c611fb61b

@ -427,11 +427,12 @@ class Paperreview extends Component {
{ {
Cohetepaperbool===false? Cohetepaperbool===false?
<Paperreview_item {...this.state} {...this.props} Changingtopics={(e)=>this.Changingtopics(e)} Replacementtype={(e)=>this.Replacementtype(e)} getdata={(data)=>this.getdata(data)} setnewmyshixunmodelbool={(e)=>this.setnewmyshixunmodelbool(e)}> <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> </Paperreview_item>
: :
<Comthetestpaperst {...this.state} {...this.props} <Comthetestpaperst {...this.state} {...this.props}
getJudquestio={(ref) => this.getcontentMdRef(ref)} getJudquestio={(ref) => this.getcontentMdRef(ref)}
setitem_type={(item) => this.setitem_type(item)} setitem_type={(item) => this.setitem_type(item)}

@ -272,7 +272,9 @@ class Paperreview_item extends Component {
}else { }else {
//确定 //确定
const url = `/item_baskets/${this.state.item_bank_id}.json`; 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) => { .then((response) => {
if (response.data.status == 0) { if (response.data.status == 0) {
// this.props.showNotification('试题删除成功'); // this.props.showNotification('试题删除成功');
@ -291,7 +293,8 @@ class Paperreview_item extends Component {
} }
showsetmodalsTypedels=(id,bool,type)=>{ showsetmodalsTypedels=(id,bool,type)=>{
debugger console.log("Paperreview_item");
this.setState({ this.setState({
item_bank_id:id, item_bank_id:id,
}) })
@ -394,6 +397,8 @@ class Paperreview_item extends Component {
modalsTypeys modalsTypeys
} = this.state; } = 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 ( return (
<div className=" clearfix educontent Contentquestionbankstyle w100s w1200wuh mt19"> <div className=" clearfix educontent Contentquestionbankstyle w100s w1200wuh mt19">
{ {

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

Loading…
Cancel
Save