mirror of https://gitee.com/y_project/RuoYi.git
新增表格参数(是否支持打印页面showPrint)
parent
3111b66bdb
commit
dcf28440f7
|
@ -61,6 +61,7 @@ var table = {
|
|||
showColumns: true,
|
||||
showToggle: true,
|
||||
showExport: false,
|
||||
showPrint: false,
|
||||
exportDataType: 'all',
|
||||
exportTypes: ['csv', 'txt', 'doc', 'excel'],
|
||||
clickToSelect: false,
|
||||
|
@ -110,6 +111,7 @@ var table = {
|
|||
showColumns: options.showColumns, // 是否显示隐藏某列下拉框
|
||||
showToggle: options.showToggle, // 是否显示详细视图和列表视图的切换按钮
|
||||
showExport: options.showExport, // 是否支持导出文件
|
||||
showPrint: options.showPrint, // 是否支持打印页面
|
||||
showHeader: options.showHeader, // 是否显示表头
|
||||
showFullscreen: options.showFullscreen, // 是否显示全屏按钮
|
||||
uniqueId: options.uniqueId, // 唯一的标识符
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
data-print-filter 设置值以按此列过滤打印的数据。
|
||||
data-print-formatter 函数(值,行,索引)-返回字符串。格式化打印表中此列的单元格值。函数行为类似于“ formatter”列选项
|
||||
printIgnore 设置为true可以在打印页面中隐藏此列。 -->
|
||||
<table id="bootstrap-table" data-show-print="true"></table>
|
||||
<table id="bootstrap-table"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -27,6 +27,7 @@
|
|||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
showPrint: true,
|
||||
showSearch: false,
|
||||
showRefresh: false,
|
||||
showToggle: false,
|
||||
|
|
Loading…
Reference in New Issue