[前端]添加比赛管理中查看提交的页面,未与后端对接[CI SKIP]

This commit is contained in:
esp
2015-08-26 11:28:26 +08:00
parent f2fb71b833
commit a2c90093a1
5 changed files with 133 additions and 5 deletions

View File

@@ -234,12 +234,15 @@ require(["jquery", "avalon", "csrfToken", "bsAlert", "editor", "datetimePicker",
vm.groupList[vm.choseGroupList[groupIndex].index].chose = false;
vm.choseGroupList.remove(vm.choseGroupList[groupIndex]);
},
add_problem: function () {
addProblem: function () {
vm.$fire("up!showContestProblemPage", 0, vm.contestList[vm.editingProblemContestIndex-1].id, vm.editMode);
},
showProblemEditor: function(el) {
vm.$fire("up!showContestProblemPage", el.id, vm.contestList[vm.editingProblemContestIndex-1].id, vm.editMode);
},
showSubmissionPage: function() {
vm.$fire("up!showContestSubmissionPage", el.id, vm.contestList[vm.editingProblemContestIndex-1].id, vm.editMode);
}
getYesOrNo: function(yORn) {
if (yORn) return "是";
return "否";