Commit 25788cf0 authored by liudonghua's avatar liudonghua
Browse files

fix incorrect zTree rendering for partial children checked

parent f10d0ec6
......@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment