MWF.xApplication.Selector = MWF.xApplication.Selector || {}; MWF.xDesktop.requireApp("Selector", "Identity", null, false); MWF.xApplication.Selector.Unit = new Class({ Extends: MWF.xApplication.Selector.Identity, options: { "style": "default", "count": 0, "title": MWF.xApplication.Selector.LP.selectUnit, "units": [], //"unitTypes": [], "values": [], "zIndex": 1000, "expand": true, "exclude" : [], "expandSubEnable" : true, //是否允许展开下一层 "selectAllEnable" : true, //分类是否允许全选下一层 "selectType" : "unit" }, _init : function(){ this.selectType = "unit"; this.className = "Unit"; }, loadSelectItems: function(addToNext){ if( this.options.disabled ){ this.afterLoadSelectItem(); return; } var afterLoadSelectItemFun = this.afterLoadSelectItem.bind(this); if (this.options.units.length){ var unitList = []; for( var i=0 ; i