Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hzwy23 committed May 11, 2017
1 parent 258b971 commit 3955f6c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions static/js/utils.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,18 +640,19 @@ var Hutils = {
showLiHeight:"30px",
showFontSize:"14px",
iconColor:"#030202",

attr:false,

showLevel:3,

onChange:function (obj) {
console.log("没有注册点击函数")
},
};
var __autoAttr = false;

$.extend(true,__DEFAULT,param);

if (__DEFAULT.data.length > 0 && __DEFAULT.data[0].attr == undefined) {
__autoAttr = true;
}

var getEvent = function(){

Expand Down Expand Up @@ -717,7 +718,6 @@ var Hutils = {
return
}
for (var i = 0; i < arr.length; i++){

if (node == arr[i].upId){
arr[i].dept = INDEX
list.push(arr[i])
Expand Down Expand Up @@ -867,7 +867,7 @@ var Hutils = {
/*
* 如果这个节点没有下层信息,则将这个层级的伸缩按钮去掉。
* */
if (__DEFAULT.attr){
if (__autoAttr){
$this.find("ul li").each(function(index,element){
var curDept = parseInt($(element).attr("data-dept"));
var nextDept = parseInt($(element).next().attr("data-dept"));
Expand Down Expand Up @@ -1922,7 +1922,6 @@ var Hutils = {

$.extend({
Notify:function(param){

var DEFAULT = {
icon:"icon-ok",
caption:"",
Expand Down

0 comments on commit 3955f6c

Please sign in to comment.