editRoleModal.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <div class="modal" tabindex="-1" role="dialog" style="min-height:500px">
  2. <div class="modal-dialog" role="document">
  3. <div class="card">
  4. <div class="header">
  5. <button type="button" class="close" ng-click="$hide()">&times;</button>
  6. <h3 class="modal-title">{{params.title}}</h3>
  7. </div>
  8. <div class="body">
  9. <!--<form class="form-horizontal" ng-submit="saveRole(editRoleForm.$valid)" role="form" id="editRoleForm" name="editRoleForm" novalidate>
  10. <table class="table table-bordered formtable1">
  11. <tr>
  12. <th class="col-md-3"><span style="color:red;">*</span>角色名称:</th>
  13. <td ng-class="{ 'has-error' : editRoleForm.rolename.$invalid && (editRoleForm.$submitted) }">
  14. <input name="rolename" type="text" ng-model="content.rolename" class="form-control" ng-required="true" value={{content.rolename}} />
  15. <span ng-show="editRoleForm.rolename.$invalid && (editRoleForm.$submitted)" class="help-block">请输入角色名称</span>
  16. </td>
  17. </tr>
  18. <tr>
  19. <th class="col-md-3">角色描述:</th>
  20. <td>
  21. <input name="description" type="text" ng-model="content.description" class="form-control" value={{content.description}} />
  22. </td>
  23. </tr>
  24. <tr>
  25. <th class="col-md-3" rowspan="9"><span style="color:red;">*</span>权限管理:</th>
  26. <td>
  27. <table style="border-collapse:collapse; width:100%;text-align: left;">
  28. &lt;!&ndash;<tr style="list-style:none; border-bottom:1.5px ridge #eee" ng-model="content.menu.MenuId" ng-repeat="menu in menuLists" ng-include="'node.html'"></tr>&ndash;&gt;
  29. <tr class="treebody" style="list-style:none; border-bottom:1.5px ridge #eee" ng-repeat="menu in PmenuLists" ng-include="'node.html'">
  30. </table>
  31. </td>
  32. </tr>
  33. </table>
  34. <div class="form_foot">
  35. <button id="submit" class="btn btn-danger" style="padding:4px 20px 4px 20px" type="submit" form="editRoleForm">提交</button>
  36. <button id="cancel" type="button" class="btn btn-default" style="padding:4px 20px 4px 20px" ng-click="$hide()">取消</button>
  37. </div>
  38. </form>-->
  39. <form activate-input ng-submit="saveRole(editRoleForm.$valid)" role="form" id="editRoleForm"
  40. name="editRoleForm"
  41. novalidate>
  42. <label>角色名称</label>
  43. <div class="form-group">
  44. <div class="form-line"
  45. ng-class="{ 'focused error' : editRoleForm.rolename.$invalid && editRoleForm.$submitted}">
  46. <input name="rolename" type="text" ng-model="content.rolename" class="form-control"
  47. ng-required="true"
  48. value={{content.rolename}} placeholder="请输入角色名称"/>
  49. </div>
  50. </div>
  51. <label>角色描述</label>
  52. <div class="form-group">
  53. <div class="form-line">
  54. <input name="description" type="text" ng-model="content.description" class="form-control"
  55. value={{content.description}}
  56. placeholder="请输入角色描述"/>
  57. </div>
  58. </div>
  59. <label>分组</label>
  60. <div class="form-group">
  61. <div class="form-line">
  62. <input name="groupby" type="text" ng-model="content.groupby" class="form-control"
  63. value={{content.groupby}}
  64. placeholder="请输入分组"/>
  65. </div>
  66. </div>
  67. <label>排序</label>
  68. <div class="form-group">
  69. <div class="form-line">
  70. <input name="orderby" type="text" ng-model="content.orderby" class="form-control"
  71. value={{content.orderby}}
  72. placeholder="请输入排序"/>
  73. </div>
  74. </div>
  75. <label>数据范围</label>
  76. <div class="form-group">
  77. <div class="form-line">
  78. <select class="form-control show-tick" ng-model="content.dictionaryid"
  79. class="form-control"
  80. name="dictionaryid">
  81. <option ng-repeat="x in $parent.roleConfigList" value="{{x.dictionaryid}}">{{x.dicvalue}}</option>
  82. </select>
  83. </div>
  84. </div>
  85. <label>权限管理</label>
  86. <div class="form-group">
  87. <div class="form-line">
  88. <table style="border-collapse:collapse; width:100%;text-align: left;">
  89. <tr class="treebody" style="list-style:none; border-bottom:1.5px ridge #eee"
  90. ng-repeat="menu in PmenuLists" ng-include="'node.html'">
  91. </table>
  92. </div>
  93. </div>
  94. <div class="form_foot">
  95. <button id="submit" class="btn btn-default1" type="submit" form="editRoleForm">提交</button>
  96. <button type="button" class="btn btn-default" ng-click="$hide()">取消</button>
  97. </div>
  98. </form>
  99. <script type="text/ng-template" id="node.html">
  100. <li class="row" style="padding:8px 15px">
  101. <span>
  102. <a href="" class="glyphicon {{menu.changeClass}}" ng-click="getMenuByPMenuID(menu)"></a>
  103. <input type="checkbox" id="{{menu.myMenu.menuid}}" class="filled-in chk-col-cyan"
  104. ng-model="menu.isChecked" ng-change="chkchildren(menu)"
  105. >
  106. <label for="{{menu.myMenu.menuid}}">{{menu.myMenu.menuname}}</label>
  107. <!-- <span class="ModulesSpan"
  108. style="cursor: pointer; margin-top:2px;">{{menu.myMenu.menuname}}</span>-->
  109. </span>
  110. </li>
  111. <div>
  112. <div class="treebody" ng-if="menu.changeShow" ng-repeat="menu in menu.childMenu"
  113. ng-include="'node.html'" style="cursor: pointer;"></div>
  114. </div>
  115. </script>
  116. </div>
  117. </div>
  118. </div>
  119. </div>