按钮样式调整

pull/4/head
RuoYi 2018-05-24 12:55:00 +08:00
parent 2cf599b461
commit 4c05b04889
27 changed files with 72 additions and 73 deletions

View File

@ -50,8 +50,8 @@ $(function() {
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
actions.push(statusTools(row)); actions.push(statusTools(row));
actions.push('<a class="btn btn-primary btn-sm ' + editFlag + '" href="#" title="编辑" mce_href="#" onclick="edit(\'' + row.jobId + '\')"><i class="fa fa-edit"></i></a> '); actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="edit(\'' + row.jobId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-warning btn-sm ' + removeFlag + '" href="#" title="删除" onclick="remove(\'' + row.jobId + '\')"><i class="fa fa-remove"></i></a>'); actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="remove(\'' + row.jobId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join(''); return actions.join('');
} }
}]; }];
@ -61,9 +61,9 @@ $(function() {
function statusTools(row) { function statusTools(row) {
if (row.status == 1) { if (row.status == 1) {
return '<a class="btn btn-primary btn-sm ' + statusFlag + '" href="#" title="启用" onclick="start(this,\'' + row.jobId + '\')"><i class="fa fa-check"></i></a> '; return '<a class="btn btn-info btn-xs ' + statusFlag + '" href="#" onclick="start(this,\'' + row.jobId + '\')"><i class="fa fa-play"></i>启用</a> ';
} else { } else {
return '<a class="btn btn-primary btn-sm ' + statusFlag + '" href="#" title="停用" onclick="stop(this,\'' + row.jobId + '\')"><i class="fa fa-minus"></i></a> '; return '<a class="btn btn-warning btn-xs ' + statusFlag + '" href="#" onclick="stop(this,\'' + row.jobId + '\')"><i class="fa fa-pause"></i>暂停</a> ';
} }
} }

View File

@ -49,7 +49,7 @@ $(function() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
actions.push('<a class="btn btn-warning btn-sm ' + removeFlag + '" href="#" title="删除" onclick="remove(\'' + row.jobLogId + '\')"><i class="fa fa-remove"></i></a>'); actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="remove(\'' + row.jobLogId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join(''); return actions.join('');
} }
}]; }];

View File

@ -52,7 +52,7 @@ $(function() {
title: '操作', title: '操作',
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var msg = '<a class="btn btn-warning btn-sm ' + forceFlag + '" href="#" title="强退" onclick="forceLogout(\'' + row.sessionId + '\')"><i class="fa fa-remove"></i></a> '; var msg = '<a class="btn btn-danger btn-xs ' + forceFlag + '" href="#" onclick="forceLogout(\'' + row.sessionId + '\')"><i class="fa fa-sign-out"></i>强退</a> ';
return msg; return msg;
} }
}]; }];

View File

@ -49,7 +49,7 @@ $(function() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
actions.push('<a class="btn btn-warning btn-sm ' + detailFlag + '" href="#" title="详细信息" onclick="detail(\'' + row.operId + '\')"><i class="fa fa-search"></i></a>'); actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="#" onclick="detail(\'' + row.operId + '\')"><i class="fa fa-search"></i>详细</a>');
return actions.join(''); return actions.join('');
} }
}]; }];

View File

@ -41,8 +41,8 @@ $(function() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
actions.push('<a class="btn btn-primary btn-sm ' + editFlag + '" href="#" title="编辑" mce_href="#" onclick="edit(\'' + row.configId + '\')"><i class="fa fa-edit"></i></a> '); actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="edit(\'' + row.configId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-warning btn-sm ' + removeFlag + '" href="#" title="删除" onclick="remove(\'' + row.configId + '\')"><i class="fa fa-remove"></i></a>'); actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="remove(\'' + row.configId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join(''); return actions.join('');
} }
}]; }];

View File

@ -18,7 +18,7 @@ function loading() {
title : '状态', title : '状态',
formatter : function(item, index) { formatter : function(item, index) {
if (item.status == '0') { if (item.status == '0') {
return '<span class="label label-primary">正常</span>'; return '<span class="label label-success">正常</span>';
} else if (item.status == '1') { } else if (item.status == '1') {
return '<span class="label label-danger">停用</span>'; return '<span class="label label-danger">停用</span>';
} }

View File

@ -45,8 +45,8 @@ $(function() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
actions.push('<a class="btn btn-primary btn-sm ' + editFlag + '" href="#" title="编辑字典" mce_href="#" onclick="edit(\'' + row.dictCode + '\')"><i class="fa fa-edit"></i></a> '); actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="edit(\'' + row.dictCode + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-warning btn-sm ' + removeFlag + '" href="#" title="删除" mce_href="#" onclick="remove(\'' + row.dictCode + '\')"><i class="fa fa-remove"></i></a>'); actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="remove(\'' + row.dictCode + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join(''); return actions.join('');
} }
}]; }];

