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