增加公开比赛题目的功能

This commit is contained in:
virusdefender
2015-10-29 18:58:21 +08:00
parent bad544544a
commit 38202b6bf2
7 changed files with 50 additions and 324 deletions

View File

@@ -68,6 +68,7 @@ require(["jquery", "avalon", "csrfToken", "bsAlert", "bootstrap"], function ($,
$id: "admin",
template_url: "template/" + hash + ".html",
username: "",
adminType: 1,
groupId: -1,
problemId: -1,
adminNavList: [],
@@ -91,6 +92,7 @@ require(["jquery", "avalon", "csrfToken", "bsAlert", "bootstrap"], function ($,
success: function(data){
if(!data.code){
vm.username = data.data.username;
vm.adminType = data.data.admin_type;
if (data.data.admin_type == 2){
vm.adminNavList = superAdminNav;
}