在线考试修改

This commit is contained in:
shilixia 2019-12-06 16:30:35 +08:00
parent 1019cd2549
commit 4552945fde
3 changed files with 5 additions and 5 deletions

View File

@ -205,7 +205,8 @@
data: { id: ksid, examdlid: examdlid},
success: function (data) {
alert(data.message);
alert(data.msg);
$("#dd").dialog("close");
}
});

View File

@ -126,7 +126,7 @@
<span>选择文件: </span>
<!--文件选择按钮-->
<a class="list" href="javascript:;">
<input id="file" type="file" name="myfile" onchange="UpladFile();" /><span>选择文件</span>
<input id="file" type="file" name="myfile" accept=".rtf,.doc,.txt,.pdf" onchange="UpladFile();" /><span>选择文件</span>
</a>

View File

@ -5381,11 +5381,10 @@ def apiexamtestdetail(req):
if a.createuser==user:
objss = ExamTestDetail.objects.get(id=examdlid)
objss.ison=0
objss.testnum=objss.testnum+1
objss.save()
return JsonResponse({"code":1,"message":"发布成功!"})
return JsonResponse({"code":1,"msg":"发布成功!"})
else:
return JsonResponse({"code":2,"message":"您没有发布权限!"})
return JsonResponse({"code":2,"msg":"您没有发布权限!"})
def apitrain(req):
if req.GET.get('a')=='listjoin':
userid = req.session['userid']