风险全厂待办任务修改

This commit is contained in:
曹前明 2022-05-24 10:07:41 +08:00
parent 9380406a69
commit 7ac7f2b133
1 changed files with 1 additions and 1 deletions

View File

@ -8369,7 +8369,7 @@ def apiriskacttask(req):
'taskdo', 'state', 'user__ubelongpart__partname', 'user__name', 'taskdo', 'istask') 'taskdo', 'state', 'user__ubelongpart__partname', 'user__name', 'taskdo', 'istask')
return HttpResponse(transjson(total, objs), content_type="application/json") return HttpResponse(transjson(total, objs), content_type="application/json")
elif a == 'listalltodo': # 全厂待办任务 elif a == 'listalltodo': # 全厂待办任务
objs = RiskActTask.objects.filter(istask=1, taskdo=None, usable=1) objs = RiskActTask.objects.filter(istask=1, taskdo=None, usable=1, user__usecomp__partid=companyid)
objs = objs.filter(riskact__table_type=req.GET.get('table_type', 1)) objs = objs.filter(riskact__table_type=req.GET.get('table_type', 1))
total = objs.count() total = objs.count()
startnum, endnum = fenye(req) startnum, endnum = fenye(req)