新增表格参数(导出方式&导出文件类型)

This commit is contained in:
RuoYi
2021-05-24 10:40:36 +08:00
parent 2a826bd5b5
commit 1b7c5258f5
7 changed files with 113 additions and 2379 deletions

View File

@ -61,6 +61,8 @@ var table = {
showColumns: true,
showToggle: true,
showExport: false,
exportDataType: 'all',
exportTypes: ['csv', 'txt', 'doc', 'excel'],
clickToSelect: false,
singleSelect: false,
mobileResponsive: true,
@ -142,6 +144,8 @@ var table = {
responseHandler: $.table.responseHandler, // 在加载服务器发送来的数据之前处理函数
onLoadSuccess: $.table.onLoadSuccess, // 当所有数据被加载时触发处理函数
exportOptions: options.exportOptions, // 前端导出忽略列索引
exportDataType: options.exportDataType, // 导出方式默认all导出所有数据basic导出当前页的数据selected导出选中的数据
exportTypes: options.exportTypes, // 导出文件类型 json、xml、png、csv、txt、sql、doc、excel、xlsx、powerpoint、pdf
printPageBuilder: options.printPageBuilder, // 自定义打印页面模板
detailFormatter: options.detailFormatter, // 在行下面展示其他数据列表
});