layui.define(["jquery","layer","form"],function(e){var f=layui.$,b=layui.layer,m=layui.form,y="dtree-nav-ul-sid",v="dtree-nav-item",k="dtree-nav-div",u="dtreefont",g="dtreefont-special",i="dtree-icon-move-down",o="dtree-icon-move-up",n="dtree-icon-refresh",s="dtree-icon-delete1",r="dtree-icon-search_list_light",t="dtree-toolbar",C="dtree-toolbar-tool",j="dtree-icon-dian",I="dtree-nav-checkbox-div",N="dtree-icon-fuxuankuangxuanzhong",T="dtree-icon-fuxuankuang",x="dtree-icon-fuxuankuang-banxuan",P="d-click-checkbar",c="dtree",a="dtree-",d="-item-this",l="-item",h="-dtreefont",p="-ficon",q="-icon",D="-checkbox",S="-choose",A="dtree-nav-this",L="dtree-nav-show",O="dtree-icon-hide",_=f("body"),F="dtree",w={},R={"-1":{open:"dtree-icon-null-open",close:"dtree-icon-null-close"},0:{open:"dtree-icon-jian",close:"dtree-icon-jia"},1:{open:"dtree-icon-xiangxia1",close:"dtree-icon-xiangyou"}},B={"-1":{open:"dtree-icon-null-open",close:"dtree-icon-null-close"},0:{open:"dtree-icon-wenjianjiazhankai",close:"dtree-icon-weibiaoti5"}},M={"-1":"dtree-icon-null",0:"dtree-icon-weibiaoti5",1:"dtree-icon-yonghu",2:"dtree-icon-fenzhijigou",3:"dtree-icon-fenguangbaobiao",4:"dtree-icon-xinxipilu",5:"dtree-icon-shuye1",6:"dtree-icon-caidan_xunzhang",7:"dtree-icon-normal-file"},E="checkNodeClick",U="itemNodeClick",J="addToolbar",z="editToolbar",G="delToolbar",$="moveDown",H="moveUp",X="refresh",K="remove",Q="searchNode",V={getElemId:function(e){var t=e.elem||"",a=e.obj||f(t);return 0==a.length?"":f(a)[0].id},escape:function(e){return"string"!=typeof e?"":e.replace(Z.escape,function(e){return Y.escape[e]})},unescape:function(e){return"string"!=typeof e?"":e.replace(Z.unescape,function(e){return Y.unescape[e]})},cloneObj:function(e,t){var a={};e instanceof Array&&(a=[]);var i="";for(var o in void 0!==t&&(i=t.join(",")),e)if(-1==i.indexOf(o)){var n=e[o];a[o]="object"==typeof n?V.cloneObj(n,void 0!==typeof t?t:[]):n}return a}},W=Object.keys||function(e){e=Object(e);var t=[];for(var a in e)t.push(a);return t},Y={escape:{"&":"&","<":"<",">":">","'":"&quo;"}};Y.unescape=function(e){e=Object(e);var t={};for(var a in e)t[e[a]]=a;return t}(Y.escape);var Z={escape:RegExp("["+W(Y.escape).join("")+"]","g"),unescape:RegExp("("+W(Y.unescape).join("|")+")","g")},ee=function(i){var e=i.data?i.data:{},t="boolean"!=typeof i.async||i.async;f.ajax({type:i.type?i.type:"POST",headers:i.headers,url:i.url,dataType:i.dataType?i.dataType:"json",data:e,async:t,success:i.success,error:function(e,t,a){"function"==typeof i.error?i.error():b.msg("系统异常导致操作失败, 请联系管理员。",{icon:5,shift:6})},statusCode:{404:function(){b.msg("未找到指定请求,请检查访问路径!",{icon:5,shift:6})},500:function(){b.msg("系统错误,请联系管理员。",{icon:5,shift:6})}},complete:function(e,t){"function"==typeof i.complete&&i.complete(e,t)}})},te=function(e){var t="?";for(var a in e)t+=a+"="+e[a]+"&";return t=t.substring(0,t.length-1)},ae=function(e){this.response={statusName:"code",statusCode:200,message:"message",rootName:"data",treeId:"id",parentId:"parentId",title:"title",iconClass:"iconClass",childName:"children",isLast:"isLast",spread:"spread",disabled:"disabled",checkArr:"checkArr",isChecked:"isChecked",type:"type",basicData:"basicData"},this.defaultRequest={nodeId:"nodeId",parentId:"parentId",context:"context",isLeaf:"isLeaf",level:"level",spread:"spread",dataType:"dataType",ischecked:"ischecked",initchecked:"initchecked",basicData:"basicData",recordData:"recordData"},this.toolbarFun={addTreeNode:function(e,t){},editTreeNode:function(e,t){},editTreeLoad:function(e){},delTreeNode:function(e,t){},loadToolbarBefore:function(e,t,a){return e}},this.toolbarStyle={title:"节点",area:["60%","80%"]},this.menubarFun={remove:function(e){return!0}},this.menubarTips={toolbar:[],group:[$,H,X,K,Q],freedom:[]},this.checkbarFun={chooseBefore:function(e,t){return!0},chooseDone:function(e){}},this.iframe={iframeElem:"",iframeUrl:"",iframeLoad:"leaf",iframeDefaultRequest:{nodeId:"nodeId",parentId:"parentId",context:"context",isLeaf:"isLeaf",level:"level",spread:"spread",dataType:"dataType",ischecked:"ischecked",initchecked:"initchecked",basicData:"basicData",recordData:"recordData"},iframeRequest:{}},this.iframeFun={iframeDone:function(e){}},this.style={item:"",itemThis:"",dfont:"",icon:"",cbox:"",chs:""},this.node={nodeId:"",parentId:"",context:"",isLeaf:"",level:"",spread:"",dataType:"",ischecked:"",initchecked:"",basicData:"",recordData:""},this.toolbarMenu={},this.checkbarNode=[],this.checkArrLen=0,this.temp=[],this.setting(e)};ae.prototype.setting=function(e){this.options=e||{},this.elem=this.options.elem||"",this.obj=this.options.obj||f(this.elem),this.initLevel=this.options.initLevel||2,this.type=this.options.type||"load",this.cache="boolean"!=typeof this.options.cache||this.options.cache,this.record="boolean"==typeof this.options.record&&this.options.record,this.load="boolean"!=typeof this.options.load||this.options.load,this.firstIconArray=f.extend(R,this.options.firstIconArray)||R,this.nodeIconArray=f.extend(B,this.options.nodeIconArray)||B,this.leafIconArray=f.extend(M,this.options.leafIconArray)||M,this.skin=this.options.skin||"theme","layui"==this.skin?(this.ficon=this.options.ficon||"1",this.dot="boolean"==typeof this.options.dot&&this.options.dot,this.icon=this.options.icon||"7",this.nodeIcon="string"==typeof this.icon||"number"==typeof this.icon?(this.icon,"-1"):this.icon[0]):(this.ficon=this.options.ficon||"0",this.dot="boolean"!=typeof this.options.dot||this.options.dot,this.icon=this.options.icon||"5",this.nodeIcon="string"==typeof this.icon||"number"==typeof this.icon?"-1"==this.icon?"-1":"0":this.icon[0]),this.ficonOpen=this.firstIconArray[this.ficon].open,this.ficonClose=this.firstIconArray[this.ficon].close,this.nodeIconOpen=this.nodeIconArray[this.nodeIcon].open,this.nodeIconClose=this.nodeIconArray[this.nodeIcon].close,this.leafIcon="string"==typeof this.icon||"number"==typeof this.icon?this.icon:this.icon[1],this.leafIconShow=this.leafIconArray[this.leafIcon],this.style.item=a+this.skin+l,this.style.itemThis=a+this.skin+d,this.style.dfont=a+this.skin+h,this.style.ficon=a+this.skin+p,this.style.icon=a+this.skin+q,this.style.cbox=a+this.skin+D,this.style.chs=a+this.skin+S,this.url=this.options.url||"",this.async="boolean"!=typeof this.options.async||this.options.async,this.headers=this.options.headers||{},this.method=this.options.method||"post",this.dataType=this.options.dataType||"json",this.defaultRequest=f.extend(this.defaultRequest,this.options.defaultRequest)||this.defaultRequest,this.filterRequest=this.options.filterRequest||[],this.request=this.options.request||{},this.response=f.extend(this.response,this.options.response)||this.response,this.data=this.options.data||null,this.dataFormat=this.options.dataFormat||"levelRelationship",this.dataStyle=this.options.dataStyle||"defaultStyle",this.success=this.options.success||function(e,t){},this.done=this.options.done||function(e,t){},this.toolbar=this.options.toolbar||!1,this.toolbarStyle=f.extend(this.toolbarStyle,this.options.toolbarStyle)||this.toolbarStyle,this.toolbarScroll=this.options.toolbarScroll||this.elem,this.toolbarLoad=this.options.toolbarLoad||"node",this.toolbarShow=this.options.toolbarShow||["add","edit","delete"],this.toolbarBtn=this.options.toolbarBtn||null,this.toolbarExt=this.options.toolbarExt||[],this.toolbarFun=f.extend(this.toolbarFun,this.options.toolbarFun)||this.toolbarFun,this.menubar=this.options.menubar||!1,this.menubarTips=f.extend(this.menubarTips,this.options.menubarTips)||this.menubarTips,this.menubarFun=f.extend(this.menubarFun,this.options.menubarFun)||this.menubarFun,this.checkbar=this.options.checkbar||!1,this.checkbarLoad=this.options.checkbarLoad||"node",this.checkbarType=this.options.checkbarType||"all",this.checkbarData=this.options.checkbarData||"choose",this.checkbarFun=f.extend(this.checkbarFun,this.options.checkbarFun)||this.checkbarFun,this.useIframe=this.options.useIframe||!1,this.iframe=f.extend(this.iframe,this.options.iframe)||this.iframe,this.iframeFun=f.extend(this.iframeFun,this.options.iframeFun)||this.iframeFun},ae.prototype.reloadSetting=function(e){this.options=f.extend(this.options,e)||this.options,this.elem=this.options.elem||this.elem,void 0===this.options.obj?this.elem&&0i.checkArrLen&&(i.checkArrLen=e.length),e},children:function(){return a[i.response.childName]||[]},basicData:function(){return V.escape(JSON.stringify(a[i.response.basicData]))||JSON.stringify({})},recordData:function(){var e=i.record?V.cloneObj(a,[i.response.basicData,i.response.childName]):{};return V.escape(JSON.stringify(e))},data:function(){return V.escape(JSON.stringify(a))}}},ae.prototype.getDom=function(s,e,t,r,n,d,a,l,i){var c=this,h=c.obj[0].id,p=(c.toolbar,c.checkbar);return{fnode:function(){var e=c.ficon,t=c.ficonOpen,a=c.ficonClose,i=c.dot;return"-1"!=e&&i?r?"":l?"":"":"-1"==e||i?"-1"==e&&i?r?"":l?"":"":"-1"!=e||i?void 0:r?"":l?"":"":r?"":l?"":""},node:function(){var e=c.nodeIcon,t=c.leafIcon,a=c.leafIconShow,i=c.nodeIconOpen,o=c.nodeIconClose;return n&&(o=i=a=n),"-1"!=e&&"-1"!=t?r?"":l?"":"":"-1"!=e&&"-1"==t?r?"":l?"":"":"-1"==e&&"-1"!=t?r?"":l?"":"":"-1"==e&&"-1"==t?r?"":l?"":"":void 0},checkbox:function(){var e=!1;if("node"==c.checkbarLoad?p&&(e=!0):r&&p&&(e=!0),e){var t="
";if(d&&0"}return t+="
"}return""},text:function(){return""+t+""},ul:function(){return r?"":l?"":""}}},ae.prototype.getLiItemDom=function(e,t,a,i,o,n,s,r,d,l,c,h){var p=this,u=p.obj[0].id,f=p.getDom(e,t,a,i,o,n,s,r,d);l="{}"==l?"":l,c="{}"==c?"":c;var b="
"),"noleaf"==p.toolbarLoad&&(b+=i?" d-contextmenu='false'>":" d-contextmenu='true'>"),"leaf"==p.toolbarLoad&&(b+=i?" d-contextmenu='true'>":" d-contextmenu='false'>")):b+=" d-contextmenu='false'>",["
  • "+b,f.fnode(),f.node(),f.checkbox(),f.text(),"
  • ",f.ul(),""].join("")},ae.prototype.dataInit=function(e){var t=this,a=t.obj.find("div[data-id='"+e+"']");a.parent().find("."+A).removeClass(A),a.parent().find("."+t.style.itemThis).removeClass(t.style.itemThis),a.addClass(A),a.addClass(t.style.itemThis),t.setNodeParam(a);var i=a.parents("."+v);return i.children("ul").addClass(L),i.children("."+k).children("i[data-spread]."+t.ficonClose).addClass(t.ficonOpen),i.children("."+k).children("i[data-spread]."+t.ficonClose).removeClass(t.ficonClose),i.children("."+k).children("i[data-spread]."+t.nodeIconClose).addClass(t.nodeIconOpen),i.children("."+k).children("i[data-spread]."+t.nodeIconClose).removeClass(t.nodeIconClose),t.getNowParam()},ae.prototype.clickSpread=function(e){var t=e.find("i[data-spread]").eq(0),a=e.find("i[data-spread]").eq(1),i=a.attr("class"),o=(e.find("cite[data-leaf]").eq(0),t.attr("data-spread")),n=e.next("ul"),s=this;if(0
    "),e.toolbar&&e.obj.before("
    ")},ae.prototype.openTreePlus=function(){var e=this,t=[];if(e.toolbar&&e.getToolbarDom(),e.menubar){var a=e.menubarTips,i=a.toolbar,o=a.group;a.freedom;if(i&&0";break;case H:a="";break;case X:a="";break;case K:a=this.checkbar?"":"";break;case Q:a=""}return a},ae.prototype.getExtMenubarDom=function(e){return""},ae.prototype.getMenubarToolDom=function(e){var t=this,a=t.obj[0].id;switch(e){case $:t.toolbarMenu[$]="
     展开"+t.toolbarStyle.title+"
    ";break;case H:t.toolbarMenu[H]="
     收缩"+t.toolbarStyle.title+"
    ";break;case X:t.toolbarMenu[X]="
     刷新
    ";break;case K:t.checkbar&&(t.toolbarMenu[K]="
     删除选中"+t.toolbarStyle.title+"
    ");break;case Q:t.toolbarMenu[Q]="
     查询"+t.toolbarStyle.title+"
    "}},ae.prototype.getExtMenubarToolDom=function(e){this.toolbarMenu[e.menubarId]="
     "+e.title+"
    "},ae.prototype.menubarMethod=function(){var p=this;return{openAllNode:function(e){for(var t=e||p.obj.children("li").children("ul"),a=0;a 新增"+e.toolbarStyle.title+""),"edit"==o&&(e.toolbarMenu[z]="
     编辑"+e.toolbarStyle.title+"
    "),"delete"==o&&(e.toolbarMenu[G]="
     删除"+e.toolbarStyle.title+"
    ")}if(0 "+n.title+""}},ae.prototype.setToolbarDom=function(e){if(e)for(var t in this.obj.prevAll("div#dtree_toolbar_"+this.obj[0].id).find("div.layui-nav-item>dl.layui-nav-child").html(""),e)this.obj.prevAll("div#dtree_toolbar_"+this.obj[0].id).find("div.layui-nav-item>dl.layui-nav-child").append(e[t])},ae.prototype.loadToolBar=function(e,t){var a=this,i=(a.toolbarShow,a.toolbarBtn),o="";switch(t){case J:var n=['
    ','','
    ','',"
    ","
    "].join(""),s=['
    ','",'
    ','',"
    ","
    "].join(""),r=['
    ','
    ','',"
    ","
    "].join(""),d=['
    ',n,s];if(null!=i&&0
    "),o=d.join("");break;case z:n=['
    ','','
    ','',"
    ","
    "].join("");var h=['
    ','",'
    ','',"
    ","
    "].join(""),p=['
    ','
    ','',"
    ","
    "].join(""),u=['
    ',n,h];if(null!=i&&0
    "),o=u.join("")}return o},ae.prototype.loadToolBarDetail=function(){return{text:function(e){return['
    ','",'
    ','',"
    ","
    "].join("")},textarea:function(e){return['
    ','",'
    ','","
    ","
    "].join("")},hidden:function(e){return[''].join("")},select:function(e){var t=e.optionsData,a="",i=e.value?e.value:"";for(var o in t)i==t[o]?a+="":a+="";return['
    ','",'
    ','","
    ","
    "].join("")}}},ae.prototype.changeTreeNodeAdd=function(e){var t=this,a=t.temp,i=a[0],o=a[1],n=a[2],s=a[3];if(e){var r=t.obj.find("[data-id='"+i+"']");if("object"==typeof e){r.remove();var d=t.parseData(e);if(!d.treeId())return b.msg("添加失败,节点ID为undefined!",{icon:5}),o.find("li[data-id='"+i+"']").remove(),t.setNodeParam(n),void(t.temp=[]);o.append(t.getLiItemDom(d.treeId(),d.parentId(),d.title(),d.isLast(0),d.iconClass(),d.checkArr(),s,d.spread(),d.disabled(),d.basicData(),d.recordData(),"item"));var l=o.find("div[data-id='"+e.id+"']");t.setNodeParam(l)}else if("string"==typeof e||"number"==typeof this.icon){r.attr("data-id",e),o.find("li[data-id='"+e+"']").show();l=o.find("div[data-id='"+e+"']");t.setNodeParam(l)}var c=n.find("i[data-spread]");"last"==c.eq(0).attr("data-spread")?(c.attr("data-spread","open"),c.eq(0).removeClass(j),c.eq(0).removeClass(O),c.eq(0).addClass(t.ficonOpen),c.eq(1).removeClass(M[t.leafIcon])):(c.attr("data-spread","open"),c.eq(0).removeClass(t.ficonClose),c.eq(0).addClass(t.ficonOpen),c.eq(1).removeClass(t.nodeIconClose)),c.eq(1).addClass(t.nodeIconOpen),o.addClass(L)}else o.find("li[data-id='"+i+"']").remove(),t.setNodeParam(n);t.temp=[]},ae.prototype.changeTreeNodeEdit=function(e){var t=this.temp,a=t[0],i=t[1];e||(a.html(title),node=this.getNodeParam(i)),this.temp=[]},ae.prototype.changeTreeNodeDone=function(e){m.val("dtree_editNode_form",e),m.render()},ae.prototype.changeTreeNodeDel=function(e){var t=this,a=t.temp,i=a[0],o=i.parent("ul"),n=a[1];if(e){if(i.remove(),0==o.children("li").length){var s=n.find("i[data-spread]");s.attr("data-spread","last"),s.eq(0).removeClass(t.ficonOpen),s.eq(0).removeClass(t.ficonClose),t.dot||s.eq(0).addClass(O),s.eq(0).addClass(j),s.eq(1).removeClass(t.nodeIconOpen),s.eq(1).removeClass(t.nodeIconClose),s.eq(1).addClass(M[t.leafIcon])}t.initNodeParam()}t.temp=[]},ae.prototype.chooseDataInit=function(e){for(var t=this,a=e.split(","),i=0;i."+k+">."+I+">i[data-type='"+i+"']");t.checkStatus(r).noCheck();for(var d=1,l=n;d."+y+" ."+I+">i[data-type='"+i+"'][data-checked='1']").length){var c=l.eq(d).find(">."+k+">."+I+">i[data-type='"+i+"']");t.checkStatus(c).noCheck()}}}else{t.checkStatus(e).check();r=s.find(">."+k+">."+I+">i[data-type='"+i+"']");t.checkStatus(r).check();for(d=1,l=n;d."+k+">."+I+">i[data-type='"+i+"']");t.checkStatus(c).check()}}},ae.prototype.checkAllOrNoallOrNot=function(e){var t=this,a=(e.closest("."+k),e.attr("data-par")),i=e.attr("data-type"),o=e.closest(a),n=e.parents(a),s=o.find(a);if("1"==e.attr("data-checked")){t.checkStatus(e).noCheck();var r=s.find(">."+k+">."+I+">i[data-type='"+i+"']");t.checkStatus(r).noCheck();for(var d=1,l=n;d."+y+" ."+I+">i[data-type='"+i+"'][data-checked='1']").length,h=l.eq(d).find(">."+k+">."+I+">i[data-type='"+i+"']");0==c?t.checkStatus(h).noCheck():t.checkStatus(h).noallCheck()}}else{t.checkStatus(e).check();r=s.find(">."+k+">."+I+">i[data-type='"+i+"']");t.checkStatus(r).check();for(d=1,l=n;d."+y+" ."+I+">i[data-type='"+i+"'][data-checked='1']").length,u=l.eq(d).find(">."+y+" ."+I+">i[data-type='"+i+"']").length;h=l.eq(d).find(">."+k+">."+I+">i[data-type='"+i+"']");p!=u?t.checkStatus(h).noallCheck():t.checkStatus(h).check()}}},ae.prototype.checkAllOrPcascOrNot=function(e){e.closest("."+k);var t=e.attr("data-par"),a=e.attr("data-type"),i=e.closest(t),o=(e.parents(t),i.find(t));if("1"==e.attr("data-checked")){this.checkStatus(e).noCheck();var n=o.find(">."+k+">."+I+">i[data-type='"+a+"']");this.checkStatus(n).noCheck()}else{this.checkStatus(e).check();n=o.find(">."+k+">."+I+">i[data-type='"+a+"']");this.checkStatus(n).check()}},ae.prototype.checkOrNot=function(e){e.closest("."+k);var t=e.attr("data-par"),a=(e.attr("data-type"),e.closest(t));e.parents(t),a.find(t);"1"==e.attr("data-checked")?this.checkStatus(e).noCheck():this.checkStatus(e).check()},ae.prototype.checkOnly=function(e){e.closest("."+k);var t=e.attr("data-par"),a=(e.attr("data-type"),e.closest(t)),i=(e.parents(t),a.find(t),e.attr("data-checked")),o=this.obj.find("i[data-checked]");this.checkStatus(o).noCheck(),"1"!=i&&this.checkStatus(e).check()},ae.prototype.changeCheck=function(){var e=this,t=e.temp[0];"all"==e.checkbarType?e.checkAllOrNot(t):"no-all"==e.checkbarType?e.checkAllOrNoallOrNot(t):"p-casc"==e.checkbarType?e.checkAllOrPcascOrNot(t):"self"==e.checkbarType?e.checkOrNot(t):"only"==e.checkbarType?e.checkOnly(t):e.checkAllOrNot(t);var a=e.setAndGetCheckbarNodesParam();e.checkbarFun.chooseDone(a),layui.event.call(this,F,"chooseDone("+f(e.obj)[0].id+")",{checkbarParams:a}),e.temp=[]},ae.prototype.initNoAllCheck=function(){var e=this.obj.find("i[data-checked='1']");if(0."+y+" ."+I+">i[data-type='"+o+"'][data-checked='1']").length,c=d.eq(r).find(">."+y+" ."+I+">i[data-type='"+o+"']").length,h=d.eq(r).find(">."+k+">."+I+">i[data-type='"+o+"']");l!=c?this.checkStatus(h).noallCheck():this.checkStatus(h).check()}},ae.prototype.initAllCheck=function(){var e=this.obj.find("i[data-checked='1']");if(0."+k+">."+I+">i[data-type='"+o+"']");this.checkStatus(l).check()}},ae.prototype.checkStatus=function(e){var t=this;return{check:function(){e.removeClass(T),e.removeClass(x),e.addClass(N),e.addClass(t.style.chs),e.attr("data-checked","1")},noCheck:function(){e.removeClass(x),e.removeClass(N),e.removeClass(t.style.chs),e.addClass(T),e.attr("data-checked","0")},noallCheck:function(){e.removeClass(T),e.removeClass(N),e.addClass(x),e.addClass(t.style.chs),e.attr("data-checked","2")}}},ae.prototype.setAndGetCheckbarNodesParam=function(){var a=this;return a.checkbarNode=[],"change"==a.checkbarData?a.obj.find("i[data-par]").each(function(){var e=f(this),t=e.closest("."+k);e.attr("data-checked")!=e.attr("data-initchecked")&&a.checkbarNode.push(a.getRequestParam(a.getCheckbarNodeParam(t,e)))}):"all"==a.checkbarData?a.obj.find("i[data-par][data-checked]").each(function(){var e=f(this),t=e.closest("."+k);a.checkbarNode.push(a.getRequestParam(a.getCheckbarNodeParam(t,e)))}):a.obj.find("i[data-par][data-checked='1']").each(function(){var e=f(this),t=e.closest("."+k);a.checkbarNode.push(a.getRequestParam(a.getCheckbarNodeParam(t,e)))}),a.checkbarNode},ae.prototype.getCheckbarNodesParam=function(){return this.setAndGetCheckbarNodesParam()},ae.prototype.getCheckbarNodeParam=function(e,t){var a={};return a.nodeId=e.attr("data-id"),a.parentId=e.parent().attr("data-pid"),a.context=e.find("cite[data-leaf]").eq(0).text(),a.isLeaf="leaf"==e.find("cite[data-leaf]").eq(0).attr("data-leaf"),a.level=e.parent().attr("data-index"),a.spread="open"==e.find("i[data-spread]").eq(0).attr("data-spread"),a.basicData=e.attr("data-basic"),a.recordData=e.attr("data-record"),a.dataType=t.attr("data-type"),a.ischecked=t.attr("data-checked"),a.initchecked=t.attr("data-initchecked"),a},ae.prototype.changeCheckbarNodes=function(){var t=!1;return this.obj.find("i[data-par]").each(function(){var e=f(this);if($div=e.closest("."+k),e.attr("data-checked")!=e.attr("data-initchecked"))return t=!0}),t},ae.prototype.loadIframe=function(e,t){var a=e.find("cite[data-leaf]").eq(0);if(!this.useIframe)return!1;var i=this.iframe.iframeElem,o=this.iframe.iframeUrl,n="leaf"!=this.iframe.iframeLoad||"leaf"==a.attr("data-leaf");if(n){if(!(0