|
|
@ -65,7 +65,7 @@ class fillEmpty extends Component{
|
|
|
|
if(array[i].value ==""){ count++; }
|
|
|
|
if(array[i].value ==""){ count++; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let k = count==array.length ? 0 : 1;
|
|
|
|
let k = count==array.length ? 0 : 1;
|
|
|
|
this.props.changeQuestionStatus && this.props.changeQuestionStatus(parseInt(this.props.questionType.question_number)-1,k);
|
|
|
|
this.props.changeQuestionStatus && this.props.changeQuestionStatus(parseInt(this.props.questionType.q_position)-1,k);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch((error)=>{
|
|
|
|
}).catch((error)=>{
|
|
|
|
console.log(error);
|
|
|
|
console.log(error);
|
|
|
@ -115,11 +115,11 @@ class fillEmpty extends Component{
|
|
|
|
<input value={item.value} className="input-100-35" style={{backgroundColor: "#F5F5F5",cursor:"default"}} placeholder={ isStudent && item.value ? `请输入填空${key+1}的答案` : "" } readOnly/>
|
|
|
|
<input value={item.value} className="input-100-35" style={{backgroundColor: "#F5F5F5",cursor:"default"}} placeholder={ isStudent && item.value ? `请输入填空${key+1}的答案` : "" } readOnly/>
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<DMDEditor
|
|
|
|
<DMDEditor
|
|
|
|
ref={`md${questionType.question_number}${key}`}
|
|
|
|
ref={`md${questionType.q_position}${key}`}
|
|
|
|
toMDMode={this.toMDMode} toShowMode={this.toShowMode}
|
|
|
|
toMDMode={this.toMDMode} toShowMode={this.toShowMode}
|
|
|
|
height={150} className={'optionMdEditor'} watch={false} noStorage={true}
|
|
|
|
height={150} className={'optionMdEditor'} watch={false} noStorage={true}
|
|
|
|
mdID={item.q_id +"_"+ key} placeholder={`输入填空${key+1}的答案`} onChange={(value) => this.onOptionContentChange(value, key)}
|
|
|
|
mdID={questionType.question_id +"_"+ key} placeholder={`输入填空${key+1}的答案`} onChange={(value) => this.onOptionContentChange(value, key)}
|
|
|
|
initValue={item.value} onCMBlur={()=>this.onBlurEmpty(key,questionType.question_number)}
|
|
|
|
initValue={item.value} onCMBlur={()=>this.onBlurEmpty(key,questionType.q_position)}
|
|
|
|
></DMDEditor>
|
|
|
|
></DMDEditor>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|