<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 ng-init="init();">
        <ion-spinner ng-if="loading" class="center init-load" icon="android"></ion-spinner>
        <div ng-if="!loading" class="item item-divider divider-font" ng-show="deptlst.length>0"><i class="icon ion-ios-star"></i>部门({{deptlst.length}})</div>
        <ion-list ng-if="!loading">
            <item-dept ng-repeat="dept in deptlst"></item-dept>
        </ion-list>
        <!--员工-->
        <div ng-if="!loading" class="item item-divider divider-font"><i class="icon ion-ios-star"></i>联系人({{emplst.length}})</div>
        <ion-list ng-if="!loading">
            <ion-checkbox ng-repeat="emp in emplst" ng-disabled="emp.disabled" ng-change="change(emp)" ng-model="emp.selected" class="ion-checkbox-class">
                <img ng-src="../../../img/panda.png" />
                <label class="labelname">{{emp. username}}</label>
                <label class="labelrole">{{emp.degree}}</label>
            </ion-checkbox>
            <ion-list>
            <div class='obligate-item'></div>
    </ion-content>
</ion-view>