View File

@ -41,9 +41,9 @@ $(function() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
actions.push('<a class="btn btn-primary btn-sm ' + editFlag + '" href="#" title="编辑" mce_href="#" onclick="edit(\'' + row.dictId + '\')"><i class="fa fa-edit"></i></a> '); actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="edit(\'' + row.dictId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-info btn-sm ' + listFlag + '" href="#" title="详细" onclick="detail(\'' + row.dictId + '\')"><i class="fa fa-list-ul"></i></a> '); actions.push('<a class="btn btn-info btn-xs ' + listFlag + '" href="#" onclick="detail(\'' + row.dictId + '\')"><i class="fa fa-list-ul"></i>列表</a> ');
actions.push('<a class="btn btn-warning btn-sm ' + removeFlag + '" href="#" title="删除" mce_href="#" onclick="remove(\'' + row.dictId + '\')"><i class="fa fa-remove"></i></a>'); actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="remove(\'' + row.dictId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join(''); return actions.join('');
} }
}]; }];

View File

@ -34,10 +34,10 @@ function loading() {
width : '10%', width : '10%',
formatter : function(item, index) { formatter : function(item, index) {
if (item.menuType == 'M') { if (item.menuType == 'M') {
return '<span class="label label-primary">目录</span>'; return '<span class="label label-success">目录</span>';
} }
if (item.menuType == 'C') { if (item.menuType == 'C') {
return '<span class="label label-success">菜单</span>'; return '<span class="label label-primary">菜单</span>';
} }
if (item.menuType == 'F') { if (item.menuType == 'F') {
return '<span class="label label-warning">按钮</span>'; return '<span class="label label-warning">按钮</span>';

View File

@ -40,8 +40,8 @@ $(function() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
actions.push('<a class="btn btn-primary btn-sm ' + editFlag + '" href="#" title="编辑" mce_href="#" onclick="edit(\'' + row.postId + '\')"><i class="fa fa-edit"></i></a> '); actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="edit(\'' + row.postId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-warning btn-sm ' + removeFlag + '" href="#" title="删除" onclick="remove(\'' + row.postId + '\')"><i class="fa fa-remove"></i></a>'); actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="remove(\'' + row.postId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join(''); return actions.join('');
} }
}]; }];

View File

@ -41,8 +41,8 @@ $(function() {
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
actions.push('<a class="btn btn-primary btn-sm ' + editFlag + '" href="#" title="编辑" mce_href="#" onclick="edit(\'' + row.roleId + '\')"><i class="fa fa-edit"></i></a> '); actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="edit(\'' + row.roleId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-warning btn-sm ' + removeFlag + '" href="#" title="删除" onclick="remove(\'' + row.roleId + '\')"><i class="fa fa-remove"></i></a>'); actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="remove(\'' + row.roleId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join(''); return actions.join('');
} }
}]; }];

View File

@ -53,9 +53,9 @@ function queryUserList() {
formatter: function(value, row, index) { formatter: function(value, row, index) {
if(row.userType == "N") { if(row.userType == "N") {
var actions = []; var actions = [];
actions.push('<a class="btn btn-primary btn-sm ' + editFlag + '" href="#" title="编辑" onclick="edit(\'' + row.userId + '\')"><i class="fa fa-edit"></i></a> '); actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="edit(\'' + row.userId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-warning btn-sm ' + removeFlag + '" href="#" title="删除" onclick="remove(\'' + row.userId + '\')"><i class="fa fa-remove"></i></a> '); actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="remove(\'' + row.userId + '\')"><i class="fa fa-remove"></i>删除</a> ');
actions.push('<a class="btn btn-success btn-sm ' + resetPwdFlag + '" href="#" title="重置" onclick="resetPwd(\'' + row.userId + '\')"><i class="fa fa-key"></i></a>'); actions.push('<a class="btn btn-info btn-xs ' + resetPwdFlag + '" href="#" onclick="resetPwd(\'' + row.userId + '\')"><i class="fa fa-key"></i>重置</a>');
return actions.join(''); return actions.join('');
} else { } else {
return ""; return "";

View File

@ -24,7 +24,7 @@ $(function() {
title: '操作', title: '操作',
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var msg = '<a class="btn btn-primary btn-sm" href="#" title="生成" onclick="genCode(\'' + row.tableName + '\')"><i class="fa fa-bug"></i></a> '; var msg = '<a class="btn btn-primary btn-xs" href="#" onclick="genCode(\'' + row.tableName + '\')"><i class="fa fa-bug"></i>生成代码</a> ';
return msg; return msg;
} }
}]; }];

