纽威
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
819 B

3 years ago
  1. @{
  2. ViewBag.Title = "克隆按钮";
  3. Layout = "~/Views/Shared/_Form.cshtml";
  4. }
  5. <script>
  6. var moduleId = $.request("moduleId");
  7. $(function () {
  8. $("#itemTree").treeview({
  9. showcheck: true,
  10. url: "/SystemManage/ModuleButton/GetCloneButtonTreeJson"
  11. });
  12. });
  13. function submitForm() {
  14. var Ids = $("#itemTree").getCheckedNodes();
  15. $.submitForm({
  16. url: "/SystemManage/ModuleButton/SubmitCloneButton",
  17. param: { moduleId: moduleId, Ids: String(Ids) },
  18. success: function () {
  19. top.modulebutton.$("#gridList").resetSelection();
  20. top.modulebutton.$("#gridList").trigger("reloadGrid");
  21. }
  22. })
  23. }
  24. </script>
  25. <div style="margin: 10px;">
  26. <div id="itemTree"></div>
  27. </div>