daily-permission.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <ion-view view-title="允许谁看工作汇报" hide-nav-bar="false">
  2. <ion-nav-buttons side="right">
  3. <button class="button button-icon ion-ios-more" ng-if="isshowdelete.showDelete!=true" ng-click="popover.show($event)"></button>
  4. <button class="button button-clear" ng-if="isshowdelete.showDelete" ng-click="ok();">完成</button>
  5. </ion-nav-buttons>
  6. <ion-content>
  7. <ion-refresher pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
  8. <div class="item item-divider dividercolor">可以设置每个人的查看范围</div>
  9. <ion-spinner ng-if="loading" class="center init-load" icon="android"></ion-spinner>
  10. <ion-list show-delete="isshowdelete.showDelete">
  11. <ion-item class="item item-icon-right item-remove-animate item-text-wrap" ng-repeat="item in userlist.results" ng-click="toSelectDeptOrItem(item)">
  12. <span>{{item.username}}</span>
  13. <p>
  14. <span ng-if="item.depts.length == 0 && item.users.length == 0 && item.all">全体成员</span>
  15. <span ng-repeat="dept in item.depts">{{dept.depname}}{{$last ? '' : '、'}}</span>
  16. <span ng-if="item.depts.length > 0 && item.users.length > 0">、</span>
  17. <span ng-repeat="user in item.users">{{user.username}}{{$last ? '' : '、'}}</span>
  18. </p>
  19. <ion-delete-button class="ion-minus-circled" ng-click="remove(item)">
  20. </ion-delete-button>
  21. <i class="icon ion-chevron-right icon-accessory"></i>
  22. </ion-item>
  23. </ion-list>
  24. <ion-infinite-scroll spinner="android" ng-if="moreCanBeLoaded()" on-infinite="loadMore()" distance="1%" immediate-check="false"></ion-infinite-scroll>
  25. </ion-content>
  26. <script id="templates/add.html" type="text/ng-template">
  27. <ion-popover-view class="popver_view">
  28. <ion-content>
  29. <ion-list>
  30. <ion-item class="item item-button" type="item-text-wrap" ng-click="toadd();">添加成员</ion-item>
  31. <ion-item class="item item-button" type="item-text-wrap" ng-click="displayremove();">移除成员</ion-item>
  32. </ion-list>
  33. </ion-content>
  34. </ion-popover-view>
  35. </script>
  36. </ion-view>