View File

@ -6,14 +6,14 @@
<body class="gray-bg"> <body class="gray-bg">
<div class="wrapper wrapper-content"> <div class="wrapper wrapper-content">
<div class="btn-group hidden-xs" id="tableToolbar" role="group"> <div class="btn-group hidden-xs" id="tableToolbar" role="group">
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:add()'" shiro:hasPermission="monitor:job:add"> <button class="btn btn-outline btn-default" onclick="javascript:add()" shiro:hasPermission="monitor:job:add">
<i class="glyphicon glyphicon-plus"></i> <i class="fa fa-plus"></i> 新增
</button> </button>
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:batchRemove()'" shiro:hasPermission="monitor:job:batchRemove"> <button class="btn btn-outline btn-default" onclick="javascript:batchRemove()" shiro:hasPermission="monitor:job:batchRemove">
<i class="glyphicon glyphicon-trash"></i> <i class="fa fa-trash-o"></i> 删除
</button> </button>
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:jobLog()'" shiro:hasPermission="monitor:job:list"> <button class="btn btn-outline btn-default" onclick="javascript:jobLog()" shiro:hasPermission="monitor:job:list">
<i class="glyphicon glyphicon-list"></i> <i class="fa fa-list"></i> 详细
</button> </button>
</div> </div>
<table class="bootstrap-table" data-mobile-responsive="true" <table class="bootstrap-table" data-mobile-responsive="true"

View File

@ -6,8 +6,8 @@
<body class="gray-bg"> <body class="gray-bg">
<div class="wrapper wrapper-content"> <div class="wrapper wrapper-content">
<div class="btn-group hidden-xs" id="tableToolbar" role="group"> <div class="btn-group hidden-xs" id="tableToolbar" role="group">
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:batchRemove()'" shiro:hasPermission="monitor:job:batchRemove"> <button class="btn btn-outline btn-default" onclick="javascript:batchRemove()" shiro:hasPermission="monitor:job:batchRemove">
<i class="glyphicon glyphicon-trash"></i> <i class="fa fa-trash-o"></i> 删除
</button> </button>
</div> </div>
<table class="bootstrap-table" data-mobile-responsive="true" <table class="bootstrap-table" data-mobile-responsive="true"

View File

@ -6,8 +6,8 @@
<body class="gray-bg"> <body class="gray-bg">
<div class="wrapper wrapper-content"> <div class="wrapper wrapper-content">
<div class="btn-group hidden-xs" id="tableToolbar" role="group"> <div class="btn-group hidden-xs" id="tableToolbar" role="group">
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:batchRemove()'" shiro:hasPermission="monitor:logininfor:batchRemove"> <button class="btn btn-outline btn-default" onclick="javascript:batchRemove()" shiro:hasPermission="monitor:logininfor:batchRemove">
<i class="glyphicon glyphicon-trash"></i> <i class="fa fa-trash-o"></i> 删除
</button> </button>
</div> </div>
<table class="bootstrap-table" data-mobile-responsive="true" <table class="bootstrap-table" data-mobile-responsive="true"

View File

@ -6,8 +6,8 @@
<body class="gray-bg"> <body class="gray-bg">
<div class="wrapper wrapper-content"> <div class="wrapper wrapper-content">
<div class="btn-group hidden-xs" id="tableToolbar" role="group"> <div class="btn-group hidden-xs" id="tableToolbar" role="group">
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:batchForceLogout()'" shiro:hasPermission="monitor:online:batchForceLogout"> <button class="btn btn-outline btn-default" onclick="javascript:batchForceLogout()" shiro:hasPermission="monitor:online:batchForceLogout">
<i class="glyphicon glyphicon-trash"></i> <i class="fa fa-trash-o"></i> 删除
</button> </button>
</div> </div>

View File

@ -6,8 +6,8 @@
<body class="gray-bg"> <body class="gray-bg">
<div class="wrapper wrapper-content"> <div class="wrapper wrapper-content">
<div class="btn-group hidden-xs" id="tableToolbar" role="group"> <div class="btn-group hidden-xs" id="tableToolbar" role="group">
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:batchRemove()'" shiro:hasPermission="monitor:operlog:batchRemove"> <button class="btn btn-outline btn-default" onclick="javascript:batchRemove()" shiro:hasPermission="monitor:operlog:batchRemove">
<i class="glyphicon glyphicon-trash"></i> <i class="fa fa-trash-o"></i> 删除
</button> </button>
</div> </div>

