fengkai bug
This commit is contained in:
parent
f69af3c2c4
commit
59a6386b50
Binary file not shown.
|
@ -40,14 +40,14 @@
|
|||
|
||||
$("#user").append(divUserHtml);
|
||||
|
||||
for (var i = 1; i <= data.testdetail.length; i++) {
|
||||
for (var i = 0; i <= data.testdetail.length; i++) {
|
||||
|
||||
|
||||
if (data.testdetail[i].question__type == 3)
|
||||
{
|
||||
var divHtml = "";
|
||||
divHtml += '<div style="margin-left:30px;padding-bottom:13px">';
|
||||
divHtml += '<span style="color:blue">' + "【判断题】</span></span>"+"第"+i+"题:" + data.testdetail[i].question__title +'</span>';
|
||||
divHtml += '<span style="color:blue">' + "【判断题】</span></span>"+"第"+(i+1)+"题:" + data.testdetail[i].question__title +'</span>';
|
||||
divHtml += '<span style=" margin-left: 40px; color:#d5cc1d;">此题得分:' + data.testdetail[i].iscore + ' 分</span>';
|
||||
divHtml += '<br />';
|
||||
for (var item in data.testdetail[i].question__answer) {
|
||||
|
@ -69,7 +69,7 @@
|
|||
var divHtml = "";
|
||||
var answrText = "";
|
||||
divHtml += '<div style="margin-left:30px;padding-bottom:13px">';
|
||||
divHtml += '<span style="color:blue">' + "【多选题】</span></span>" +"第" + i + "题:" + data.testdetail[i].question__title + '</span>';
|
||||
divHtml += '<span style="color:blue">' + "【多选题】</span></span>" +"第" + (i+1) + "题:" + data.testdetail[i].question__title + '</span>';
|
||||
divHtml += '<span style=" margin-left: 40px; color:#d5cc1d;">此题得分:' + data.testdetail[i].iscore + ' 分</span>';
|
||||
divHtml += '<br />';
|
||||
for (var item in data.testdetail[i].question__answer) {
|
||||
|
@ -94,7 +94,7 @@
|
|||
var divHtml = "";
|
||||
var answrText = "";
|
||||
divHtml += '<div style="margin-left:30px;padding-bottom:13px">';
|
||||
divHtml += '<span style="color:blue">' + "【单选题】</span></span>" + "第" + i + "题:" + data.testdetail[i].question__title + '</span>';
|
||||
divHtml += '<span style="color:blue">' + "【单选题】</span></span>" + "第" + (i+1) + "题:" + data.testdetail[i].question__title + '</span>';
|
||||
divHtml += '<span style=" margin-left: 40px; color:#d5cc1d;">此题得分:' + data.testdetail[i].iscore + ' 分</span>';
|
||||
divHtml += '<br />';
|
||||
for (var item in data.testdetail[i].question__answer) {
|
||||
|
|
|
@ -2235,7 +2235,8 @@ def charthandle(req):
|
|||
else:
|
||||
partid = companyid
|
||||
for i in Partment.objects.filter(Q(partid=partid) | Q(parentid__partid=partid)).order_by('partid'):
|
||||
x = Train.objects.filter(trainpart=i, state=1, deletemark=1, starttime__range=(
|
||||
parts = Partment.objects.filter(Q(partid=i.partid)|Q(partlink__contains=','+str(i.partid)+','))
|
||||
x = Train.objects.filter(trainpart__in=parts, state=1, deletemark=1, starttime__range=(
|
||||
first_day, first_day_of_next_month))
|
||||
b = i.partname
|
||||
c = x.count()
|
||||
|
@ -2256,7 +2257,8 @@ def charthandle(req):
|
|||
first_day, first_day_of_next_month = gettime(datetime(year, month, 1))
|
||||
alist = []
|
||||
for i in Partment.objects.filter(Q(partid=partid) | Q(parentid__partid=partid)).order_by('partid'):
|
||||
x = Drill.objects.filter(drillpart=i, state=1, deletemark=1, starttime__range=(
|
||||
parts = Partment.objects.filter(Q(partid=i.partid)|Q(partlink__contains=','+str(i.partid)+','))
|
||||
x = Drill.objects.filter(drillpart__in=parts, state=1, deletemark=1, starttime__range=(
|
||||
first_day, first_day_of_next_month))
|
||||
b = i.partname
|
||||
c = x.count()
|
||||
|
|
Loading…
Reference in New Issue