隐藏测试集,暂不支持解锁和查看。

dev_forum
hjm 6 years ago
parent b37dbe6b5e
commit 2d28bfe095

@ -212,7 +212,7 @@ class Index extends Component {
<MainContentContainer
onDrawerButtonClick={this.onDrawerButtonClick}
grade={context.grade}
allowed_unlock={context.allowed_unlock}
user={context.user}
power={context.power}
myshixun_manager={context.myshixun_manager}

@ -234,8 +234,8 @@ class CodeEvaluateView extends Component {
</React.Fragment>
) :
<p className="color-orange -task-testline pl20">
{ allowed_unlock === true ? '隐藏测试集,暂不支持解锁和查看。' : '此为隐藏测试项。'}
{ power === 0 ? <a href="javascript:void(0)" className="color_white test_set_data"
{ !allowed_unlock ? '隐藏测试集,暂不支持解锁和查看。' : '此为隐藏测试项。'}
{ (power === 0 && allowed_unlock == true) ? <a href="javascript:void(0)" className="color_white test_set_data"
onClick={()=>showDialog({ contentText, callback: testSetUnlock , moreButtonsRender})}
style={{"textDecoration": "underline"}}>解锁</a> : '' }
</p>

Loading…
Cancel
Save