From 3e84c6a85c0a29fc2c4dd921817c95ad8f54d978 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 12 Jul 2021 09:08:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=A6=E5=9B=BE=E7=89=87=E9=9A=90=E6=82=A3?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=8F=90=E5=8D=87=E5=88=B0500?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/个人安全绩效等功能.txt | 2 +- safesite/export.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/个人安全绩效等功能.txt b/doc/个人安全绩效等功能.txt index d451bd29..30b147f5 100644 --- a/doc/个人安全绩效等功能.txt +++ b/doc/个人安全绩效等功能.txt @@ -1,3 +1,3 @@ 1.事故隐患界面增加无图片导出excel(支持一次性导出1000条) -2.增加应急预案的上传 +2.增加应急预案 3.安全绩效下的个人安全绩效统计数字可点击链接查看 \ No newline at end of file diff --git a/safesite/export.py b/safesite/export.py index 9784f896..fe294ec4 100644 --- a/safesite/export.py +++ b/safesite/export.py @@ -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')