按部门搜说
This commit is contained in:
parent
66d3730917
commit
6214e6bfbe
|
|
@ -13,6 +13,7 @@
|
|||
/mysite/settings.py
|
||||
/safesite/token.txt
|
||||
/web.config
|
||||
/ratedata.dat
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
|
|
|||
|
|
@ -6186,7 +6186,8 @@ def apiexamtestdetail(req):
|
|||
if req.GET.get('search',None):
|
||||
rows=[]
|
||||
for i in data['rows']:
|
||||
if req.GET.get('search') in i['user__name']:
|
||||
search = req.GET.get('search')
|
||||
if search in i['user__name'] or search in i['user__ubelongpart__partname']:
|
||||
rows.append(i)
|
||||
data['rows'] = rows[startnum:endnum]
|
||||
return JsonResponse(data)
|
||||
|
|
|
|||
Loading…
Reference in New Issue