[前端]添加了后台比赛列表对问题的添加修改页面[CI SKIP]

This commit is contained in:
esp
2015-08-23 17:36:35 +08:00
parent cca4bb3852
commit b5313ce908
3 changed files with 320 additions and 0 deletions

View File

@@ -123,6 +123,17 @@ define("admin", ["jquery", "avalon"], function ($, avalon) {
vm.template_url = "template/problem/submission_list.html";
});
vm.$watch("showContestProblemPage", function (problemId, contestId) {
vm.problemId = problemId;
vm.contestId = contestId;
vm.template_url = "template/contest/edit_problem.html";
});
vm.$watch("showContestListPage", function (problemId) {
vm.problemId = problemId;
vm.template_url = "template/contest/contest_list.html";
});
avalon.scan();
window.onhashchange = function () {