lv_titem.html 1.4 KB

123456789101112131415161718192021222324
  1. <div ng-init="loadIncrease()" class="tree_head">
  2. <div data-id="{{titem.id}}" ng-mouseover="titem.showbtn=true;" ng-mouseleave="titem.showbtn=false;"
  3. class="item_panel">
  4. <div class="item_col1">
  5. <a ng-if="ngModel.canEdit" ng-click="btnclick(titem,1)" ng-show="titem.showbtn" title="新增同级"><span
  6. class="glyphicon glyphicon-plus-sign"></span></a>
  7. </div>
  8. <div class="item_col2">
  9. <div class="item_chk"><input ng-if="titem.islast && ngModel.canChecked" type="checkbox" ng-model="titem.chk"
  10. name="chk"/></div>
  11. <a ng-if="!titem.islast && ngModel.canEdit" ng-show="titem.showbtn" title="新增子级"
  12. ng-click="btnclick(titem,2)" class="item_col2_addchild"><span
  13. class="glyphicon glyphicon-chevron-right"></span></a>
  14. <a ng-click="btnclick(titem,4)" title="{{titem.name}}" class="item_div btn btn-success">{{titem.name}}</a>
  15. </div>
  16. <div class="item_col3">
  17. <a ng-if="ngModel.canEdit" ng-click="btnclick(titem,3)" ng-show="titem.showbtn" title="删除节点"><span
  18. class="glyphicon glyphicon-minus-sign"></span></a>
  19. </div>
  20. </div>
  21. </div>
  22. <div ng-if="titem.children&&titem.children.length>0" class="tree_body">
  23. <div class="tree_node" ng-repeat="titem in titem.children" ng-include="'../js/setting/sysduty/lv_titem.html'"></div>
  24. </div>