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