From 4881637c791667556af09da626d104574f24b268 Mon Sep 17 00:00:00 2001 From: esp Date: Tue, 25 Aug 2015 12:21:31 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=89=8D=E7=AB=AF]=E7=BB=9F=E4=B8=80admin?= =?UTF-8?q?=E4=B8=ADjs=E5=91=BD=E5=90=8D=E6=96=B9=E5=BC=8F.=20=20=E4=B8=BA?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=88=97=E8=A1=A8=E6=B7=BB=E5=8A=A0=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E6=8C=89=E9=92=AE[CI=20SKIP]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/admin/contest/{add_contest.js => addContest.js} | 0 .../app/admin/contest/{contest_list.js => contestList.js} | 0 .../app/admin/contest/{edit_problem.js => editProblem.js} | 0 .../app/admin/problem/{add_problem.js => addProblem.js} | 0 .../app/admin/problem/{edit_problem.js => editProblem.js} | 0 .../problem/{submission_list.js => submissionList.js} | 6 ++++-- template/admin/contest/add_contest.html | 2 +- template/admin/contest/contest_list.html | 2 +- template/admin/contest/edit_problem.html | 2 +- template/admin/problem/add_problem.html | 2 +- template/admin/problem/edit_problem.html | 2 +- template/admin/problem/submission_list.html | 8 +++++++- 12 files changed, 16 insertions(+), 8 deletions(-) rename static/src/js/app/admin/contest/{add_contest.js => addContest.js} (100%) rename static/src/js/app/admin/contest/{contest_list.js => contestList.js} (100%) rename static/src/js/app/admin/contest/{edit_problem.js => editProblem.js} (100%) rename static/src/js/app/admin/problem/{add_problem.js => addProblem.js} (100%) rename static/src/js/app/admin/problem/{edit_problem.js => editProblem.js} (100%) rename static/src/js/app/admin/problem/{submission_list.js => submissionList.js} (91%) diff --git a/static/src/js/app/admin/contest/add_contest.js b/static/src/js/app/admin/contest/addContest.js similarity index 100% rename from static/src/js/app/admin/contest/add_contest.js rename to static/src/js/app/admin/contest/addContest.js diff --git a/static/src/js/app/admin/contest/contest_list.js b/static/src/js/app/admin/contest/contestList.js similarity index 100% rename from static/src/js/app/admin/contest/contest_list.js rename to static/src/js/app/admin/contest/contestList.js diff --git a/static/src/js/app/admin/contest/edit_problem.js b/static/src/js/app/admin/contest/editProblem.js similarity index 100% rename from static/src/js/app/admin/contest/edit_problem.js rename to static/src/js/app/admin/contest/editProblem.js diff --git a/static/src/js/app/admin/problem/add_problem.js b/static/src/js/app/admin/problem/addProblem.js similarity index 100% rename from static/src/js/app/admin/problem/add_problem.js rename to static/src/js/app/admin/problem/addProblem.js diff --git a/static/src/js/app/admin/problem/edit_problem.js b/static/src/js/app/admin/problem/editProblem.js similarity index 100% rename from static/src/js/app/admin/problem/edit_problem.js rename to static/src/js/app/admin/problem/editProblem.js diff --git a/static/src/js/app/admin/problem/submission_list.js b/static/src/js/app/admin/problem/submissionList.js similarity index 91% rename from static/src/js/app/admin/problem/submission_list.js rename to static/src/js/app/admin/problem/submissionList.js index 21c451bf..405cffa7 100644 --- a/static/src/js/app/admin/problem/submission_list.js +++ b/static/src/js/app/admin/problem/submissionList.js @@ -1,4 +1,4 @@ -require(["jquery", "avalon", "csrfToken", "bsAlert", "formValidation"], function ($, avalon, csrfTokenHeader, bsAlert) { +require(["jquery", "avalon", "csrfToken", "bsAlert"], function ($, avalon, csrfTokenHeader, bsAlert) { avalon.ready(function () { avalon.vmodels.submissionList = null; @@ -41,9 +41,11 @@ require(["jquery", "avalon", "csrfToken", "bsAlert", "formValidation"], function getPage: function (page_index) { getPageData(page_index); }, - showSubmissionDetailPage: function (submissionId) { + }, + showProblemListPage: function(){ + vm.$fire("up!showProblemListPage"); } }); diff --git a/template/admin/contest/add_contest.html b/template/admin/contest/add_contest.html index a1042e8c..6f237c55 100644 --- a/template/admin/contest/add_contest.html +++ b/template/admin/contest/add_contest.html @@ -103,4 +103,4 @@ - + diff --git a/template/admin/contest/contest_list.html b/template/admin/contest/contest_list.html index 8163ad32..5c156299 100644 --- a/template/admin/contest/contest_list.html +++ b/template/admin/contest/contest_list.html @@ -185,4 +185,4 @@ - + diff --git a/template/admin/contest/edit_problem.html b/template/admin/contest/edit_problem.html index 43070362..331917ce 100644 --- a/template/admin/contest/edit_problem.html +++ b/template/admin/contest/edit_problem.html @@ -135,4 +135,4 @@ - + diff --git a/template/admin/problem/add_problem.html b/template/admin/problem/add_problem.html index fadea4cf..38c22c62 100644 --- a/template/admin/problem/add_problem.html +++ b/template/admin/problem/add_problem.html @@ -134,4 +134,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/template/admin/problem/edit_problem.html b/template/admin/problem/edit_problem.html index 3dd08708..0a2b7b57 100644 --- a/template/admin/problem/edit_problem.html +++ b/template/admin/problem/edit_problem.html @@ -140,4 +140,4 @@ - + diff --git a/template/admin/problem/submission_list.html b/template/admin/problem/submission_list.html index 6d94dabd..70aacb82 100644 --- a/template/admin/problem/submission_list.html +++ b/template/admin/problem/submission_list.html @@ -1,4 +1,10 @@
+

提交列表

@@ -25,4 +31,4 @@ - \ No newline at end of file + \ No newline at end of file