+
-
+
+
+
@@ -23,12 +79,9 @@
$(function() {
var options = {
- id: "bootstrap-table-1",
+ id: "bootstrap-table1",
+ toolbar: "toolbar1",
url: prefix + "/list",
- createUrl: prefix + "/add",
- updateUrl: prefix + "/edit/{id}",
- removeUrl: prefix + "/remove",
- exportUrl: prefix + "/export",
showSearch: false,
showRefresh: false,
showToggle: false,
@@ -73,8 +126,8 @@
align: 'center',
formatter: function(value, row, index) {
var actions = [];
- actions.push('
编辑 ');
- actions.push('
删除');
+ actions.push('
编辑 ');
+ actions.push('
删除');
return actions.join('');
}
}]
@@ -82,21 +135,16 @@
$.table.init(options);
});
- function queryParams(params) {
- var search = $.table.queryParams(params);
- search.userName = '测试1';
- return search;
- }
$(function() {
var options = {
- id: "bootstrap-table-2",
+ id: "bootstrap-table2",
+ toolbar: "toolbar2",
url: prefix + "/list",
showSearch: false,
showRefresh: false,
showToggle: false,
showColumns: false,
- queryParams: queryParams,
columns: [{
checkbox: true
},
@@ -137,8 +185,8 @@
align: 'center',
formatter: function(value, row, index) {
var actions = [];
- actions.push('
编辑 ');
- actions.push('
删除');
+ actions.push('
编辑 ');
+ actions.push('
删除');
return actions.join('');
}
}]
diff --git a/ruoyi-admin/src/main/resources/templates/monitor/operlog/operlog.html b/ruoyi-admin/src/main/resources/templates/monitor/operlog/operlog.html
index 3cef2bb7..bad0f1f2 100644
--- a/ruoyi-admin/src/main/resources/templates/monitor/operlog/operlog.html
+++ b/ruoyi-admin/src/main/resources/templates/monitor/operlog/operlog.html
@@ -151,7 +151,7 @@
function searchPre() {
var data = {};
data.businessTypes = $.common.join($('#businessTypes').selectpicker('val'));
- $.table.search('operlog-form', data);
+ $.table.search('operlog-form', 'bootstrap-table', data);
}
function resetPre() {