Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaru
fgqyxxlr
Commits
0bad8896
Commit
0bad8896
authored
May 13, 2019
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
防止操作跳到页面顶端
parent
7662c1ee
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
43 additions
and
46 deletions
+43
-46
ruoyi-admin/src/main/resources/templates/monitor/online/online.html
+1
-1
ruoyi-admin/src/main/resources/templates/monitor/operlog/operlog.html
+1
-1
ruoyi-admin/src/main/resources/templates/system/config/config.html
+2
-2
ruoyi-admin/src/main/resources/templates/system/dept/dept.html
+3
-3
ruoyi-admin/src/main/resources/templates/system/dict/data/data.html
+2
-2
ruoyi-admin/src/main/resources/templates/system/dict/type/type.html
+4
-4
ruoyi-admin/src/main/resources/templates/system/menu/menu.html
+3
-3
ruoyi-admin/src/main/resources/templates/system/notice/notice.html
+2
-2
ruoyi-admin/src/main/resources/templates/system/post/post.html
+2
-2
ruoyi-admin/src/main/resources/templates/system/role/authUser.html
+1
-1
ruoyi-admin/src/main/resources/templates/system/role/role.html
+4
-4
ruoyi-admin/src/main/resources/templates/system/user/user.html
+3
-3
ruoyi-generator/src/main/resources/templates/tool/gen/gen.html
+1
-1
ruoyi-generator/src/main/resources/vm/html/list.html.vm
+2
-3
ruoyi-quartz/src/main/resources/templates/monitor/job/job.html
+2
-2
ruoyi-quartz/src/main/resources/templates/monitor/job/jobLog.html
+1
-1
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java
+3
-3
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java
+5
-4
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
+1
-4
No files found.
ruoyi-admin/src/main/resources/templates/monitor/online/online.html
View file @
0bad8896
...
...
@@ -113,7 +113,7 @@
title
:
'操作'
,
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
msg
=
'<a class="btn btn-danger btn-xs '
+
forceFlag
+
'" href="
#
" onclick="forceLogout(
\'
'
+
row
.
sessionId
+
'
\'
)"><i class="fa fa-sign-out"></i>强退</a> '
;
var
msg
=
'<a class="btn btn-danger btn-xs '
+
forceFlag
+
'" href="
javascript:void(0)
" onclick="forceLogout(
\'
'
+
row
.
sessionId
+
'
\'
)"><i class="fa fa-sign-out"></i>强退</a> '
;
return
msg
;
}
}]
...
...
ruoyi-admin/src/main/resources/templates/monitor/operlog/operlog.html
View file @
0bad8896
...
...
@@ -139,7 +139,7 @@
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-warning btn-xs '
+
detailFlag
+
'" href="
#
" onclick="$.operate.detail(
\'
'
+
row
.
operId
+
'
\'
)"><i class="fa fa-search"></i>详细</a>'
);
actions
.
push
(
'<a class="btn btn-warning btn-xs '
+
detailFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.detail(
\'
'
+
row
.
operId
+
'
\'
)"><i class="fa fa-search"></i>详细</a>'
);
return
actions
.
join
(
''
);
}
}]
...
...
ruoyi-admin/src/main/resources/templates/system/config/config.html
View file @
0bad8896
...
...
@@ -117,8 +117,8 @@
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="
#
" onclick="$.operate.edit(
\'
'
+
row
.
configId
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="
#
" onclick="$.operate.remove(
\'
'
+
row
.
configId
+
'
\'
)"><i class="fa fa-remove"></i>删除</a>'
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.edit(
\'
'
+
row
.
configId
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.remove(
\'
'
+
row
.
configId
+
'
\'
)"><i class="fa fa-remove"></i>删除</a>'
);
return
actions
.
join
(
''
);
}
}]
...
...
ruoyi-admin/src/main/resources/templates/system/dept/dept.html
View file @
0bad8896
...
...
@@ -95,9 +95,9 @@
formatter
:
function
(
value
,
row
,
index
)
{
if
(
row
.
parentId
!=
0
)
{
var
actions
=
[];
actions
.
push
(
'<a class="'
+
editFlag
+
'" href="
#
" onclick="$.operate.edit(
\'
'
+
row
.
deptId
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a>'
);
actions
.
push
(
'<a class="'
+
removeFlag
+
'" href="
#
" onclick="$.operate.remove(
\'
'
+
row
.
deptId
+
'
\'
)"><i class="fa fa-trash"></i>删除</a>'
);
actions
.
push
(
'<a class="'
+
addFlag
+
'" href="
#
" onclick="$.operate.add(
\'
'
+
row
.
deptId
+
'
\'
)"><i class="fa fa-plus"></i>添加下级部门</a>'
);
actions
.
push
(
'<a class="'
+
editFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.edit(
\'
'
+
row
.
deptId
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a>'
);
actions
.
push
(
'<a class="'
+
removeFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.remove(
\'
'
+
row
.
deptId
+
'
\'
)"><i class="fa fa-trash"></i>删除</a>'
);
actions
.
push
(
'<a class="'
+
addFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.add(
\'
'
+
row
.
deptId
+
'
\'
)"><i class="fa fa-plus"></i>添加下级部门</a>'
);
return
$
.
table
.
dropdownToggle
(
actions
.
join
(
''
));
}
else
{
return
""
;
...
...
ruoyi-admin/src/main/resources/templates/system/dict/data/data.html
View file @
0bad8896
...
...
@@ -112,8 +112,8 @@
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="
#
" onclick="$.operate.edit(
\'
'
+
row
.
dictCode
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="
#
" onclick="$.operate.remove(
\'
'
+
row
.
dictCode
+
'
\'
)"><i class="fa fa-remove"></i>删除</a>'
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.edit(
\'
'
+
row
.
dictCode
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.remove(
\'
'
+
row
.
dictCode
+
'
\'
)"><i class="fa fa-remove"></i>删除</a>'
);
return
actions
.
join
(
''
);
}
}]
...
...
ruoyi-admin/src/main/resources/templates/system/dict/type/type.html
View file @
0bad8896
...
...
@@ -92,7 +92,7 @@
title
:
'字典类型'
,
sortable
:
true
,
formatter
:
function
(
value
,
row
,
index
)
{
return
'<a href="
#
" onclick="detail(
\'
'
+
row
.
dictId
+
'
\'
)">'
+
value
+
'</a>'
;
return
'<a href="
javascript:void(0)
" onclick="detail(
\'
'
+
row
.
dictId
+
'
\'
)">'
+
value
+
'</a>'
;
}
},
{
...
...
@@ -117,9 +117,9 @@
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="
#
" onclick="$.operate.edit(
\'
'
+
row
.
dictId
+
'
\'
)"><i class="fa fa-edit"></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-danger btn-xs '
+
removeFlag
+
'" href="
#
" onclick="$.operate.remove(
\'
'
+
row
.
dictId
+
'
\'
)"><i class="fa fa-remove"></i>删除</a>'
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.edit(
\'
'
+
row
.
dictId
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-info btn-xs '
+
listFlag
+
'" href="
javascript:void(0)
" onclick="detail(
\'
'
+
row
.
dictId
+
'
\'
)"><i class="fa fa-list-ul"></i>列表</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.remove(
\'
'
+
row
.
dictId
+
'
\'
)"><i class="fa fa-remove"></i>删除</a>'
);
return
actions
.
join
(
''
);
}
}]
...
...
ruoyi-admin/src/main/resources/templates/system/menu/menu.html
View file @
0bad8896
...
...
@@ -131,9 +131,9 @@
align
:
"left"
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="'
+
editFlag
+
'" href="
#
" onclick="$.operate.edit(
\'
'
+
row
.
menuId
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="'
+
removeFlag
+
'" href="
#
" onclick="$.operate.remove(
\'
'
+
row
.
menuId
+
'
\'
)"><i class="fa fa-trash"></i>删除</a>'
);
actions
.
push
(
'<a class="'
+
addFlag
+
'" href="
#
" onclick="$.operate.add(
\'
'
+
row
.
menuId
+
'
\'
)"><i class="fa fa-plus"></i>添加下级菜单</a> '
);
actions
.
push
(
'<a class="'
+
editFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.edit(
\'
'
+
row
.
menuId
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="'
+
removeFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.remove(
\'
'
+
row
.
menuId
+
'
\'
)"><i class="fa fa-trash"></i>删除</a>'
);
actions
.
push
(
'<a class="'
+
addFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.add(
\'
'
+
row
.
menuId
+
'
\'
)"><i class="fa fa-plus"></i>添加下级菜单</a> '
);
return
$
.
table
.
dropdownToggle
(
actions
.
join
(
''
));
}
}]
...
...
ruoyi-admin/src/main/resources/templates/system/notice/notice.html
View file @
0bad8896
...
...
@@ -104,8 +104,8 @@
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="
#
" onclick="$.operate.editFull(
\'
'
+
row
.
noticeId
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="
#
" onclick="$.operate.remove(
\'
'
+
row
.
noticeId
+
'
\'
)"><i class="fa fa-remove"></i>删除</a>'
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.editFull(
\'
'
+
row
.
noticeId
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.remove(
\'
'
+
row
.
noticeId
+
'
\'
)"><i class="fa fa-remove"></i>删除</a>'
);
return
actions
.
join
(
''
);
}
}]
...
...
ruoyi-admin/src/main/resources/templates/system/post/post.html
View file @
0bad8896
...
...
@@ -107,8 +107,8 @@
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="
#
" onclick="$.operate.edit(
\'
'
+
row
.
postId
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="
#
" onclick="$.operate.remove(
\'
'
+
row
.
postId
+
'
\'
)"><i class="fa fa-remove"></i>删除</a>'
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.edit(
\'
'
+
row
.
postId
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.remove(
\'
'
+
row
.
postId
+
'
\'
)"><i class="fa fa-remove"></i>删除</a>'
);
return
actions
.
join
(
''
);
}
}]
...
...
ruoyi-admin/src/main/resources/templates/system/role/authUser.html
View file @
0bad8896
...
...
@@ -105,7 +105,7 @@
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="
#
" onclick="cancelAuthUser(
\'
'
+
row
.
userId
+
'
\'
)"><i class="fa fa-remove"></i>取消授权</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="
javascript:void(0)
" onclick="cancelAuthUser(
\'
'
+
row
.
userId
+
'
\'
)"><i class="fa fa-remove"></i>取消授权</a> '
);
return
actions
.
join
(
''
);
}
}]
...
...
ruoyi-admin/src/main/resources/templates/system/role/role.html
View file @
0bad8896
...
...
@@ -113,10 +113,10 @@
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="
#
" onclick="$.operate.edit(
\'
'
+
row
.
roleId
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-primary btn-xs '
+
editFlag
+
'" href="
#
" onclick="authDataScope(
\'
'
+
row
.
roleId
+
'
\'
)"><i class="fa fa-check-square-o"></i>数据权限</a> '
);
actions
.
push
(
'<a class="btn btn-info btn-xs '
+
editFlag
+
'" href="
#
" onclick="authUser(
\'
'
+
row
.
roleId
+
'
\'
)"><i class="fa fa-user"></i>分配用户</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="
#
" onclick="$.operate.remove(
\'
'
+
row
.
roleId
+
'
\'
)"><i class="fa fa-remove"></i>删除</a> '
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.edit(
\'
'
+
row
.
roleId
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-primary btn-xs '
+
editFlag
+
'" href="
javascript:void(0)
" onclick="authDataScope(
\'
'
+
row
.
roleId
+
'
\'
)"><i class="fa fa-check-square-o"></i>数据权限</a> '
);
actions
.
push
(
'<a class="btn btn-info btn-xs '
+
editFlag
+
'" href="
javascript:void(0)
" onclick="authUser(
\'
'
+
row
.
roleId
+
'
\'
)"><i class="fa fa-user"></i>分配用户</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.remove(
\'
'
+
row
.
roleId
+
'
\'
)"><i class="fa fa-remove"></i>删除</a> '
);
return
actions
.
join
(
''
);
}
}]
...
...
ruoyi-admin/src/main/resources/templates/system/user/user.html
View file @
0bad8896
...
...
@@ -164,9 +164,9 @@
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="
#
" onclick="$.operate.editTab(
\'
'
+
row
.
userId
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="
#
" onclick="$.operate.remove(
\'
'
+
row
.
userId
+
'
\'
)"><i class="fa fa-remove"></i>删除</a> '
);
actions
.
push
(
'<a class="btn btn-info btn-xs '
+
resetPwdFlag
+
'" href="
#
" onclick="resetPwd(
\'
'
+
row
.
userId
+
'
\'
)"><i class="fa fa-key"></i>重置</a>'
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.editTab(
\'
'
+
row
.
userId
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.remove(
\'
'
+
row
.
userId
+
'
\'
)"><i class="fa fa-remove"></i>删除</a> '
);
actions
.
push
(
'<a class="btn btn-info btn-xs '
+
resetPwdFlag
+
'" href="
javascript:void(0)
" onclick="resetPwd(
\'
'
+
row
.
userId
+
'
\'
)"><i class="fa fa-key"></i>重置</a>'
);
return
actions
.
join
(
''
);
}
}]
...
...
ruoyi-generator/src/main/resources/templates/tool/gen/gen.html
View file @
0bad8896
...
...
@@ -90,7 +90,7 @@
width
:
'20%'
,
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
msg
=
'<a class="btn btn-primary btn-xs" href="
#
" onclick="genCode(
\'
'
+
row
.
tableName
+
'
\'
)"><i class="fa fa-bug"></i>生成代码</a> '
;
var
msg
=
'<a class="btn btn-primary btn-xs" href="
javascript:void(0)
" onclick="genCode(
\'
'
+
row
.
tableName
+
'
\'
)"><i class="fa fa-bug"></i>生成代码</a> '
;
return
msg
;
}
}]
...
...
ruoyi-generator/src/main/resources/vm/html/list.html.vm
View file @
0bad8896
...
...
@@ -4,7 +4,6 @@
<th:block
th:include=
"include :: header('${tableComment}列表')"
/>
</head>
<body
class=
"gray-bg"
>
<div
class=
"container-div"
>
<div
class=
"row"
>
<div
class=
"col-sm-12 search-collapse"
>
...
...
@@ -120,8 +119,8 @@
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="
#
" onclick="$.operate.edit(
\'
'
+
row
.
$
{
primaryKey
.
attrname
}
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="
#
" onclick="$.operate.remove(
\'
'
+
row
.
$
{
primaryKey
.
attrname
}
+
'
\'
)"><i class="fa fa-remove"></i>删除</a>'
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.edit(
\'
'
+
row
.
$
{
primaryKey
.
attrname
}
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.remove(
\'
'
+
row
.
$
{
primaryKey
.
attrname
}
+
'
\'
)"><i class="fa fa-remove"></i>删除</a>'
);
return
actions
.
join
(
''
);
}
}]
...
...
ruoyi-quartz/src/main/resources/templates/monitor/job/job.html
View file @
0bad8896
...
...
@@ -121,8 +121,8 @@
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-primary btn-xs '
+
statusFlag
+
'" href="
#
" onclick="run(
\'
'
+
row
.
jobId
+
'
\'
)"><i class="fa fa-play-circle-o"></i> 执行一次</a> '
);
actions
.
push
(
'<a class="btn btn-warning btn-xs '
+
detailFlag
+
'" href="
#
" onclick="$.operate.detail(
\'
'
+
row
.
jobId
+
'
\'
)"><i class="fa fa-search"></i>详细</a> '
);
actions
.
push
(
'<a class="btn btn-primary btn-xs '
+
statusFlag
+
'" href="
javascript:void(0)
" onclick="run(
\'
'
+
row
.
jobId
+
'
\'
)"><i class="fa fa-play-circle-o"></i> 执行一次</a> '
);
actions
.
push
(
'<a class="btn btn-warning btn-xs '
+
detailFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.detail(
\'
'
+
row
.
jobId
+
'
\'
)"><i class="fa fa-search"></i>详细</a> '
);
return
actions
.
join
(
''
);
}
}]
...
...
ruoyi-quartz/src/main/resources/templates/monitor/job/jobLog.html
View file @
0bad8896
...
...
@@ -118,7 +118,7 @@
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-warning btn-xs '
+
detailFlag
+
'" href="
#
" onclick="$.operate.detail(
\'
'
+
row
.
jobLogId
+
'
\'
)"><i class="fa fa-search"></i>详细</a>'
);
actions
.
push
(
'<a class="btn btn-warning btn-xs '
+
detailFlag
+
'" href="
javascript:void(0)
" onclick="$.operate.detail(
\'
'
+
row
.
jobLogId
+
'
\'
)"><i class="fa fa-search"></i>详细</a>'
);
return
actions
.
join
(
''
);
}
}]
...
...
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java
View file @
0bad8896
...
...
@@ -101,8 +101,8 @@ public interface SysDeptMapper
/**
* 根据ID查询所有子部门
* @param
id
* @return
* @param
deptId 部门ID
* @return
部门列表
*/
public
List
<
SysDept
>
selectChildrenDeptById
(
Long
i
d
);
public
List
<
SysDept
>
selectChildrenDeptById
(
Long
deptI
d
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java
View file @
0bad8896
...
...
@@ -185,7 +185,7 @@ public class SysDeptServiceImpl implements ISysDeptService
* @return 结果
*/
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
public
int
updateDept
(
SysDept
dept
)
{
SysDept
newParentDept
=
deptMapper
.
selectDeptById
(
dept
.
getParentId
());
...
...
@@ -195,7 +195,7 @@ public class SysDeptServiceImpl implements ISysDeptService
String
newAncestors
=
newParentDept
.
getAncestors
()
+
","
+
newParentDept
.
getDeptId
();
String
oldAncestors
=
oldDept
.
getAncestors
();
dept
.
setAncestors
(
newAncestors
);
updateDeptChildren
(
dept
.
getDeptId
(),
newAncestors
,
oldAncestors
);
updateDeptChildren
(
dept
.
getDeptId
(),
newAncestors
,
oldAncestors
);
}
int
result
=
deptMapper
.
updateDept
(
dept
);
if
(
UserConstants
.
DEPT_NORMAL
.
equals
(
dept
.
getStatus
()))
...
...
@@ -221,16 +221,17 @@ public class SysDeptServiceImpl implements ISysDeptService
/**
* 修改子元素关系
*
* @param deptId 被修改的部门ID
* @param newAncestors 新的父ID集合
* @param oldAncestors 旧的父ID集合
*/
public
void
updateDeptChildren
(
Long
deptId
,
String
newAncestors
,
String
oldAncestors
)
public
void
updateDeptChildren
(
Long
deptId
,
String
newAncestors
,
String
oldAncestors
)
{
List
<
SysDept
>
children
=
deptMapper
.
selectChildrenDeptById
(
deptId
);
for
(
SysDept
child
:
children
)
{
child
.
setAncestors
(
child
.
getAncestors
().
replace
(
oldAncestors
,
newAncestors
));
child
.
setAncestors
(
child
.
getAncestors
().
replace
(
oldAncestors
,
newAncestors
));
}
if
(
children
.
size
()
>
0
)
{
...
...
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
View file @
0bad8896
...
...
@@ -76,10 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select
id=
"selectChildrenDeptById"
parameterType=
"Long"
resultMap=
"SysDeptResult"
>
select * from sys_dept
<where>
FIND_IN_SET(#{id},ancestors)
</where>
select * from sys_dept where find_in_set(#{deptId}, ancestors)
</select>
<insert
id=
"insertDept"
parameterType=
"SysDept"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment