diff --git a/public/react/src/modules/question/NewMyShixunModel.js b/public/react/src/modules/question/NewMyShixunModel.js index 64595580b..ce6afc5fd 100644 --- a/public/react/src/modules/question/NewMyShixunModel.js +++ b/public/react/src/modules/question/NewMyShixunModel.js @@ -21,6 +21,7 @@ import NoneData from './component/NoneData'; import './questioncss/questioncom.css'; import Bottomsubmit from "../modals/Bottomsubmit"; import QuestionModalys from "./component/QuestionModalys"; +import Listjihe from "./component/Listjihe"; //exam_id 试卷的id var Undoclickable=true; @@ -264,12 +265,6 @@ class NewMyShixunModel extends Component { } this.callback(defaultActiveKeys); } - if(prevProps.Contentdata !== this.props.Contentdata){ - this.setState({ - Contentdata:this.props.Contentdata, - }) - - } } //公共和我的 @@ -721,33 +716,33 @@ class NewMyShixunModel extends Component { getbasket_listdata = () => { // 获取试题篮展开的数据 - // const url = "/item_baskets/basket_list.json"; - // axios.get(url) - // .then((result) => { - // // ////console.log("getbasket_listdata"); - // // ////console.log(result.data); - // this.setState({ - // completion_questions_count: result.data.completion_questions_count, - // judgement_questions_count: result.data.judgement_questions_count, - // multiple_questions_count: result.data.multiple_questions_count, - // practical_questions_count: result.data.practical_questions_count, - // program_questions_count: result.data.program_questions_count, - // single_questions_count: result.data.single_questions_count, - // subjective_questions_count: result.data.subjective_questions_count, - // }) - // - // }).catch((error) => { - // // ////console.log(error); - // this.setState({ - // completion_questions_count: 0, - // judgement_questions_count: 0, - // multiple_questions_count: 0, - // practical_questions_count: 0, - // program_questions_count: 0, - // single_questions_count: 0, - // subjective_questions_count: 0, - // }) - // }) + const url = "/item_baskets/basket_list.json"; + axios.get(url) + .then((result) => { + // ////console.log("getbasket_listdata"); + // ////console.log(result.data); + this.setState({ + completion_questions_count: result.data.completion_questions_count, + judgement_questions_count: result.data.judgement_questions_count, + multiple_questions_count: result.data.multiple_questions_count, + practical_questions_count: result.data.practical_questions_count, + program_questions_count: result.data.program_questions_count, + single_questions_count: result.data.single_questions_count, + subjective_questions_count: result.data.subjective_questions_count, + }) + + }).catch((error) => { + // ////console.log(error); + this.setState({ + completion_questions_count: 0, + judgement_questions_count: 0, + multiple_questions_count: 0, + practical_questions_count: 0, + program_questions_count: 0, + single_questions_count: 0, + subjective_questions_count: 0, + }) + }) } @@ -1029,8 +1024,10 @@ class NewMyShixunModel extends Component { + single_questions_count + subjective_questions_count; - // console.log("弹出框"); - // console.log(Contentdata) + console.log("弹出框"); + console.log(Datacount) + console.log(Contentdata) + return (