Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Springboot Plus
Commits
581e2d39
Commit
581e2d39
authored
Nov 11, 2018
by
liudonghua123
Committed by
闲.大赋
Nov 11, 2018
Browse files
!21 Fix: 角色功能授权如果子节点部分选中时的渲染问题
Merge pull request !21 from liudonghua123/master
parents
f10d0ec6
c1805ba6
Changes
3
Hide whitespace changes
Inline
Side-by-side
admin-console/src/main/resources/static/js/admin/role/roleFn.js
View file @
581e2d39
...
...
@@ -16,7 +16,8 @@ layui.define([ 'form', 'laydate', 'table','roleApi'], function(exports) {
var
that
=
this
;
$
.
post
(
Common
.
ctxPath
+
"
/admin/function/tree.json
"
,
{},
function
(
response
)
{
var
zNodes
=
response
.
data
;
var
setting
=
{
"
check
"
:{
"
radioType
"
:
true
,
"
enable
"
:
true
}};
// select parent node does not affect the children node
var
setting
=
{
"
check
"
:{
"
chkStyle
"
:
"
checkbox
"
,
"
enable
"
:
true
,
"
chkboxType
"
:
{
"
Y
"
:
"
p
"
,
"
N
"
:
"
p
"
}}};
zTreeObj
=
$
.
fn
.
zTree
.
init
(
$
(
"
#functionTree
"
),
setting
,
zNodes
);
//功能树加载完毕后在初始化其他控件
that
.
initFirstRole
();
...
...
admin-core/src/main/resources/codeTemplate/java/controller.java
View file @
581e2d39
...
...
@@ -112,8 +112,8 @@ public class ${entity.name}Controller{
return
new
JsonResult
().
success
();
}
\
@PostMapping
(
MODEL
+
"/
update
.json"
)
\
@Function
(
"${basicfunctionCode}.
update
"
)
\
@PostMapping
(
MODEL
+
"/
edit
.json"
)
\
@Function
(
"${basicfunctionCode}.
edit
"
)
\
@ResponseBody
public
JsonResult
<
String
>
update
(
\
@Validated
(
ValidateConfig
.
UPDATE
.
class
)
$
{
entity
.
name
}
$
{
entity
.
code
})
{
boolean
success
=
$
{
service
}.
update
(
$
{
entity
.
code
});
...
...
admin-core/src/main/resources/static/plugins/frame/js/fsTab.js
View file @
581e2d39
...
...
@@ -49,7 +49,6 @@ layui.define(['element'], function(exports){
element
.
on
(
'
tabDelete(
'
+
this
.
config
.
tabFilter
+
'
)
'
,
function
(
data
){
debugger
;
var
li
=
$
(
this
).
parent
();
var
layId
=
$
(
li
).
attr
(
"
lay-id
"
);
//删除tab上标记
...
...
Write
Preview
Supports
Markdown
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