diff --git a/app/assets/javascripts/admins/competition_settings/index.js b/app/assets/javascripts/admins/competition_settings/index.js index 944ddb7c7..c9df31bb9 100644 --- a/app/assets/javascripts/admins/competition_settings/index.js +++ b/app/assets/javascripts/admins/competition_settings/index.js @@ -471,45 +471,45 @@ $(document).on('turbolinks:load', function(){ ' \n' + '
\n' + '
\n' + - ' 第1阶段\n' + + ' 第1阶段\n' + '
\n' + '
\n' + - ' 有效时间:\n' + - '
\n' + + '
有效时间:\n' + + '
\n' + ' \n' + '
\n' + ' ~\n' + - '
\n' + + '
\n' + ' \n' + - '
\n' + - ' 总任务数:\n' + - '
\n' + + '
\n' + + '
总任务数:\n' + + '
\n' + ' \n' + - '
\n' + - ' 成绩来源:\n' + - '
\n' + + '
\n' + + '
成绩来源:\n' + + '
\n' + ' \n' + - '
\n' + + '
\n' + '
\n' + '
\n' + '
\n' + - ' 任务1\n' + - '
\n' + + ' 任务1\n' + + '
\n' + ' \n' + '
\n' + '
\n' + '
\n' + - ' 任务2\n' + - '
\n' + + ' 任务2\n' + + '
\n' + ' \n' + '
\n' + '
\n' + '
\n' + - ' 任务3\n' + - '
\n' + + ' 任务3\n' + + '
\n' + ' \n' + '
\n' + '
\n' + @@ -547,45 +547,45 @@ $(document).on('turbolinks:load', function(){ var html='
\n' + - ' 第'+showCount+'阶段\n' + + ' 第'+showCount+'阶段\n' + '
\n' + '
\n' + - ' 有效时间:\n' + - '
\n' + + '
有效时间:\n' + + '
\n' + ' \n' + '
\n' + ' ~\n' + - '
\n' + + '
\n' + ' \n' + - '
\n' + - ' 总任务数:\n' + - '
\n' + + '
\n' + + '
总任务数:\n' + + '
\n' + ' \n' + - '
\n' + - ' 成绩来源:\n' + - '
\n' + + '
\n' + + '
成绩来源:\n' + + '
\n' + ' \n' + - '
\n' + + '
\n' + '
\n' + '
\n'+ '
\n' + - ' 任务1\n' + - '
\n' + + ' 任务1\n' + + '
\n' + ' \n' + '
\n' + '
\n' + '
\n' + - ' 任务2\n' + - '
\n' + + ' 任务2\n' + + '
\n' + ' \n' + '
\n' + '
\n' + '
\n' + - ' 任务3\n' + - '
\n' + + ' 任务3\n' + + '
\n' + ' \n' + '
\n' + '
\n' + @@ -633,8 +633,8 @@ function change_total(item) { var html = ""; if(count > divCount){ for(var i=0;i < count-divCount ;i++){ - html+='
任务'+(divCount+i+1)+'\n' + - '
\n' + + html+='
任务'+(divCount+i+1)+'\n' + + '
\n' + '\n' + '
\n' + '
'; @@ -688,45 +688,45 @@ function addNewTab(competition_id) { '
\n' + '
\n' + '
\n' + - ' 第1阶段\n' + + ' 第1阶段\n' + '
\n' + '
\n' + - ' 有效时间:\n' + - '
\n' + + '
有效时间:\n' + + '
\n' + ' \n' + '
\n' + ' ~\n' + - '
\n' + + '
\n' + ' \n' + - '
\n' + - ' 总任务数:\n' + - '
\n' + + '
\n' + + '
总任务数:\n' + + '
\n' + ' \n' + - '
\n' + - ' 成绩来源:\n' + - '
\n' + + '
\n' + + '
成绩来源:\n' + + '
\n' + ' \n' + - '
\n' + + '
\n' + '
\n' + '
\n' + '
\n' + - ' 任务1\n' + - '
\n' + + ' 任务1\n' + + '
\n' + ' \n' + '
\n' + '
\n' + '
\n' + - ' 任务2\n' + - '
\n' + + ' 任务2\n' + + '
\n' + ' \n' + '
\n' + '
\n' + '
\n' + - ' 任务3\n' + - '
\n' + + ' 任务3\n' + + '
\n' + ' \n' + '
\n' + '
\n' + diff --git a/app/assets/stylesheets/admins/competition_settings.scss b/app/assets/stylesheets/admins/competition_settings.scss index cef12cae3..481a2d9b0 100644 --- a/app/assets/stylesheets/admins/competition_settings.scss +++ b/app/assets/stylesheets/admins/competition_settings.scss @@ -87,5 +87,30 @@ .row:last-child{ border:none; } + + .task_Input_div:nth-child(3n-2) > span.col-4{ + flex: 0 0 81px; + max-width: 81px; + } + .task_Input_div:nth-child(3n-2){ + flex: 0 0 50%; + max-width: 50%; + } + .task_Input_div:nth-child(3n-1){ + flex: 0 0 25%; + max-width: 25%; + } + .task_Input_div:nth-child(3n){ + flex: 0 0 33.3%; + max-width: 33.3%; + } + .task_Input_div:nth-child(3n) > span.col-4{ + flex: 0 0 25%; + max-width: 25%; + } + .task_Input_div:nth-child(3n) > div.col-6{ + flex: 0 0 58.3%; + max-width: 58.3%; + } } } \ No newline at end of file diff --git a/app/views/admins/competition_settings/index.html.erb b/app/views/admins/competition_settings/index.html.erb index 225f05573..1c60f0601 100644 --- a/app/views/admins/competition_settings/index.html.erb +++ b/app/views/admins/competition_settings/index.html.erb @@ -386,34 +386,40 @@
<% stage.competition_stage_sections.each_with_index do |section, j| %>
- 第<%= j + 1 %>阶段 + 第<%= j + 1 %>阶段
- 有效时间: -
- <%= text_field_tag 'stage[][start_time]', section.start_time&.strftime('%Y-%m-%d %H:%M'), autocomplete: 'off', class: 'section-start-time form-control', placeholder: '有效开始时间' %> -
- ~ -
- <%= text_field_tag 'stage[][end_time]', section.end_time&.strftime('%Y-%m-%d %H:%M'), autocomplete: 'off', class: 'section-end-time form-control', placeholder: '有效结束时间' %> +
+ 有效时间: +
+ <%= text_field_tag 'stage[][start_time]', section.start_time&.strftime('%Y-%m-%d %H:%M'), autocomplete: 'off', class: 'section-start-time form-control', placeholder: '有效开始时间' %> +
+ ~ +
+ <%= text_field_tag 'stage[][end_time]', section.end_time&.strftime('%Y-%m-%d %H:%M'), autocomplete: 'off', class: 'section-end-time form-control', placeholder: '有效结束时间' %> +
- 总任务数: -
- +
+ 总任务数: +
+ +
- 成绩来源: -
- +
+ 成绩来源: +
+ +
<% section.competition_entries.each_with_index do |entry, z| %>
- 任务<%= z+1 %> -
+ 任务<%= z+1 %> +
@@ -450,45 +456,51 @@
- 第1阶段 + 第1阶段
- 有效时间: -
- <%= text_field_tag 'stage[][start_time]', '', autocomplete: 'off', class: 'section-start-time form-control', placeholder: '有效开始时间' %> -
- ~ -
- <%= text_field_tag 'stage[][end_time]', '', autocomplete: 'off', class: 'section-end-time form-control', placeholder: '有效结束时间' %> +
+ 有效时间: +
+ <%= text_field_tag 'stage[][start_time]', '', autocomplete: 'off', class: 'section-start-time form-control', placeholder: '有效开始时间' %> +
+ ~ +
+ <%= text_field_tag 'stage[][end_time]', '', autocomplete: 'off', class: 'section-end-time form-control', placeholder: '有效结束时间' %> +
- 总任务数: -
- +
+ 总任务数: +
+ +
- 成绩来源: -
- +
+ 成绩来源: +
+ +
- 任务1 -
+ 任务1 +
- 任务2 -
+ 任务2 +
- 任务3 -
+ 任务3 +
diff --git a/public/react/src/modules/competition/Registration.js b/public/react/src/modules/competition/Registration.js index 50c0569ca..08e1d4183 100644 --- a/public/react/src/modules/competition/Registration.js +++ b/public/react/src/modules/competition/Registration.js @@ -960,7 +960,7 @@ class Registration extends React.Component { 在线竞赛 {competition_name === undefined || competition_name === null || competition_name === "" ? "全国高校计算机大赛" : competition_name} + to={`/competitions/${this.props.match.params.identifier}`}>{competition_name === undefined || competition_name === null || competition_name === "" ? "全国高校计算机大赛" : competition_name} {/**/} 报名 diff --git a/public/react/src/modules/competitions/Competitimain/CompetitionsIndex.js b/public/react/src/modules/competitions/Competitimain/CompetitionsIndex.js index 92136229c..9a23f66c1 100644 --- a/public/react/src/modules/competitions/Competitimain/CompetitionsIndex.js +++ b/public/react/src/modules/competitions/Competitimain/CompetitionsIndex.js @@ -117,16 +117,14 @@ class CompetitionsIndex extends Component{ size="large" dataSource={datas&&datas} renderItem={(item,key) => ( -
{item.competition_status==="nearly_published"? - item.permission.editable == true ? "" : -
即将发布 敬请期待
: ""} + item.permission.editable==true?"":
即将发布 敬请期待
:""} {/*
即将发布 敬请期待
*/} {/*{item.description===null||item.description===undefined||item.description===""? - - - - - - - - + + + {bomdata===undefined||bomdata===null?"":bomdata.length===0?:
} + + + {course_members===undefined||course_members===null?"":course_members.length===0?:} + + - {this.state.all_count === undefined || this.state.all_count === null || this.state.activeKey === "2" ? '' : this.state.all_count > 20 && this.props.isAdmin() === true ? -
20&&this.props.isAdmin()===true?
@@ -526,12 +521,12 @@ class Statistics extends Component{ showQuickJumper defaultCurrent={1} pageSize={20} - total={this.state.all_count === undefined ? 0 : this.state.all_count === null ? 0 : this.state.all_count} + total={this.state.all_count===undefined?0:this.state.all_count===null?0:this.state.all_count} current={this.state.page} onChange={this.PaginationCourse} /> -
: ""} +
:""} ) diff --git a/public/react/src/modules/tpm/challengesnew/TPMchallengesnew.js b/public/react/src/modules/tpm/challengesnew/TPMchallengesnew.js index 2905699e7..9da0b79f5 100644 --- a/public/react/src/modules/tpm/challengesnew/TPMchallengesnew.js +++ b/public/react/src/modules/tpm/challengesnew/TPMchallengesnew.js @@ -427,14 +427,14 @@ export default class TPMchallengesnew extends Component { 返回 - + { next_challenge===undefined?"": + 下一关 + } { prev_challenge===undefined?"": 上一关 } - { next_challenge===undefined?"": - 下一关 - } +