editMenu.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <div class="modal" tabindex="-1" role="dialog" style="min-height:500px;">
  2. <div class="modal-dialog" role="document" style="width:70%">
  3. <!--<div class="modal-content">
  4. <div class="panel-heading modal-header">
  5. <button type="button" class="close" ng-click="$hide()">&times;</button>
  6. <h3 class="modal-title">{{title}}</h3>
  7. </div>
  8. <script type="text/ng-template" id="tree.html">
  9. <li class="row" style="border-bottom:2px solid #f5f5f5; padding:8px 0px">
  10. <span style="display:inline-block;">
  11. <a href="" class="glyphicon {{menu.isExpand ? 'glyphicon-chevron-down' : 'glyphicon-chevron-right'}}" ng-click="loadChildMenu(menu)"></a>
  12. <span class="ModulesSpan" style="cursor: pointer;" ng-click="loadChildMenu(menu)">{{menu.MenuName}}</span>
  13. </span>
  14. </li>
  15. <div ng-hide="!menu.isExpand">
  16. <div class="treeitem" ng-repeat="menu in menu.childMenus" ng-include="'tree.html'" style="cursor: pointer;"></div>
  17. </div>
  18. </script>
  19. <form class="form-horizontal formtable1 panel-body modal-body" ng-submit="saveMenu()" role="form" name="editMenuForm" style="padding: 10px; margin: 10px; " ng-controller="MenuManageCtrl" novalidate>
  20. <table class="table table-bordered tform">
  21. <tr>
  22. <th class="col-md-2"><span style="color:red">*</span>父级菜单:</th>
  23. <td>
  24. <label class="input-group">
  25. <input name="ParentMenu" type="text" ng-model="edit.menuParentName" class="form-control" ng-required="true" ng-disabled="true" />
  26. <span class="input-group-addon" ng-click="selectParent()"><i class="glyphicon glyphicon-zoom-in"></i></span>
  27. </label>
  28. </td>
  29. <th class="col-md-2"><span style="color:red">*</span>菜单排序:</th>
  30. <td>
  31. <input name="MenuOrder" type="number" ng-model="menu.menuorder" class="form-control" ng-required="true" value={{menu.menuorder}} />
  32. </td>
  33. </tr>
  34. <tr>
  35. <th class="col-md-2"><span style="color:red">*</span>菜单名称:</th>
  36. <td>
  37. <input name="menuname" type="text" ng-model="menu.menuname" class="form-control" ng-required="true" value={{menu.menuname}} ng-disabled="menu.menuname=='菜单管理'" />
  38. </td>
  39. <th class="col-md-2"><span style="color:red">*</span>菜单编号:</th>
  40. <td>
  41. <input name="menuno" type="text" ng-model="menu.menuno" class="form-control" ng-required="true" />
  42. </td>
  43. </tr>
  44. <tr>
  45. <th class="col-md-2"><span style="color:red">*</span>叶节点:</th>
  46. <td>
  47. <label><input name="isleaf" type="radio" ng-model="menu.isleaf" value="1" ng-checked="menu.isleaf==1" />是 </label>
  48. <label><input name="isleaf" type="radio" ng-model="menu.isleaf" value="0" ng-checked="!menu.isleaf==1" />否 </label>
  49. </td>
  50. <th class="col-md-2"><span style="color:red">*</span>菜单显示:</th>
  51. <td>
  52. <label><input name="isvisible" type="radio" ng-model="menu.isvisible" value="1" ng-checked="menu.isvisible==1" ng-disabled="menu.menuname=='菜单管理'" />显示 </label>
  53. <label><input name="isvisible" type="radio" ng-model="menu.isvisible" value="0" ng-checked="!menu.isvisible==1" ng-disabled="menu.menuname=='菜单管理'" />不显示 </label>
  54. </td>
  55. </tr>
  56. <tr>
  57. <th class="col-md-2">菜单图标:</th>
  58. <td>
  59. <input name="menupic" type="text" ng-model="menu.menupic" class="form-control" value={{menu.menupic}} />
  60. </td>
  61. <th class="col-md-2">菜单描述:</th>
  62. <td>
  63. <input name="menudesc" type="text" ng-model="menu.menudesc" class="form-control" value={{menu.menudesc}} />
  64. </td>
  65. </tr>
  66. </table>
  67. <div class="form_foot" style="text-align:center">
  68. <button id="submit" class="btn btn-danger" style="padding:4px 20px 4px 20px" type="submit" ng-disabled="editMenuForm.$invalid">提交</button>
  69. <button id="cancel" type="button" class="btn btn-default" style="padding:4px 20px 4px 20px" ng-click="$hide()">取消</button>
  70. </div>
  71. </form>
  72. </div>-->
  73. <div class="card">
  74. <div class="header">
  75. <button type="button" class="close" ng-click="$hide()">&times;</button>
  76. <h3 class="modal-title">{{title}}</h3>
  77. </div>
  78. <div activate-input class="body">
  79. <script type="text/ng-template" id="tree.html">
  80. <li class="row" style="border-bottom:2px solid #f5f5f5; padding:8px 0px">
  81. <span style="display:inline-block;">
  82. <a href=""
  83. class="glyphicon {{menu.isExpand ? 'glyphicon-chevron-down' : 'glyphicon-chevron-right'}}"
  84. ng-click="loadChildMenu(menu)"></a>
  85. <span class="ModulesSpan" style="cursor: pointer;" ng-click="loadChildMenu(menu)">{{menu.MenuName}}</span>
  86. </span>
  87. </li>
  88. <div ng-hide="!menu.isExpand">
  89. <div class="treeitem" ng-repeat="menu in menu.childMenus" ng-include="'tree.html'"
  90. style="cursor: pointer;"></div>
  91. </div>
  92. </script>
  93. <form class="form-horizontal" ng-submit="saveMenu()" role="form"
  94. name="editMenuForm" ng-controller="MenuManageCtrl" novalidate>
  95. <div class="row clearfix">
  96. <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 form-control-label">
  97. <label><span style="color:red">*</span>父级菜单</label>
  98. </div>
  99. <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
  100. <div class="form-group">
  101. <div class="input-group" style="margin-bottom: 0px;">
  102. <div class="form-line"
  103. ng-class="{ 'focused error' : editMenuForm.ParentMenu.$invalid && editMenuForm.$submitted}">
  104. <input name="ParentMenu" type="text" ng-model="edit.menuParentName"
  105. class="form-control" ng-required="true" ng-disabled="true"/>
  106. </div>
  107. <span class="input-group-addon" ng-click="selectParent()">
  108. <i class="material-icons">search</i>
  109. </span>
  110. </div>
  111. <label ng-show="editMenuForm.ParentMenu.$invalid && editMenuForm.$submitted"
  112. class="error">必填.</label>
  113. </div>
  114. </div>
  115. <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 form-control-label">
  116. <label>菜单排序</label>
  117. </div>
  118. <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
  119. <div class="form-group">
  120. <div class="form-line"
  121. ng-class="{ 'focused error' : editMenuForm.MenuOrder.$invalid && editMenuForm.$submitted}">
  122. <input name="MenuOrder" type="number" ng-model="menu.menuorder" class="form-control"
  123. ng-required="true" value={{menu.menuorder}}/>
  124. </div>
  125. <label ng-show="editMenuForm.MenuOrder.$invalid && editMenuForm.$submitted"
  126. class="error">必填.</label>
  127. </div>
  128. </div>
  129. </div>
  130. <div class="row clearfix">
  131. <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 form-control-label">
  132. <label>菜单名称</label>
  133. </div>
  134. <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
  135. <div class="form-group">
  136. <div class="form-line"
  137. ng-class="{ 'focused error' : editMenuForm.menuname.$invalid && editMenuForm.$submitted}">
  138. <input name="menuname" type="text" ng-model="menu.menuname" class="form-control"
  139. ng-required="true" value={{menu.menuname}}
  140. ng-disabled="menu.menuname=='菜单管理'"/>
  141. </div>
  142. <label ng-show="editMenuForm.menuname.$invalid && editMenuForm.$submitted"
  143. class="error">必填.</label>
  144. </div>
  145. </div>
  146. <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 form-control-label">
  147. <label>菜单编号</label>
  148. </div>
  149. <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
  150. <div class="form-group">
  151. <div class="form-line"
  152. ng-class="{ 'focused error' : editMenuForm.menuno.$invalid && editMenuForm.$submitted}">
  153. <input name="menuno" type="text" ng-model="menu.menuno" class="form-control"
  154. ng-required="true"/>
  155. </div>
  156. <label ng-show="editMenuForm.menuno.$invalid && editMenuForm.$submitted"
  157. class="error">必填.</label>
  158. </div>
  159. </div>
  160. </div>
  161. <div class="row clearfix">
  162. <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 form-control-label">
  163. <label>叶节点</label>
  164. </div>
  165. <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
  166. <div class="form-control-radio"
  167. ng-class="{ 'focused error' : editMenuForm.isleaf.$invalid && editMenuForm.$submitted}">
  168. <input name="isleaf" type="radio" ng-model="menu.isleaf" value="1"
  169. ng-checked="menu.isleaf==1" class="with-gap" id="isleaf1"/>
  170. <label for="isleaf1">是</label>
  171. <input name="isleaf" type="radio" ng-model="menu.isleaf" value="0"
  172. ng-checked="!menu.isleaf==1" class="with-gap" id="isleaf2"/>
  173. <label for="isleaf2">否 </label>
  174. </div>
  175. <label ng-show="editMenuForm.isleaf.$invalid && editMenuForm.$submitted"
  176. class="error">必填.</label>
  177. </div>
  178. <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 form-control-label">
  179. <label>菜单显示</label>
  180. </div>
  181. <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
  182. <div class="form-control-radio"
  183. ng-class="{ 'focused error' : editMenuForm.isvisible.$invalid && editMenuForm.$submitted}">
  184. <input name="isvisible" type="radio" ng-model="menu.isvisible" value="1"
  185. ng-checked="menu.isvisible==1" ng-disabled="menu.menuname=='菜单管理'"
  186. class="with-gap" id="isvisible1"/>
  187. <label for="isvisible1">显示</label>
  188. <input name="isvisible" type="radio" ng-model="menu.isvisible" value="0"
  189. ng-checked="!menu.isvisible==1" ng-disabled="menu.menuname=='菜单管理'"
  190. class="with-gap" id="isvisible2"/>
  191. <label for="isvisible2">不显示</label>
  192. </div>
  193. <label ng-show="editMenuForm.isvisible.$invalid && editMenuForm.$submitted"
  194. class="error">必填.</label>
  195. </div>
  196. </div>
  197. <div class="row clearfix">
  198. <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 form-control-label">
  199. <label>菜单图标</label>
  200. </div>
  201. <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
  202. <div class="form-group">
  203. <div class="form-line">
  204. <input name="menupic" type="text" ng-model="menu.menupic" class="form-control"
  205. value={{menu.menupic}}/>
  206. </div>
  207. </div>
  208. </div>
  209. <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 form-control-label">
  210. <label>菜单描述</label>
  211. </div>
  212. <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
  213. <div class="form-group">
  214. <div class="form-line">
  215. <input name="menudesc" type="text" ng-model="menu.menudesc" class="form-control"
  216. value={{menu.menudesc}}/>
  217. </div>
  218. </div>
  219. </div>
  220. </div>
  221. <div class="row clearfix">
  222. <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 form-control-label">
  223. <label>是否打开新页面</label>
  224. </div>
  225. <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
  226. <div class="form-control-radio"
  227. ng-class="{ 'focused error' : editMenuForm.isblank.$invalid && editMenuForm.$submitted}">
  228. <input name="isblank" type="radio" ng-model="menu.isblank" value="1"
  229. ng-checked="menu.isblank==1" class="with-gap" id="isblank1"/>
  230. <label for="isblank1">是</label>
  231. <input name="isblank" type="radio" ng-model="menu.isblank" value="0"
  232. ng-checked="!menu.isblank==1" class="with-gap" id="isblank2"/>
  233. <label for="isblank2">否 </label>
  234. </div>
  235. <label ng-show="editMenuForm.isblank.$invalid && editMenuForm.$submitted"
  236. class="error">必填.</label>
  237. </div>
  238. </div>
  239. <div class="form_foot" style="text-align:center">
  240. <button id="submit" class="btn btn-danger" style="padding:4px 20px 4px 20px" type="submit"
  241. ng-disabled="editMenuForm.$invalid">提交
  242. </button>
  243. <button id="cancel" type="button" class="btn btn-default" style="padding:4px 20px 4px 20px"
  244. ng-click="$hide()">取消
  245. </button>
  246. </div>
  247. </form>
  248. </div>
  249. </div>
  250. </div>
  251. </div>