diff --git a/public/react/src/modules/question/NewMyShixunModel.js b/public/react/src/modules/question/NewMyShixunModel.js index 8922abd76..232ba9d72 100644 --- a/public/react/src/modules/question/NewMyShixunModel.js +++ b/public/react/src/modules/question/NewMyShixunModel.js @@ -97,7 +97,7 @@ class NewMyShixunModel extends Component { } - setsub_discipline_id=(sub_discipline_id)=>{ + setsub_discipline_id=(discipline_id,sub_discipline_id)=>{ this.setState({ sub_discipline_id:sub_discipline_id, tag_discipline_id:null, @@ -107,7 +107,7 @@ class NewMyShixunModel extends Component { oj_status:null }) var data = { - discipline_id:this.state.discipline_id, + discipline_id:discipline_id, sub_discipline_id:sub_discipline_id, tag_discipline_id:null, public: this.state.defaultActiveKey, @@ -161,8 +161,8 @@ class NewMyShixunModel extends Component { this.callback(defaultActiveKeys); let url = `/users/get_navigation_info.json`; axios.get(url, {}).then((response) => { - // ////console.log("开始请求/get_navigation_info.json"); - // ////console.log(response); + // //////console.log("开始请求/get_navigation_info.json"); + // //////console.log(response); if (response != undefined) { if (response.status === 200) { this.setState({ @@ -180,8 +180,8 @@ class NewMyShixunModel extends Component { axios.get(urls, {params: { source:"question" }}).then((response) => { - console.log("Questiondisciplines"); - console.log(response.data); + //console.log("Questiondisciplines"); + //console.log(response.data); if (response) { this.setState({ disciplinesdata: response.data.disciplines, @@ -254,15 +254,15 @@ class NewMyShixunModel extends Component { } else { } - ////console.log("item_banks"); - ////console.log(response); + //////console.log("item_banks"); + //////console.log(response); this.setState({ Contentdata: response.data, items_count: response.data.items_count, }) this.getdataslen(response.data.items); }).catch((error) => { - ////console.log(error) + //////console.log(error) this.setState({ booljupyterurls:false, }) @@ -288,8 +288,8 @@ class NewMyShixunModel extends Component { } else { } - ////console.log("item_banks"); - ////console.log(response); + //////console.log("item_banks"); + //////console.log(response); this.setState({ Contentdata: response.data, items_count: response.data.items_count, @@ -590,7 +590,7 @@ class NewMyShixunModel extends Component { } }) .catch(function (error) { - //console.log(error); + ////console.log(error); }); } publicopentimu = (id) => { @@ -616,7 +616,7 @@ class NewMyShixunModel extends Component { this.getdata(data); } }).catch((error) => { - //console.log(error); + ////console.log(error); }) } @@ -625,8 +625,8 @@ class NewMyShixunModel extends Component { // const url = "/item_baskets/basket_list.json"; // axios.get(url) // .then((result) => { - // // //console.log("getbasket_listdata"); - // // //console.log(result.data); + // // ////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, @@ -638,7 +638,7 @@ class NewMyShixunModel extends Component { // }) // // }).catch((error) => { - // // //console.log(error); + // // ////console.log(error); // this.setState({ // completion_questions_count: 0, // judgement_questions_count: 0, @@ -687,7 +687,7 @@ class NewMyShixunModel extends Component { // }) } }).catch((error) => { - //console.log(error); + ////console.log(error); }) } // 撤销 @@ -715,7 +715,7 @@ class NewMyShixunModel extends Component { this.getbasket_listdata(); } }).catch((error) => { - //console.log(error); + ////console.log(error); }) }else{ url=`/examination_banks/${this.props.exam_id}/revoke_item.json`; @@ -741,7 +741,7 @@ class NewMyShixunModel extends Component { this.getbasket_listdata(); } }).catch((error) => { - //console.log(error); + ////console.log(error); }) } @@ -815,7 +815,7 @@ class NewMyShixunModel extends Component { } }) .catch(function (error) { - //console.log(error); + ////console.log(error); }); } diff --git a/public/react/src/modules/question/Paperreview.js b/public/react/src/modules/question/Paperreview.js index b321a40a2..2adc77c03 100644 --- a/public/react/src/modules/question/Paperreview.js +++ b/public/react/src/modules/question/Paperreview.js @@ -67,8 +67,8 @@ class Paperreview extends Component { //初始化 componentDidMount() { - console.log("Paperreview.js"); - console.log(this.props.match.params); + //console.log("Paperreview.js"); + //console.log(this.props.match.params); this.setState({ artificialtype:this.props.match.params.type }) @@ -185,7 +185,7 @@ class Paperreview extends Component { } }).catch((error) => { - ////console.log(error) + //////console.log(error) this.setState({ booljupyterurls: false, }) @@ -238,7 +238,7 @@ class Paperreview extends Component { this.props.history.replace('/paperlibrary'); } }).catch((error) => { - console.log(error); + //console.log(error); }) }else{ @@ -321,12 +321,12 @@ class Paperreview extends Component { axios.post(url, data) .then((result) => { if (result.data.status == 0) { - console.log(result); + //console.log(result); var data = {} this.getdata(data); } }).catch((error) => { - console.log(error); + //console.log(error); }) } //换题 @@ -338,12 +338,12 @@ class Paperreview extends Component { axios.post(url, data) .then((result) => { if (result.data.status == 0) { - console.log(result); + //console.log(result); var data = {} this.getdata(data); } }).catch((error) => { - console.log(error); + //console.log(error); }) } @@ -361,7 +361,7 @@ class Paperreview extends Component { render() { let {page, limit, count, Headertop, visible, placement, modalsType, item_type,artificialtype,Cohetepaperbool,newmyshixunmodelbool,Intelligentformation} = this.state; const params = this.props && this.props.match && this.props.match.params; - // //console.log(params); + // ////console.log(params); return (
-
-
-
{tagArray[index]}
+{tagArray[index]}
{object ?
object.choice_text === undefined || object.choice_text=== null || object.choice_text === "" ?
diff --git a/public/react/src/modules/question/component/Newknledpots.js b/public/react/src/modules/question/component/Newknledpots.js
index 4668c5e5a..36dd88e10 100644
--- a/public/react/src/modules/question/component/Newknledpots.js
+++ b/public/react/src/modules/question/component/Newknledpots.js
@@ -18,15 +18,15 @@ class PaperDeletModel extends Component {
// this.setState({
// newkntypeinput: e.target.value
// })
- // console.log(e.target.value);
- // console.log(e.target.value.length);
+ // //console.log(e.target.value);
+ // //console.log(e.target.value.length);
this.setState({
newkntypeinput: e.target.value
})
this.props.setboolred(false);
//
// debugger
- // console.log(e);
+ // //console.log(e);
//
// if(e.target.value.length>0){
// if(e.target.value.length>=16){
@@ -38,11 +38,11 @@ class PaperDeletModel extends Component {
// }
}
mysinputOnBlur=(e)=>{
- console.log("失去焦点了");
+ //console.log("失去焦点了");
}
inputOnFocus=(e)=>{
- console.log("获取焦点");
+ //console.log("获取焦点");
}
render() {
diff --git a/public/react/src/modules/question/component/Paperreview_itemModel.js b/public/react/src/modules/question/component/Paperreview_itemModel.js
index 0759bb677..b4ceacc02 100644
--- a/public/react/src/modules/question/component/Paperreview_itemModel.js
+++ b/public/react/src/modules/question/component/Paperreview_itemModel.js
@@ -13,8 +13,8 @@ class Paperreview_itemModel extends Component {
}
onChange=(value)=>{
- console.log("设置批量得分");
- console.log(value);
+ //console.log("设置批量得分");
+ //console.log(value);
this.setState({
value:value,
})
diff --git a/public/react/src/modules/question/component/Paperreview_itemModels.js b/public/react/src/modules/question/component/Paperreview_itemModels.js
index 167769313..ba7978aff 100644
--- a/public/react/src/modules/question/component/Paperreview_itemModels.js
+++ b/public/react/src/modules/question/component/Paperreview_itemModels.js
@@ -14,8 +14,8 @@ class Paperreview_itemModels extends Component {
}
onChange=(value)=>{
- console.log("Paperreview_itemModels");
- console.log(value);
+ //console.log("Paperreview_itemModels");
+ //console.log(value);
this.setState({
value:value,
})
diff --git a/public/react/src/modules/question/component/SiderBars.js b/public/react/src/modules/question/component/SiderBars.js
index 66ccb77dc..78674068c 100644
--- a/public/react/src/modules/question/component/SiderBars.js
+++ b/public/react/src/modules/question/component/SiderBars.js
@@ -25,7 +25,7 @@ $(window).scroll(function(){
function rightSlider(){
var poi=parseInt((parseInt($(window).width())- 1200 )/2)-81;
- // console.log(parseInt($(window).width())+" "+poi);
+ // //console.log(parseInt($(window).width())+" "+poi);
if(poi>0){
$(".-task-sidebar").css("right",poi);
}else{
@@ -82,15 +82,15 @@ class SiderBars extends Component {
}
componentDidMount() {
- _initSider()
+ // _initSider()
}
render() {
- // console.log("SiderBar");
- // console.log(this.props);
+ // //console.log("SiderBar");
+ // //console.log(this.props);
var mypath= this.props&&this.props.match&&this.props.match.path;
let{myvisible,Datacount,animateStyle}=this.props;
diff --git a/public/react/src/modules/question/component/SingleEditor.js b/public/react/src/modules/question/component/SingleEditor.js
index 876cb4354..dffbf620c 100644
--- a/public/react/src/modules/question/component/SingleEditor.js
+++ b/public/react/src/modules/question/component/SingleEditor.js
@@ -52,8 +52,8 @@ class SingleEditor extends Component{
if(this.props.item_banksedit.choices){
this.props.item_banksedit.choices.forEach((item, index) => {
- //console.log("SingleEditor");
- //console.log(item);
+ ////console.log("SingleEditor");
+ ////console.log(item);
choicescomy.push({
choice_text:item.choice_text,
standard_boolean:item.is_answer,
@@ -87,9 +87,9 @@ class SingleEditor extends Component{
addOption = () => {
const { question_choices, standard_answers } = this.state;
- // ////console.log("addOption");
- // ////console.log(question_choices);
- // ////console.log(standard_answers);
+ // //////console.log("addOption");
+ // //////console.log(question_choices);
+ // //////console.log(standard_answers);
question_choices.push('')
@@ -99,8 +99,8 @@ class SingleEditor extends Component{
deleteOption = (index) => {
let {question_choices}=this.state;
- // ////console.log("deleteOption");
- // ////console.log(question_choices);
+ // //////console.log("deleteOption");
+ // //////console.log(question_choices);
if(question_choices[index]===""){
// repeat code
@@ -209,9 +209,9 @@ class SingleEditor extends Component{
}
}
componentDidUpdate(prevProps) {
- //console.log("componentDidUpdate");
- // //console.log(prevProps);
- // //console.log(this.props.item_banksedit);
+ ////console.log("componentDidUpdate");
+ // ////console.log(prevProps);
+ // ////console.log(this.props.item_banksedit);
if(prevProps.item_banksedit !== this.props.item_banksedit) {
this.setState({
@@ -228,10 +228,10 @@ class SingleEditor extends Component{
onOptionClick = (index) => {
let standard_answers = this.state.standard_answers.slice(0);
- // ////console.log("onOptionClick");
- // ////console.log(standard_answers);
- // ////console.log(standard_answers[index]);
- // ////console.log(!standard_answers[index]);
+ // //////console.log("onOptionClick");
+ // //////console.log(standard_answers);
+ // //////console.log(standard_answers[index]);
+ // //////console.log(!standard_answers[index]);
for (var i=0;i