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 19c0467f..eaf77120 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 @@ -67,6 +67,13 @@ return { rows: [], total: 0 }; } }, + // 序列号生成 + serialNumber: function (index) { + var table = $('#bootstrap-table').bootstrapTable('getOptions'); + var pageSize = table.pageSize; + var pageNumber = table.pageNumber; + return pageSize * (pageNumber - 1) + index + 1; + }, // 搜索-默认第一个form search: function(formId) { var currentId = $.common.isEmpty(formId) ? $('form').attr('id') : formId; diff --git a/ruoyi-admin/src/main/resources/templates/monitor/online/online.html b/ruoyi-admin/src/main/resources/templates/monitor/online/online.html index d9ff2ea6..8b0906ed 100644 --- a/ruoyi-admin/src/main/resources/templates/monitor/online/online.html +++ b/ruoyi-admin/src/main/resources/templates/monitor/online/online.html @@ -53,6 +53,13 @@ columns: [{ checkbox: true }, + { + title: "序号", + align: "center", + formatter: function (value, row, index) { + return $.table.serialNumber(index); + } + }, { field: 'sessionId', title: '会话编号' diff --git a/ruoyi-admin/src/main/resources/templates/tool/gen/gen.html b/ruoyi-admin/src/main/resources/templates/tool/gen/gen.html index 42df3c32..cc51e13f 100644 --- a/ruoyi-admin/src/main/resources/templates/tool/gen/gen.html +++ b/ruoyi-admin/src/main/resources/templates/tool/gen/gen.html @@ -55,6 +55,13 @@ columns: [{ checkbox: true }, + { + title: "序号", + align: "center", + formatter: function (value, row, index) { + return $.table.serialNumber(index); + } + }, { field: 'tableName', title: '表名称',