View File

@ -5,11 +5,11 @@
<body class="gray-bg"> <body class="gray-bg">
<div class="wrapper wrapper-content"> <div class="wrapper wrapper-content">
<div class="btn-group hidden-xs" id="tableToolbar" role="group"> <div class="btn-group hidden-xs" id="tableToolbar" role="group">
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:add()'" shiro:hasPermission="system:config:add"> <button class="btn btn-outline btn-default" onclick="javascript:add()" shiro:hasPermission="system:config:add">
<i class="glyphicon glyphicon-plus"></i> <i class="fa fa-plus"></i> 新增
</button> </button>
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:batchRemove()'" shiro:hasPermission="system:config:batchRemove"> <button class="btn btn-outline btn-default" onclick="javascript:batchRemove()" shiro:hasPermission="system:config:batchRemove">
<i class="glyphicon glyphicon-trash"></i> <i class="fa fa-trash-o"></i> 删除
</button> </button>
</div> </div>
<table class="bootstrap-table" data-mobile-responsive="true"> <table class="bootstrap-table" data-mobile-responsive="true">

View File

@ -2,12 +2,12 @@
<html xmlns:th="http://www.w3.org/1999/xhtml"> <html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8"> <meta charset="utf-8">
<head th:include="include :: header"></head> <head th:include="include :: header"></head>
<body> <body class="gray-bg">
<div class="wrapper wrapper-content"> <div class="wrapper wrapper-content">
<div class="btn-group hidden-xs" id="tableToolbar" role="group"> <div class="btn-group hidden-xs" id="tableToolbar" role="group">
<div class="form-group"> <div class="form-group">
<button type="button" class="btn btn-outline btn-default" onclick="javascript:add(100)" shiro:hasPermission="system:dept:add"> <button type="button" class="btn btn-outline btn-default" onclick="javascript:add(100)" shiro:hasPermission="system:dept:add">
<i class="fa fa-plus"></i> 新增部门 <i class="fa fa-plus"></i> 新增
</button> </button>
</div> </div>
</div> </div>

View File

@ -5,14 +5,13 @@
<head th:include="include :: header"></head> <head th:include="include :: header"></head>
<body class="gray-bg"> <body class="gray-bg">
<div class="wrapper wrapper-content"> <div class="wrapper wrapper-content">
<input name="dictType" id="dictType" type="hidden" th:value="${dict.dictType}" /> <input name="dictType" id="dictType" type="hidden" th:value="${dict.dictType}" />
<div class="btn-group hidden-xs" id="tableToolbar" role="group"> <div class="btn-group hidden-xs" id="tableToolbar" role="group">
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:add()'" shiro:hasPermission="system:dict:add"> <button class="btn btn-outline btn-default" onclick="javascript:add()" shiro:hasPermission="system:dict:add">
<i class="glyphicon glyphicon-plus"></i> <i class="fa fa-plus"></i> 新增
</button> </button>
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:batchRemove()'" shiro:hasPermission="system:dict:batchRemove"> <button class="btn btn-outline btn-default" onclick="javascript:batchRemove()" shiro:hasPermission="system:dict:batchRemove">
<i class="glyphicon glyphicon-trash"></i> <i class="fa fa-trash-o"></i> 删除
</button> </button>
</div> </div>

View File

@ -6,11 +6,11 @@
<body class="gray-bg"> <body class="gray-bg">
<div class="wrapper wrapper-content"> <div class="wrapper wrapper-content">
<div class="btn-group hidden-xs" id="tableToolbar" role="group"> <div class="btn-group hidden-xs" id="tableToolbar" role="group">
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:add()'" shiro:hasPermission="system:dict:add"> <button class="btn btn-outline btn-default" nclick="javascript:add()" shiro:hasPermission="system:dict:add">
<i class="glyphicon glyphicon-plus"></i> <i class="fa fa-plus"></i> 新增
</button> </button>
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:batchRemove()'" shiro:hasPermission="system:dict:batchRemove"> <button class="btn btn-outline btn-default" onclick="javascript:batchRemove()" shiro:hasPermission="system:dict:batchRemove">
<i class="glyphicon glyphicon-trash"></i> <i class="fa fa-trash-o"></i> 删除
</button> </button>
</div> </div>

View File

