selectdept.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <ion-view view-title="{{titlename}}" hide-back-button="true" cache-view="false">
  2. <ion-nav-buttons side="left">
  3. <button class="button button-clear" ng-click="this[leftbtn[index].click]();">{{leftbtn[index].text}}</button>
  4. </ion-nav-buttons>
  5. <ion-content>
  6. <ion-spinner ng-if="loading" class="center init-load" icon="android"></ion-spinner>
  7. <h3 ng-if="!loading && isAll && id == '-1'" class="center stable action-sheet-backdrop init-load">全部成员已设置考勤</h3>
  8. <ul ng-if="!loading" ng-show="showall && index == 0 ||isAll && id == '-1'">
  9. <li class="check-dept-li">
  10. <label class="list item-checkbox">
  11. <div class="checkbox checkbox-input-hidden disable-pointer-events checkbox-circle">
  12. <input ng-model="isallcheck" ng-click="isAllCheck()" type="checkbox" class="ng-pristine ng-untouched ng-valid ng-not-empty">
  13. <i class="checkbox-icon"></i>
  14. </div>
  15. </label>
  16. <label ng-click="isAllCheck()">
  17. <span class="deptname">全部成员</span>
  18. </label>
  19. </li>
  20. </ul>
  21. <div ng-if="!loading" ng-hide="isAll && id == '-1'" class="item item-divider divider-font" ng-show="deptlst.length > 0"><i class="icon ion-ios-star"></i>部门({{deptlst.length}})</div>
  22. <ul ng-if="!loading" class="list" ng-hide="isAll && id == '-1'">
  23. <li class="check-dept-li" ng-repeat="dept in deptlst track by $index" ng-class="{true:'clickactive',fasle:''}[actived]">
  24. <label class="list item-checkbox">
  25. <div class="checkbox checkbox-input-hidden disable-pointer-events checkbox-circle">
  26. <input ng-disabled="dept.isdisabled" ng-model="dept.selected" ng-change="change(dept)" type="checkbox" class="ng-pristine ng-untouched ng-valid ng-not-empty">
  27. <i class="checkbox-icon" ng-show="!dept.isdisabled"></i>
  28. </div>
  29. </label>
  30. <label ng-click="tochilddept(dept);" ng-class="{true:'',false:'disabled'}[!dept.isdisabled]">
  31. <span class="deptname">{{dept.depname}}{{dept.disableddesc}}</span>
  32. <i class="icon ion-chevron-right icon-accessory" ng-if="dept.isShow"></i>
  33. </label>
  34. </li>
  35. </ul>
  36. </ion-content>
  37. <div class="bar bar-footer bar-dark footer-div" ng-class="{true:'bigview',false:''}[isUp]" style="">
  38. <i ng-class="{true:'ion-ios-arrow-down cirl-i',false:' ion-ios-arrow-up cirl-i'}[isUp]" ng-click="isUp = !isUp"></i>
  39. <ul class='ul-imgs dept-icon'>
  40. <li ng-repeat="dept in selecteddepts track by $index">{{dept.depname}}</li>
  41. </ul>
  42. <button ng-click="ok();" ng-disabled="selecteddepts.length==0" class="button pull-right button-calm">确定{{selectcount}}</button>
  43. </div>
  44. </ion-view>