|
|
|
@ -165,9 +165,9 @@ class SingleEditor extends Component{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
onOptionClick = (index) => {
|
|
|
|
|
if (this.props.exerciseIsPublish) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// if (this.props.exerciseIsPublish) {
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
let standard_answers = this.state.standard_answers.slice(0)
|
|
|
|
|
standard_answers[index] = !standard_answers[index]
|
|
|
|
|
this.setState({ standard_answers })
|
|
|
|
@ -247,7 +247,7 @@ class SingleEditor extends Component{
|
|
|
|
|
{/* <Tooltip title={standard_answers[index] ? '点击取消标准答案设置' : '点击设置为标准答案'}> */}
|
|
|
|
|
<span class={`option-item fr mr10 color-grey select-choice ${bg} `}
|
|
|
|
|
name="option_span" onClick={() => this.onOptionClick(index)} style={{flex: '0 0 38px'}}>
|
|
|
|
|
<ConditionToolTip title={standard_answers[index] ? '点击取消标准答案设置' : '点击设置为标准答案'} placement="left" condition={!exerciseIsPublish}>
|
|
|
|
|
<ConditionToolTip title={standard_answers[index] ? '点击取消标准答案设置' : '点击设置为标准答案'} placement="left" condition={true}>
|
|
|
|
|
<div style={{width: '100%', height: '100%'}}>{tagArray[index]}</div>
|
|
|
|
|
</ConditionToolTip>
|
|
|
|
|
</span>
|
|
|
|
|