editDep.html 1.3 KB

123456789101112131415161718192021222324
  1. <!---编辑部门-->
  2. <ion-view view-title="{{titleName}}" hide-back-button="true" cache-view="false">
  3. <ion-nav-buttons side="left">
  4. <button class="button button-clear" ng-click="cancel();">取消</button>
  5. </ion-nav-buttons>
  6. <ion-nav-buttons side="right">
  7. <button class="button button-clear" ng-click="save();" ng-disabled="isdisabled_ok" >完成</button>
  8. </ion-nav-buttons>
  9. <ion-content>
  10. <div class="item item-divider divider-font"><i class="icon ion-ios-star"></i>部门({{deptlst.length}})</div>
  11. <ion-list>
  12. <ion-item class="item item-icon-left item-icon-right" ng-repeat="dept in deptlst track by $index" type="item-text-wrap">
  13. <i class="icon ion-android-remove-circle" style="color:red;" ng-click="remove(dept,$index)"></i>
  14. <input type="text" ng-model="dept.depname" placeholder="请输入部门名称"/>
  15. <i class="icon ion-navicon-round icon-accessory"></i>
  16. </ion-item>
  17. </ion-list>
  18. <ion-item class="item item-icon-left item-icon-right" type="item-text-wrap" ng-click="add();">
  19. <i class="icon ion-plus-circled balanced"></i> 添加部门
  20. <i class="icon ion-navicon-round icon-accessory"></i>
  21. </ion-item>
  22. </ion-content>
  23. </ion-view>
  24. <!-- ng-click="deptlst.splice($index, 1) -->