<ion-modal-view>
    <ion-header-bar>
        <button class="button button-clear button-dark" ng-click="closeModal()">取消</button>
        <h1 class="title">选择部门</h1>
    </ion-header-bar>
    <ion-content>
        <ion-list>
            <ion-radio ng-model="index" ng-click="changeDept(0)" ng-value="0" ng-if="workatddepts.length>1">全部成员&nbsp;&nbsp;({{workatddepts.totalcount}}人)</ion-radio>
            <ion-radio ng-model="index" ng-click="changeDept(item.id)" ng-value="item.id" ng-repeat="item in workatddepts">{{item.depname}}&nbsp;&nbsp;({{item.count}}人)</ion-radio>
        </ion-list>
    </ion-content>
</ion-modal-view>