mirror of https://gitee.com/y_project/RuoYi.git
菜单、部门样式调整
parent
ce80396188
commit
970fbb23f8
|
@ -405,8 +405,8 @@ insert into sys_dict_type values(2, '菜单状态', 'sys_menu_visible', 0, 'admi
|
|||
insert into sys_dict_type values(3, '部门状态', 'sys_dept_status', 0, 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '部门状态列表');
|
||||
insert into sys_dict_type values(4, '岗位状态', 'sys_post_status', 0, 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '岗位状态列表');
|
||||
insert into sys_dict_type values(5, '字典状态', 'sys_dict_status', 0, 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '字典状态列表');
|
||||
insert into sys_dict_type values(5, '任务状态', 'sys_job_status', 0, 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '任务状态列表');
|
||||
insert into sys_dict_type values(6, '系统是否', 'sys_yes_no', 0, 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '系统是否列表');
|
||||
insert into sys_dict_type values(6, '任务状态', 'sys_job_status', 0, 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '任务状态列表');
|
||||
insert into sys_dict_type values(7, '系统是否', 'sys_yes_no', 0, 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '系统是否列表');
|
||||
|
||||
-- ----------------------------
|
||||
-- 11、字典数据表
|
|
@ -34,9 +34,9 @@ function loading() {
|
|||
formatter : function(row, index) {
|
||||
if(row.parentId != 0) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-primary btn-sm ' + editFlag + '" href="#" title="编辑" mce_href="#" onclick="edit(\'' + row.deptId + '\')"><i class="fa fa-edit"></i></a> ');
|
||||
actions.push('<a class="btn btn-primary btn-sm ' + addFlag + '" href="#" title="新增" mce_href="#" onclick="add(\'' + row.deptId + '\')"><i class="fa fa-plus"></i></a> ');
|
||||
actions.push('<a class="btn btn-warning btn-sm ' + removeFlag + '" href="#" title="删除" mce_href="#" onclick="remove(\'' + row.deptId + '\')"><i class="fa fa-remove"></i></a>');
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="edit(\'' + row.deptId + '\')"><i class="fa fa-edit">编辑</i></a> ');
|
||||
actions.push('<a class="btn btn-info btn-xs ' + addFlag + '" href="#" onclick="add(\'' + row.deptId + '\')"><i class="fa fa-plus">新增</i></a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="remove(\'' + row.deptId + '\')"><i class="fa fa-remove">删除</i></a>');
|
||||
return actions.join('');
|
||||
} else {
|
||||
return "";
|
||||
|
|
|
@ -9,6 +9,7 @@ function loading() {
|
|||
{
|
||||
title : '菜单名称',
|
||||
field : 'menuName',
|
||||
width : '20%',
|
||||
formatter : function(row, index) {
|
||||
if(row.icon == null || row == "") {
|
||||
return row.menuName;
|
||||
|
@ -19,17 +20,18 @@ function loading() {
|
|||
},
|
||||
{
|
||||
field : 'orderNum',
|
||||
title : '排序'
|
||||
title : '排序',
|
||||
width : '10%',
|
||||
},
|
||||
{
|
||||
field : 'url',
|
||||
title : '请求地址'
|
||||
title : '请求地址',
|
||||
width : '15%',
|
||||
},
|
||||
{
|
||||
title : '类型',
|
||||
field : 'menuType',
|
||||
align : 'center',
|
||||
valign : 'middle',
|
||||
width : '10%',
|
||||
formatter : function(item, index) {
|
||||
if (item.menuType == 'M') {
|
||||
return '<span class="label label-primary">目录</span>';
|
||||
|
@ -45,7 +47,7 @@ function loading() {
|
|||
{
|
||||
field: 'visible',
|
||||
title: '可见',
|
||||
align: 'center',
|
||||
width : '10%',
|
||||
formatter: function(row, index) {
|
||||
if (row.visible == 0) {
|
||||
return '<span class="label label-success">显示</span>';
|
||||
|
@ -56,16 +58,17 @@ function loading() {
|
|||
},
|
||||
{
|
||||
field : 'perms',
|
||||
title : '权限标识'
|
||||
title : '权限标识',
|
||||
width : '15%',
|
||||
},
|
||||
{
|
||||
title : '操作',
|
||||
align : 'center',
|
||||
width : '20%',
|
||||
formatter : function(row, index) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-primary btn-sm ' + editFlag + '" href="#" title="编辑" mce_href="#" onclick="edit(\'' + row.menuId + '\')"><i class="fa fa-edit"></i></a> ');
|
||||
actions.push('<a class="btn btn-primary btn-sm ' + addFlag + '" href="#" title="新增" mce_href="#" onclick="add(\'' + row.menuId + '\')"><i class="fa fa-plus"></i></a> ');
|
||||
actions.push('<a class="btn btn-warning btn-sm ' + removeFlag + '" href="#" title="删除" mce_href="#" onclick="remove(\'' + row.menuId + '\')"><i class="fa fa-remove"></i></a>');
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" mce_href="#" onclick="edit(\'' + row.menuId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||
actions.push('<a class="btn btn-info btn-xs ' + addFlag + '" href="#" onclick="add(\'' + row.menuId + '\')"><i class="fa fa-plus"></i>新增</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="remove(\'' + row.menuId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}];
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
<html xmlns:th="http://www.w3.org/1999/xhtml">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="gray-bg">
|
||||
<body>
|
||||
<div class="wrapper wrapper-content">
|
||||
<div class="btn-group hidden-xs" id="tableToolbar" role="group">
|
||||
<div class="form-group">
|
||||
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:add(100)'" shiro:hasPermission="system:dept:add">
|
||||
<i class="glyphicon glyphicon-plus"></i>
|
||||
<button type="button" class="btn btn-outline btn-default" onclick="javascript:add(100)" shiro:hasPermission="system:dept:add">
|
||||
<i class="fa fa-plus"></i> 新增部门
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
<html xmlns:th="http://www.w3.org/1999/xhtml">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="gray-bg">
|
||||
<body>
|
||||
<div class="wrapper wrapper-content">
|
||||
<div class="btn-group hidden-xs" id="tableToolbar" role="group">
|
||||
<div class="form-group">
|
||||
<button type="button" class="btn btn-outline btn-default" th:onclick="'javascript:add(0)'" shiro:hasPermission="system:menu:add">
|
||||
<i class="glyphicon glyphicon-plus"></i>
|
||||
<button type="button" class="btn btn-outline btn-default" onclick="javascript:add(0)" shiro:hasPermission="system:menu:add">
|
||||
<i class="fa fa-plus"></i> 新增菜单
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue