|
|
@ -240,11 +240,15 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 调分
|
|
|
|
// 调分
|
|
|
|
showSetScore=(key,flag)=>{
|
|
|
|
showSetScore=(key,flag,setId)=>{
|
|
|
|
this.setState(
|
|
|
|
this.setState(
|
|
|
|
(prevState) => ({
|
|
|
|
(prevState) => ({
|
|
|
|
exercise_questions : update(prevState.exercise_questions, {[key]: { setScore: {$set: flag == undefined || flag==false ? true : false}}})
|
|
|
|
exercise_questions : update(prevState.exercise_questions, {[key]: { setScore: {$set: flag == undefined || flag==false ? true : false}}})
|
|
|
|
})
|
|
|
|
}),()=>{
|
|
|
|
|
|
|
|
if (setId && (flag == undefined || flag==false)) {
|
|
|
|
|
|
|
|
$("html").animate({ scrollTop: $("#Anchor_"+setId).offset().top - 150 })
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
score:undefined
|
|
|
|
score:undefined
|
|
|
@ -502,6 +506,18 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
console.log(data&&data.exercise.user_name)
|
|
|
|
console.log(data&&data.exercise.user_name)
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<div className="newMain" style={{paddingTop:"0px"}}>
|
|
|
|
<div className="newMain" style={{paddingTop:"0px"}}>
|
|
|
|
|
|
|
|
<style>{`
|
|
|
|
|
|
|
|
.inputNumber30{
|
|
|
|
|
|
|
|
height:30px;
|
|
|
|
|
|
|
|
width:115px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.inputNumber30 .ant-input-number-input-wrap{
|
|
|
|
|
|
|
|
line-height: 28px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.inputNumber30 .ant-input-number-input-wrap .ant-input-number-input{
|
|
|
|
|
|
|
|
height: 28px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
`}</style>
|
|
|
|
<p style={{height:"60px"}}></p>
|
|
|
|
<p style={{height:"60px"}}></p>
|
|
|
|
<Modals
|
|
|
|
<Modals
|
|
|
|
modalsType={Modalstype}
|
|
|
|
modalsType={Modalstype}
|
|
|
@ -665,7 +681,7 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// 填空(一直都有调分),和简答题调分:老师身份 已经评分的才能出现调分按钮
|
|
|
|
// 填空(一直都有调分),和简答题调分:老师身份 已经评分的才能出现调分按钮
|
|
|
|
isAdmin && ((parseInt(item.answer_status) == 1 && item.question_type == 4) || item.question_type == 3) ?
|
|
|
|
isAdmin && ((parseInt(item.answer_status) == 1 && item.question_type == 4) || item.question_type == 3) ?
|
|
|
|
<WordsBtn style="blue" className="mr20 font-16 fl" onClick={()=>this.showSetScore(key,item.setScore)}>调分</WordsBtn>:""
|
|
|
|
<WordsBtn style="blue" className="mr20 font-16 fl" onClick={()=>this.showSetScore(key,item.setScore,item.q_position+"_"+item.question_type)}>调分</WordsBtn>:""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// 简答题,未评分的显示未批
|
|
|
|
// 简答题,未评分的显示未批
|
|
|
@ -767,11 +783,10 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// 调分输入部分
|
|
|
|
// 调分输入部分
|
|
|
|
isAdmin && ((item.setScore && item.question_type == 3) || ((item.setScore || parseInt(item.answer_status) == 0) && item.question_type == 4))?
|
|
|
|
isAdmin && ((item.setScore && item.question_type == 3) || ((item.setScore || parseInt(item.answer_status) == 0) && item.question_type == 4))?
|
|
|
|
<div className="ml30 mr30 bor-top-greyE pt20 mt20">
|
|
|
|
<div className="ml30 mr30 bor-top-greyE pt20 mt20" id={`${"Anchor_"+item.q_position+"_"+item.question_type}`}>
|
|
|
|
<div className="edu-txt-right">
|
|
|
|
<div className="edu-txt-right">
|
|
|
|
<span><span className="color-red">*</span>调分:</span>
|
|
|
|
<span><span className="color-red">*</span>调分:</span>
|
|
|
|
<li className="fr">
|
|
|
|
<li className="fr">
|
|
|
@ -783,8 +798,7 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
value={score}
|
|
|
|
value={score}
|
|
|
|
step={0.1}
|
|
|
|
step={0.1}
|
|
|
|
precision={1}
|
|
|
|
precision={1}
|
|
|
|
className={ setTip !="" ? "edu-txt-center winput-115-40 fl mt3 noticeTip" : "edu-txt-center winput-115-40 fl mt3"}
|
|
|
|
className={ setTip !="" ? "edu-txt-center winput-115-40 fl mt3 noticeTip inputNumber30" : "edu-txt-center winput-115-40 fl mt3 inputNumber30"}
|
|
|
|
style={{height:"30px",width:"115px"}}
|
|
|
|
|
|
|
|
onChange={this.inputScore}
|
|
|
|
onChange={this.inputScore}
|
|
|
|
></InputNumber>
|
|
|
|
></InputNumber>
|
|
|
|
<span className="ml5">分</span>
|
|
|
|
<span className="ml5">分</span>
|
|
|
|