@ -2,12 +2,12 @@
<html xmlns:th="http://www.w3.org/1999/xhtml"> <html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8"> <meta charset="utf-8">
<head th:include="include :: header"></head> <head th:include="include :: header"></head>
<body> <body class="gray-bg">
<div class="wrapper wrapper-content"> <div class="wrapper wrapper-content">
<div class="btn-group hidden-xs" id="tableToolbar" role="group"> <div class="btn-group hidden-xs" id="tableToolbar" role="group">
<div class="form-group"> <div class="form-group">
<button type="button" class="btn btn-outline btn-default" onclick="javascript:add(0)" shiro:hasPermission="system:menu:add"> <button type="button" class="btn btn-outline btn-default" onclick="javascript:add(0)" shiro:hasPermission="system:menu:add">
<i class="fa fa-plus"></i> 新增菜单 <i class="fa fa-plus"></i> 新增
</button> </button>
</div> </div>
</div> </div>

View File

@ -6,11 +6,11 @@
<body class="gray-bg"> <body class="gray-bg">
<div class="wrapper wrapper-content"> <div class="wrapper wrapper-content">
<div class="btn-group hidden-xs" id="tableToolbar" role="group"> <div class="btn-group hidden-xs" id="tableToolbar" role="group">
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:add()'" shiro:hasPermission="system:post:add"> <button class="btn btn-outline btn-default" onclick="javascript:add()" shiro:hasPermission="system:post:add">
<i class="glyphicon glyphicon-plus"></i> <i class="fa fa-plus"></i> 新增
</button> </button>
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:batchRemove()'" shiro:hasPermission="system:post:batchRemove"> <button class="btn btn-outline btn-default" onclick="javascript:batchRemove()" shiro:hasPermission="system:post:batchRemove">
<i class="glyphicon glyphicon-trash"></i> <i class="fa fa-trash-o"></i> 删除
</button> </button>
</div> </div>
<table class="bootstrap-table" data-mobile-responsive="true" <table class="bootstrap-table" data-mobile-responsive="true"

View File

@ -6,11 +6,11 @@
<body class="gray-bg"> <body class="gray-bg">
<div class="wrapper wrapper-content"> <div class="wrapper wrapper-content">
<div class="btn-group hidden-xs" id="tableToolbar" role="group"> <div class="btn-group hidden-xs" id="tableToolbar" role="group">
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:add()'" shiro:hasPermission="system:role:add"> <button class="btn btn-outline btn-default" onclick="javascript:add()" shiro:hasPermission="system:role:add">
<i class="glyphicon glyphicon-plus"></i> <i class="fa fa-plus"></i> 新增
</button> </button>
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:batchRemove()'" shiro:hasPermission="system:role:batchRemove"> <button class="btn btn-outline btn-default" onclick="javascript:batchRemove()" shiro:hasPermission="system:role:batchRemove">
<i class="glyphicon glyphicon-trash"></i> <i class="fa fa-trash-o"></i> 删除
</button> </button>
</div> </div>
<table class="bootstrap-table" data-mobile-responsive="true" <table class="bootstrap-table" data-mobile-responsive="true"

View File

@ -30,11 +30,11 @@
<div class="wrapper wrapper-content ui-layout-center"> <div class="wrapper wrapper-content ui-layout-center">
<div class="btn-group hidden-xs" id="tableToolbar" role="group"> <div class="btn-group hidden-xs" id="tableToolbar" role="group">
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:add()'" shiro:hasPermission="system:user:add"> <button class="btn btn-outline btn-default" onclick="javascript:add()" shiro:hasPermission="system:user:add">
<i class="glyphicon glyphicon-plus"></i> <i class="fa fa-plus"></i> 新增
</button> </button>
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:batchRemove()'" shiro:hasPermission="system:user:batchRemove"> <button class="btn btn-outline btn-default" onclick="javascript:batchRemove()" shiro:hasPermission="system:user:batchRemove">
<i class="glyphicon glyphicon-trash"></i> <i class="fa fa-trash-o"></i> 删除
</button> </button>
</div> </div>
<input type="hidden" id="deptId"> <input type="hidden" id="deptId">

View File

@ -5,8 +5,8 @@
<head th:include="include :: header"></head> <head th:include="include :: header"></head>
<body class="gray-bg"> <body class="gray-bg">
<div class="btn-group hidden-xs" id="tableToolbar" role="group"> <div class="btn-group hidden-xs" id="tableToolbar" role="group">
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:batchGenCode()'" shiro:hasPermission="tool:gen:code"> <button class="btn btn-outline btn-default" onclick="javascript:batchGenCode()" shiro:hasPermission="tool:gen:code">
<i class="glyphicon glyphicon-download-alt"></i> <i class="fa fa-download"></i> 批量生成
</button> </button>
</div> </div>
<div class="wrapper wrapper-content"> <div class="wrapper wrapper-content">