Merge branch 'dev_aliyun' into dev_tj

merge aliyun
yslnewtiku
tangjiang 5 years ago
commit f44e186666

@ -172,7 +172,7 @@ class HackUserLastestCodesController < ApplicationController
# 编程题已经发布,且之前未通关奖励积分 # 编程题已经发布,且之前未通关奖励积分
@hack.increment!(:pass_num) @hack.increment!(:pass_num)
if @hack.status == 1 && !@my_hack.passed? if @hack.status == 1 && !@my_hack.passed?
reward_attrs = { container_id: game.id, container_type: 'Hack', score: @hack.score } reward_attrs = { container_id: @hack.id, container_type: 'Hack', score: @hack.score }
RewardGradeService.call(@my_hack.user, reward_attrs) RewardGradeService.call(@my_hack.user, reward_attrs)
RewardExperienceService.call(@my_hack.user, reward_attrs) RewardExperienceService.call(@my_hack.user, reward_attrs)
# 评测完成更新通过数 # 评测完成更新通过数

@ -152,8 +152,8 @@ function JupyterTPI (props) {
title: '更新通知', title: '更新通知',
content: (<div className="update_notice"> content: (<div className="update_notice">
{stopposttpip(1)} {stopposttpip(1)}
<p className="update_txt">该实训已更新更新后您编写的实训代码将会丢失</p> <p className="update_txt">该实训已更新您选择更新后之前编写的实训代码将会丢失</p>
<p className="update_txt">如有需要请先导出代码再进行更新</p> <p className="update_txt">如有需要请先使用jupyter中-文件-下载保存代码再进行更新</p>
{/*<p className="update_txt">还未完成评测的任务代码,请自行保存</p>*/} {/*<p className="update_txt">还未完成评测的任务代码,请自行保存</p>*/}
</div>), </div>),
okText: '立即更新', okText: '立即更新',
@ -332,12 +332,12 @@ function JupyterTPI (props) {
</p> </p>
<p className="jupyter_btn"> <p className="jupyter_btn">
{/*sync | poweroff */} {/*sync | poweroff */}
{/*<Button*/} <Button
{/* className="btn_common"*/} className="btn_common"
{/* type="link"*/} type="link"
{/* icon="history"*/} icon="history"
{/* onClick={handleClickResetTpi}*/} onClick={handleClickResetTpi}
{/*>重置实训</Button>*/} >重置实训</Button>
<Button <Button
className="btn_common" className="btn_common"

@ -424,7 +424,22 @@ class Challengesjupyter extends Component {
}; };
return ( return (
<React.Fragment> <React.Fragment>
<div className=""> <div >
<style>
{
`
.ant-notification{
position: fixed;
z-index: 3000;
}
.ant-modal-content{
position: fixed;
z-index: 3000;
}
`
}
</style>
<p className="clearfix mb20 edu-back-white"> <p className="clearfix mb20 edu-back-white">
<div className={"shixunjianjie"}> <div className={"shixunjianjie"}>
<span className="font-16 fl">简介</span> <span className="font-16 fl">简介</span>
@ -579,7 +594,7 @@ class Challengesjupyter extends Component {
<p className="challenbaocuntest" type="upload" >导入</p> <p className="challenbaocuntest" type="upload" >导入</p>
</div> </div>
</Upload> </Upload>
{/*<button type="button" className="ant-btn deletebuttom chongzhistyles" onClick={this.handleClickResetTpi}><span>重置环境</span></button>*/} <button type="button" className="ant-btn deletebuttom chongzhistyles" onClick={this.handleClickResetTpi}><span>重置环境</span></button>
</div> </div>

@ -198,7 +198,7 @@
position: fixed; position: fixed;
top: 0px; top: 0px;
left: 0px; left: 0px;
z-index: 999999; z-index: 2800;
right: 0px; right: 0px;
} }
@ -210,7 +210,7 @@
margin-top: 63px; margin-top: 63px;
bottom: 0px; bottom: 0px;
left: 0px; left: 0px;
z-index: 999999; z-index: 2800;
right: 0px; right: 0px;
} }

Loading…
Cancel
Save