From 947120d136a1da56b44c8114f030bf87707a0fe0 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sat, 29 Aug 2020 11:44:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=A1=A8=E6=A0=BC=E5=8F=82?= =?UTF-8?q?=E6=95=B0=EF=BC=88=E9=80=9A=E8=BF=87=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E8=AE=BE=E7=BD=AE=E9=A1=B5=E8=84=9A=E6=A0=B7?= =?UTF-8?q?=E5=BC=8FfooterStyle=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/ruoyi/js/ry-ui.js | 1 + .../main/resources/templates/demo/table/footer.html | 12 ++++++++++++ 2 files changed, 13 insertions(+) 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