Browse Source

多表格切换表单查询参数

pull/340/head
RuoYi 3 years ago
parent
commit
086458b89d
  1. 1
      ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
  2. 2
      ruoyi-admin/src/main/resources/templates/demo/table/multi.html

1
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

@ -163,6 +163,7 @@ var table = {
}, },
// 查询条件 // 查询条件
queryParams: function(params) { queryParams: function(params) {
table.set();
var curParams = { var curParams = {
// 传递参数查询参数 // 传递参数查询参数
pageSize: params.limit, pageSize: params.limit,

2
ruoyi-admin/src/main/resources/templates/demo/table/multi.html

@ -86,6 +86,7 @@
$(function() { $(function() {
var options = { var options = {
id: "bootstrap-table1", id: "bootstrap-table1",
formId: "form1",
toolbar: "toolbar1", toolbar: "toolbar1",
url: prefix + "/list", url: prefix + "/list",
createUrl: prefix + "/add", createUrl: prefix + "/add",
@ -145,6 +146,7 @@
$(function() { $(function() {
var options = { var options = {
id: "bootstrap-table2", id: "bootstrap-table2",
formId: "form2",
toolbar: "toolbar2", toolbar: "toolbar2",
url: prefix + "/list", url: prefix + "/list",
createUrl: prefix + "/add", createUrl: prefix + "/add",

Loading…
Cancel
Save