diff --git a/public/react/src/App.js b/public/react/src/App.js index e71185988..d09d67903 100644 --- a/public/react/src/App.js +++ b/public/react/src/App.js @@ -346,7 +346,7 @@ class App extends Component { } } disableVideoContextMenu = () => { - window.$( "body" ).on( "mousedown", "video", function() { + window.$( "body" ).on( "mousedown", "video", function(event) { if(event.which === 3) { window.$('video').bind('contextmenu',function () { return false; }); } else { diff --git a/public/react/src/modules/courses/coursesPublic/AppraiseModal.js b/public/react/src/modules/courses/coursesPublic/AppraiseModal.js index fc9427d27..ab67dddc6 100644 --- a/public/react/src/modules/courses/coursesPublic/AppraiseModal.js +++ b/public/react/src/modules/courses/coursesPublic/AppraiseModal.js @@ -94,7 +94,6 @@ class AppraiseModal extends Component{ width: 48px; height: 16px; font-size: 16px; - font-family: PingFangSC; font-weight: 400; color: rgba(5,16,26,1); line-height: 16px; @@ -102,7 +101,6 @@ class AppraiseModal extends Component{ .newfont{ height: 16px; font-size: 16px; - font-family: PingFangSC; font-weight: 400; color: rgba(5,16,26,1); line-height: 16px; diff --git a/public/react/src/modules/courses/poll/PollNewQuestbank.js b/public/react/src/modules/courses/poll/PollNewQuestbank.js index a84a4cc16..3e9be6a74 100644 --- a/public/react/src/modules/courses/poll/PollNewQuestbank.js +++ b/public/react/src/modules/courses/poll/PollNewQuestbank.js @@ -1062,7 +1062,7 @@ class PollNewQuestbank extends Component { } else if (object.question.question_type === 2) { //插入多选题 if (object.question.max_choices < object.question.min_choices) { - this.props.showNotification(`可选的最大限制不能小于最小限制`); + this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`); return; } @@ -1087,11 +1087,11 @@ class PollNewQuestbank extends Component { if(object.question.min_choices>0){ if(object.question.max_choices){ if(object.question.max_choices===0){ - this.props.showNotification(`可选的最大限制不能小于最小限制!`); + this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`); return; } }else { - this.props.showNotification(`可选的最大限制不能小于最小限制!`); + this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`); return; } @@ -1293,7 +1293,7 @@ class PollNewQuestbank extends Component { //插入多选题 if (object.question.max_choices < object.question.min_choices) { - this.props.showNotification('可选的最大限制不能小于最小限制!'); + this.props.showNotification('可选:最小和最大限制须同时为数值或者“--"'); return; } @@ -1318,11 +1318,11 @@ class PollNewQuestbank extends Component { if(object.question.min_choices>0){ if(object.question.max_choices){ if(object.question.max_choices===0){ - this.props.showNotification(`最大限制不能小于最小限制!`); + this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`); return; } }else { - this.props.showNotification(`最大限制不能小于最小限制!`); + this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`); return; } @@ -1623,7 +1623,7 @@ class PollNewQuestbank extends Component { } else if (object.question.question_type === 2) { //插入多选题 if (object.question.max_choices < object.question.min_choices) { - this.props.showNotification(`可选的最大限制不能小于最小限制`); + this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`); return; } @@ -1649,11 +1649,11 @@ class PollNewQuestbank extends Component { if(object.question.min_choices>0){ if(object.question.max_choices){ if(object.question.max_choices===0){ - this.props.showNotification(`可选的最大限制不能小于最小限制!`); + this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`); return; } }else { - this.props.showNotification(`可选的最大限制不能小于最小限制!`); + this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`); return; } @@ -1827,7 +1827,7 @@ class PollNewQuestbank extends Component { } else if (object.question.question_type === 2) { //插入多选题 if (object.question.max_choices < object.question.min_choices) { - this.props.showNotification(`可选的最大限制不能小于最小限制`); + this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`); return; } @@ -1853,11 +1853,11 @@ class PollNewQuestbank extends Component { if(object.question.min_choices>0){ if(object.question.max_choices){ if(object.question.max_choices===0){ - this.props.showNotification(`可选的最大限制不能小于最小限制!`); + this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`); return; } }else { - this.props.showNotification(`可选的最大限制不能小于最小限制!`); + this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`); return; } @@ -3251,10 +3251,14 @@ class PollNewQuestbank extends Component { // : itemo.question.answers.length > 2 &&indext>1? - this.Deleteentrys(arrid, indext, false)}> + { + indext > 1 ? + this.Deleteentrys(arrid, indext, false)}> + :"" + } { itemo.question.answers[itemo.question.answers.length - 1].answer_text === "其他" && itemo.question.answers.length - 2 === indext ? @@ -3574,10 +3578,14 @@ class PollNewQuestbank extends Component { // :"") itemo.question.answers.length > 2 && indext>1 ? - this.Deleteentrys(arrid, indext, false)}> + { + indext > 1 ? + this.Deleteentrys(arrid, indext, false)}> + :"" + } { itemo.question.answers[itemo.question.answers.length - 1].answer_text === "其他" && itemo.question.answers.length - 2 === indext ? this.HandleInputChanges(e, indexo, indext)}> {polls_status === undefined || polls_status === 1 ? - (itemo.question.question_type === 2&& itemo.question.answers.length === 3 ? - (indext ===1? - this.Ewoption(itemo.question.id, itemo)}> - :"") - : - itemo.question.answers.length > 2 && indext>1 ? + // (itemo.question.question_type === 2&& itemo.question.answers.length === 3 ? + // (itemo.question.answers[itemo.question.answers.length-1].answer_text === "其他" &&indext ===1? + // this.Ewoption(itemo.question.id, itemo)}> + // :itemo.question.answers[itemo.question.answers.length-1].answer_text === "选项" &&indext ===1? + // this.Ewoption(itemo.question.id, itemo)}> + // :"") + // : + itemo.question.answers.length > 2 && indext>=1 ? - this.Deleteentrys(arrid, indext, false)}> { + indext>1? + this.Deleteentrys(arrid, indext, false)}> + :"" + } + + { + itemo.question.answers[itemo.question.answers.length - 1].answer_text === "其他" && itemo.question.answers.length - 2 === indext ? this.Ewoption(itemo.question.id, itemo)}> :"") - - : "") - : ""} + : "":""}

)} ) diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js index 7fef99111..4c2d099b4 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js @@ -2504,6 +2504,15 @@ class Listofworksstudentone extends Component { // console.log(this.props.isAdmin()); let course_is_end = this.props.current_user&&this.props.current_user.course_is_end; + // if(this.props.isAdmin() === false){ + // if(teacherdata.student_works!==undefined){ + // if(teacherdata.student_works.length>0){ + // + // + // } + // } + // + // } return ( this.props.isAdmin() === true ? ( @@ -3035,6 +3044,7 @@ class Listofworksstudentone extends Component { : // 学生能查看别人的
+ {/*双层*/}