select role_id, role_name, role_key, role_sort, status, create_time, remark from sys_role
-
- AND role_name like concat('%', #{roleName}, '%')
-
-
- AND role_key like concat('%', #{roleKey}, '%')
-
-
- AND status = #{status}
+
+ AND role_key like concat('%', #{searchValue}, '%') OR role_name like concat('%', #{searchValue}, '%')
diff --git a/src/main/resources/static/ruoyi/js/ry-ui.js b/src/main/resources/static/ruoyi/js/ry-ui.js
index 321f4a9b..c0fcc339 100644
--- a/src/main/resources/static/ruoyi/js/ry-ui.js
+++ b/src/main/resources/static/ruoyi/js/ry-ui.js
@@ -76,7 +76,7 @@ $(function(){
// 初始bootstrap table数据
$.initTable = function (_columns, _url) {
$('.bootstrap-table').bootstrapTable({
- method: 'get', // 请求方式(*)
+ method: 'post', // 请求方式(*)
dataType: "json", // 返回格式(*)
url: _url, // 请求后台的URL(*)
pagination: true, // 是否显示分页(*)
@@ -93,6 +93,7 @@ $(function(){
showToggle: true, // 是否显示详细视图和列表视图的切换按钮
cache: false, // 是否使用缓存
showExport: true, // 是否支持导出文件
+ contentType: "application/x-www-form-urlencoded", // 编码类型
queryParams: function(params) {
return {
// 传递参数查询参数
@@ -109,7 +110,7 @@ $(function(){
// 初始bootstrap table 自定义参数
$.initTableParams = function (_columns, _url, _queryParams) {
$('.bootstrap-table').bootstrapTable({
- method: 'get', // 请求方式(*)
+ method: 'post', // 请求方式(*)
dataType: "json", // 返回格式(*)
url: _url, // 请求后台的URL(*)
pagination: true, // 是否显示分页(*)
@@ -126,6 +127,7 @@ $(function(){
showToggle: true, // 是否显示详细视图和列表视图的切换按钮
cache: false, // 是否使用缓存
showExport: true, // 是否支持导出文件
+ contentType: "application/x-www-form-urlencoded", // 编码类型
queryParams: _queryParams,
columns: _columns
});
diff --git a/src/main/resources/static/ruoyi/system/role/role.js b/src/main/resources/static/ruoyi/system/role/role.js
index dd235d9a..614025c5 100644
--- a/src/main/resources/static/ruoyi/system/role/role.js
+++ b/src/main/resources/static/ruoyi/system/role/role.js
@@ -1,56 +1,53 @@
var prefix = ctx + "system/role"
$(function() {
- var options = {
- url: prefix + "/list",
- queryParams: queryParams,
- columns: [{
- checkbox: true
- },
- {
- field: 'roleId',
- title: '角色编号'
- },
- {
- field: 'roleName',
- title: '角色名称'
- },
- {
- field: 'roleKey',
- title: '权限字符'
- },
- {
- field: 'roleSort',
- title: '显示顺序'
- },
- {
- field: 'status',
- title: '状态',
- align: 'center',
- formatter: function(value, row, index) {
- if (value == 0) {
- return '正常';
- } else if (value == 1) {
- return '禁用';
- }
- }
- },
- {
- field: 'createDateTimeStr',
- title: '创建时间'
- },
- {
- title: '操作',
- align: 'center',
- formatter: function(value, row, index) {
- var actions = [];
- actions.push('编辑 ');
- actions.push('删除');
- return actions.join('');
- }
- }]
- };
- $.table.init(options);
+ var columns = [{
+ checkbox: true
+ },
+ {
+ field: 'roleId',
+ title: '角色编号'
+ },
+ {
+ field: 'roleName',
+ title: '角色名称'
+ },
+ {
+ field: 'roleKey',
+ title: '权限字符'
+ },
+ {
+ field: 'roleSort',
+ title: '显示顺序'
+ },
+ {
+ field: 'status',
+ title: '状态',
+ align: 'center',
+ formatter: function(value, row, index) {
+ if (value == 0) {
+ return '正常';
+ } else if (value == 1) {
+ return '禁用';
+ }
+ }
+ },
+ {
+ field: 'createDateTimeStr',
+ title: '创建时间'
+ },
+ {
+ title: '操作',
+ align: 'center',
+ formatter: function(value, row, index) {
+ var actions = [];
+ actions.push('编辑 ');
+ actions.push('删除');
+ return actions.join('');
+ }
+ }];
+ var url = prefix + "/list";
+ $.initTable(columns, url);
});
/*角色管理-搜索*/
diff --git a/src/main/resources/static/template/用户导入模板.xlsx b/src/main/resources/static/template/用户导入模板.xlsx
deleted file mode 100644
index ce242051..00000000
Binary files a/src/main/resources/static/template/用户导入模板.xlsx and /dev/null differ
diff --git a/src/main/resources/templates/include.html b/src/main/resources/templates/include.html
index 9258d07b..f521acdb 100644
--- a/src/main/resources/templates/include.html
+++ b/src/main/resources/templates/include.html
@@ -5,37 +5,37 @@
-
-
+
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
-
-
+
+
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html
index 53c1bb90..dd85a071 100644
--- a/src/main/resources/templates/index.html
+++ b/src/main/resources/templates/index.html
@@ -10,11 +10,11 @@
-
-
-
-
-
+
+
+
+
+
@@ -124,10 +124,10 @@
-
-
-
-
-
+
+
+
+
+