<ion-view view-title="{{titleName}}" hide-nav-bar="false" hide-tabs="true">
    <ion-nav-buttons side="right">
        <button class="button button-clear" ng-click="editDep();">编辑</button>
    </ion-nav-buttons>
    <ion-content>
        <!--<div class="item item-divider">-->
            <!--<div>-->
                <!--<label class="item item-input search-label">-->
                    <!--<i class="icon ion-ios-search placeholder-icon"></i>-->
                    <!--<input type="text" ng-focus="search();" placeholder="搜索姓名/拼音/电话">-->
                <!--</label>-->
            <!--</div>-->
        <!--</div>-->
        <ion-spinner ng-if="loading" class="center init-load" icon="android"></ion-spinner>
        <div class="item item-divider divider-font" ng-if="deptdisplay();"><i class="icon ion-ios-star"></i>部门({{deptlst.length}})</div>
        <ion-list ng-if="!loading">
            <!--部门列表-->
            <ion-item class="item item-icon-right" ng-repeat="dept in deptlst" type="item-text-wrap" ng-click="todept(dept)">
                {{dept.depname}}
                <i class="icon ion-chevron-right icon-accessory"></i>
            </ion-item>
        </ion-list>
        <!--联系人-->
        <div class="item item-divider divider-font" ng-if="empdisplay();"><i class="icon ion-ios-star"></i>联系人({{emplst.length}})</div>
        <ion-list class="audit-list" ng-if="!loading">
            <ion-item ng-repeat="emp in emplst" ng-click="lookMsg(emp.im_usrid,emp.username,emp.cellphone)" class="item-thumbnail-left over-flow-auto item-text-wrap">
                <img ng-src="../../../img/panda.png">
                <h2>{{emp.username}}</h2>
                <p>{{titleName}} {{emp.degree}}</p>
                <ion-delete-button class="ion-minus-circled" ng-click="onItemDelete(item)">
                </ion-delete-button>
            </ion-item>
            <ion-item class="item-border">
            </ion-item>
            <ion-list>
    </ion-content>
</ion-view>
