diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js index 7d30657a6..2898fa4d7 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js @@ -130,6 +130,7 @@ var table = { onReorderRow: options.onReorderRow, // 当拖拽结束后处理函数 queryParams: options.queryParams, // 传递参数(*) rowStyle: options.rowStyle, // 通过自定义函数设置行样式 + footerStyle: options.footerStyle, // 通过自定义函数设置页脚样式 columns: options.columns, // 显示列信息(*) data: options.data, // 被加载的数据 responseHandler: $.table.responseHandler, // 在加载服务器发送来的数据之前处理函数 diff --git a/ruoyi-admin/src/main/resources/templates/demo/table/footer.html b/ruoyi-admin/src/main/resources/templates/demo/table/footer.html index 2e1f25a62..0988f8d68 100644 --- a/ruoyi-admin/src/main/resources/templates/demo/table/footer.html +++ b/ruoyi-admin/src/main/resources/templates/demo/table/footer.html @@ -24,6 +24,7 @@ showRefresh: false, showToggle: false, showColumns: false, + footerStyle: footerStyle, columns: [{ checkbox: true }, @@ -78,6 +79,17 @@ }; $.table.init(options); }); + + function footerStyle(column) { + return { +// userBalance: { +// classes: 'class' +// }, + userBalance: { + css: { color: 'red', 'font-weight': 'normal' } + } + }[column.field] + } \ No newline at end of file