带图片隐患导出提升到500

This commit is contained in:
caoqianming 2021-07-12 09:08:43 +08:00
parent fdeec7438a
commit 3e84c6a85c
2 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,3 @@
1.事故隐患界面增加无图片导出excel支持一次性导出1000条
2.增加应急预案的上传
2.增加应急预案
3.安全绩效下的个人安全绩效统计数字可点击链接查看

View File

@ -269,9 +269,9 @@ def exportxlsx(a,objs,pic=1):
res = HttpResponse()
res.write('数量超过1000,请查询后导出!')
return res
if pic==1 and yhobjs.count()>100:
if pic==1 and yhobjs.count()>500:
res = HttpResponse()
res.write('数量超过100,请查询后导出!')
res.write('数量超过500,请查询后导出!')
return res
vl = yhobjs.values('yhnum','fxr__name','yhms','yhzt','fxsj','tbsj','yhlb__dickeyname','yhpg__dickeyname','yhdd','fxbm__partname','yhdj__dickeyname','yhpg__dickeyname',
'jclx__dickeyname','yhlx__dicname','yyfx','zgcs','yhtp','zghtp','zgms','zgbm__partname','zgr__name','zgqx','shr__name','fcr__name')