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

@ -334,14 +334,15 @@ class Paperreview extends Component {
</div> </div>
{ {
Cohetepaperbool === false ? Cohetepaperbool===false?
<Paperreview_item {...this.state} {...this.props} 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)}
setitem_type={(item) => this.setitem_type(item)} getJudquestio={(ref) => this.getcontentMdRef(ref)}
setitem_type={(item) => this.setitem_type(item)}
></Comthetestpaperst> ></Comthetestpaperst>
} }

@ -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('试题删除成功');
@ -290,8 +292,9 @@ 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,
}) })
@ -393,7 +396,9 @@ class Paperreview_item extends Component {
paperreviewsingleindex, paperreviewsingleindex,
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