<ion-view cache-view="true">
  <ion-nav-title>
    <h1 class="title">本部门联系人</h1>
  </ion-nav-title>
  <ion-nav-buttons side="left">
    <button class="button icon-left ion-ios-arrow-back button-clear sino-back-button" sino-nav-direction="back" sino-go-back-button>返回</button>
  </ion-nav-buttons>
  <ion-nav-buttons side="right">
    <span style="font-size:30px" class="ion-ios-reload" ng-show="!selfDeptCtrl.refreshing" stop-event ng-click="selfDeptCtrl.refresh()"></span>
    <ion-spinner icon="android" ng-show="selfDeptCtrl.refreshing" stop-event ng-click="selfDeptCtrl.refresh()" class="alluser-refresh"></ion-spinner>
  </ion-nav-buttons>

  <sino-linker-tree
    dept="selfDeptCtrl.dept"
    loading-state="selfDeptCtrl.loadingState"
    top-dept-id="selfDeptCtrl.topDeptId"
    detail-fn="selfDeptCtrl.getDetail(node)"
    refresh-fn="selfDeptCtrl.fetchUserAndDept()">
  </sino-linker-tree>
</ion-view>
