分析报告bug
This commit is contained in:
parent
1d9b54a255
commit
f21dd82c96
|
@ -20,6 +20,9 @@
|
|||
$('#reportjy').val($('#jydiv').text())
|
||||
function reportsubmit() {
|
||||
var data = $('#reportff').serializeJSON();
|
||||
var year = $('#year').combobox('getValue');
|
||||
var month = $('#month').combobox('getValue');
|
||||
var part = $('#part').combobox('getValue');
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'api/report?a=add&year='+year+'&month='+month+'&part='+part,
|
||||
|
|
|
@ -8057,6 +8057,7 @@ def apireport(req):
|
|||
objs = objs.filter(part__partid=part)
|
||||
else:
|
||||
objs = objs.filter(part=User.objects.get(userid=userid).usecomp)
|
||||
print(objs)
|
||||
if objs.exists():
|
||||
return JsonResponse({'code': 1, 'data': objs.values('id', 'cause', 'suggest')[0]})
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue