|
@@ -95946,15 +95946,31 @@ define(['exports'], function (exports) { 'use strict';
|
|
|
floated: false,
|
|
|
width: 300,
|
|
|
docked: 'left',
|
|
|
- items: [{
|
|
|
- text: '导出表格当前的数据',
|
|
|
+ items: [
|
|
|
+ {
|
|
|
+ text: '大批量导出 (需要客户端支持!)',
|
|
|
+ iconCls: 'x-fa fa-download',
|
|
|
+ listeners: {
|
|
|
+ click: function (sender, value) {
|
|
|
+ // @ts-ignore
|
|
|
+ YvanUI.confirm('大批量数据导出会占用大量服务器资源和带宽资源,您真的要导出吗?')
|
|
|
+ .then(function (res) {
|
|
|
+ grid.exportBigExcelClick();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ '-',
|
|
|
+ {
|
|
|
+ text: '导出当前数据',
|
|
|
iconCls: 'x-fa fa-download',
|
|
|
listeners: {
|
|
|
click: function (sender, value) {
|
|
|
grid.exportCurrentExcelClick();
|
|
|
}
|
|
|
}
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
xtype: "textfield",
|
|
|
fieldLabel: '当前导出页',
|
|
|
maskRe: /[0-9]/,
|
|
@@ -95978,7 +95994,8 @@ define(['exports'], function (exports) { 'use strict';
|
|
|
grid.exportExcelCurrentPage = v + "";
|
|
|
}
|
|
|
}
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
xtype: "textfield",
|
|
|
fieldLabel: '导出页大小',
|
|
|
maskRe: /[0-9]/,
|
|
@@ -96008,12 +96025,14 @@ define(['exports'], function (exports) { 'use strict';
|
|
|
grid.exportExcelPageSize = v + "";
|
|
|
}
|
|
|
}
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
xtype: "textfield",
|
|
|
fieldLabel: '总条数',
|
|
|
value: grid.exportExcelTotal,
|
|
|
readOnly: true
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
text: '导出',
|
|
|
iconCls: 'x-fa fa-download',
|
|
|
listeners: {
|
|
@@ -96025,20 +96044,7 @@ define(['exports'], function (exports) { 'use strict';
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- '-',
|
|
|
- {
|
|
|
- text: '大批量导出 (会占用大量服务器资源,需要客户端支持,请慎用!)',
|
|
|
- iconCls: 'x-fa fa-download',
|
|
|
- listeners: {
|
|
|
- click: function (sender, value) {
|
|
|
- // @ts-ignore
|
|
|
- YvanUI.confirm('大批量数据导出会占用大量服务器资源和带宽资源,您真的要导出吗?')
|
|
|
- .then(function (res) {
|
|
|
- grid.exportBigExcelClick();
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- }]
|
|
|
+ ]
|
|
|
});
|
|
|
treeMenu.showAt(rect.left, rect.top - 120);
|
|
|
// for (let i = 1; i < grid.headerCt.getColumnCount(); i++) {
|