daily-templateScope.html 2.1 KB

123456789101112131415161718192021222324252627282930
  1. <ion-view view-title="选择模板范围" cache-view="false" hide-nav-bar="false" hide-back-button="true">
  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. <div class="item item-divider dividercolor">公司哪些部门,能够使用该模板</div>
  8. <ul ng-if="!loading" class="list">
  9. <li class="check-dept-li" ng-click="consoles();" ng-repeat="dept in depts track by $index" ng-class="{true:'clickactive',fasle:''}[actived]">
  10. <label class="list item-checkbox">
  11. <div class="checkbox checkbox-input-hidden disable-pointer-events checkbox-circle">
  12. <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">
  13. <i class="checkbox-icon" ng-show="!dept.isdisabled"></i>
  14. </div>
  15. </label>
  16. <label ng-click="tochilddept(dept);" ng-class="{true:'',false:'disabled'}[!dept.isdisabled]">
  17. <span class="deptname">{{dept.depname}}{{dept.isdisabled?"(已设置)":""}}</span>
  18. <i class="icon ion-chevron-right icon-accessory" ng-show="dept.isshow"></i>
  19. </label>
  20. </li>
  21. </ul>
  22. </ion-content>
  23. <div ng-class="{true:'bar bar-footer bar-dark footer-div bigview',false:'bar bar-footer footer-div bar-dark'}[isUp]">
  24. <i ng-class="{true:'ion-ios-arrow-down cirl-i',false:' ion-ios-arrow-up cirl-i'}[isUp]" ng-click="isUp = !isUp"></i>
  25. <ul class='ul-imgs dept-icon'>
  26. <li ng-repeat="deptitem in selecteddepts track by $index">{{deptitem.depname}}</li>
  27. </ul>
  28. <button ng-disabled="selecteddepts.length==0" ng-click="ok();" class="button pull-right button-calm">确定{{selecteddepts.length>0?"("+selecteddepts.length+")":""}}</button>
  29. </div>
  30. </ion-view>