<ion-view view-title="{{titlename}}" hide-back-button="true" cache-view="false">
    <ion-nav-buttons side="left">
        <button class="button button-clear" ng-click="this[leftbtn[index].click]();">{{leftbtn[index].text}}</button>
    </ion-nav-buttons>
    <ion-content>
        <ion-spinner ng-if="loading" class="center init-load" icon="android"></ion-spinner>
        <div ng-if="!loading" class="item item-divider divider-font"><i class="icon ion-ios-star"></i>部门({{deptlst.length}})</div>
        <ul ng-if="!loading" class="list">
            <li class="check-dept-li" ng-repeat="dept in deptlst track by $index">
                <label class="list item-checkbox">
                    <div class="checkbox checkbox-input-hidden disable-pointer-events checkbox-circle">
                        <input ng-model="dept.selected" ng-change="change(dept)" type="checkbox" class="ng-pristine ng-untouched ng-valid ng-not-empty">
                        <i class="checkbox-icon"></i>
                    </div>
                </label>
                <label ng-click="tochilddept(dept)">
                    <span class="deptname">{{dept.depname}}</span>
                    <i class="icon ion-chevron-right icon-accessory" ng-show="is_showright(dept)"></i>
                </label>
            </li>
        </ul>
    </ion-content>
</ion-view>
