From aebad83d27dc65aecd859543b920568fbc3e4159 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sun, 17 Apr 2022 12:01:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E6=82=A3=E5=A2=9E=E5=8A=A0=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- safesite/templates/trouble.html | 20 +++++++++++++++++++- safesite/views.py | 8 ++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/safesite/templates/trouble.html b/safesite/templates/trouble.html index 86d15f3a..7550751a 100644 --- a/safesite/templates/trouble.html +++ b/safesite/templates/trouble.html @@ -34,6 +34,9 @@ {% if request|has_permission:'b_trouble_exportxls' %} 导出无图Excel {% endif %} + {% if request|has_permission:'b_trouble_exportxls' %} + 导出选中 + {% endif %}
@@ -98,7 +101,6 @@ $('#yhtable').datagrid({ rownumbers: true, - singleSelect: true, striped: true, method: 'get', url: '', @@ -109,6 +111,7 @@ border: false, columns: [[ { field: 'troubleid', hidden: true }, + { field: 'ck', checkbox: true , width: 20}, { field: 'yhnum', title: '编号', width: 100 }, { field: 'yhzt', title: '流程状态', width: 100, styler: function (value, row, index) { @@ -338,6 +341,21 @@ window.open(url); // $('
').appendTo('body').submit().remove(); } + function exportyhexcel3() { + var rows = $('#yhtable').datagrid('getSelections'); + if(rows.length>0){ + var data = {'ids':[]} + for(var i=0;i