[前端]重新修改添加比赛中测试用例的上传方式,修复了bug,还没有写ajax上传比赛信息的部分,因为没有API[CI SKIP]

This commit is contained in:
esp
2015-08-11 19:43:23 +08:00
parent 381f623a9c
commit e089a550cc
4 changed files with 44 additions and 29 deletions

View File

@@ -134,7 +134,9 @@ require(["jquery", "avalon", "editor", "uploader", "bs_alert", "csrf", "tagEdito
input: respond.data.file_list.input[i],
output: respond.data.file_list.output[i]
});
}
bs_alert("测试数据添加成功!共添加"+vm.testCaseList.length +"组测试数据");
}
});
var hinteditor = editor("#hint");
@@ -147,7 +149,7 @@ require(["jquery", "avalon", "editor", "uploader", "bs_alert", "csrf", "tagEdito
memory: 256,
samples: [],
hint: "",
visible: false,
visible: true,
difficulty: 0,
tags: [],
tag: "",