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
25788cf0
Commit
25788cf0
authored
Nov 10, 2018
by
liudonghua
Browse files
fix incorrect zTree rendering for partial children checked
parent
f10d0ec6
Changes
1
Hide whitespace changes
Inline
Side-by-side
admin-console/src/main/resources/static/js/admin/role/roleFn.js
View file @
25788cf0
...
...
@@ -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
();
...
...
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