纽威
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.

135 lines
6.2 KiB

3 years ago
  1. @{
  2. ViewBag.Title = "Details";
  3. Layout = "~/Views/Shared/_Form.cshtml";
  4. }
  5. <script>
  6. var keyValue = $.request("keyValue");
  7. $(function () {
  8. initControl();
  9. $.ajax({
  10. url: "/SystemManage/Module/GetFormJson",
  11. data: { keyValue: keyValue },
  12. dataType: "json",
  13. async: false,
  14. success: function (data) {
  15. $("#form1").formSerialize(data);
  16. $("#form1").find('.form-control,select,input').attr('readonly', 'readonly');
  17. $("#form1").find('div.ckbox label').attr('for', '');
  18. }
  19. });
  20. });
  21. function initControl() {
  22. $("#F_Target").select2({
  23. minimumResultsForSearch: -1
  24. });
  25. $("#F_ParentId").bindSelect({
  26. url: "/SystemManage/Module/GetTreeSelectJson",
  27. });
  28. }
  29. </script>
  30. <form id="form1">
  31. <div style="margin-top: 10px; margin-left: 10px; margin-right: 10px;">
  32. <ul class="nav nav-tabs">
  33. <li role="presentation" class="active"><a href="#">基本信息</a></li>
  34. <li role="presentation"><a href="#">扩展信息</a></li>
  35. </ul>
  36. <div style="padding-top: 20px; margin-right: 30px;">
  37. <table class="form">
  38. <tr>
  39. <th class="formTitle">上级</th>
  40. <td class="formValue">
  41. <select id="F_ParentId" name="F_ParentId" class="form-control">
  42. <option value="0">父节点</option>
  43. </select>
  44. </td>
  45. <th class="formTitle">名称</th>
  46. <td class="formValue">
  47. <input id="F_FullName" name="F_FullName" type="text" class="form-control" />
  48. </td>
  49. </tr>
  50. <tr>
  51. <th class="formTitle">连接</th>
  52. <td class="formValue">
  53. <input id="F_UrlAddress" name="F_UrlAddress" type="text" class="form-control" />
  54. </td>
  55. <th class="formTitle">目标</th>
  56. <td class="formValue">
  57. <select id="F_Target" name="F_Target" class="form-control">
  58. <option value="">==请选择==</option>
  59. <option value="expand">expand</option>
  60. <option value="iframe">iframe</option>
  61. <option value="open">open</option>
  62. <option value="blank">blank</option>
  63. </select>
  64. </td>
  65. </tr>
  66. <tr>
  67. <th class="formTitle">图标</th>
  68. <td class="formValue">
  69. <div class="input-group">
  70. <input id="F_Icon" name="F_Icon" type="text" class="form-control">
  71. <span class="input-group-btn">
  72. <a class="btn btn-primary"><i class="fa fa-ellipsis-h"></i></a>
  73. </span>
  74. </div>
  75. </td>
  76. <th class="formTitle">排序</th>
  77. <td class="formValue">
  78. <input id="F_SortCode" name="F_SortCode" type="text" class="form-control required" />
  79. </td>
  80. </tr>
  81. <tr>
  82. <th class="formTitle" style="height: 35px;">选项</th>
  83. <td class="formValue" colspan="3" style="padding-top: 1px;">
  84. <div class="ckbox">
  85. <input id="F_IsMenu" name="F_IsMenu" type="checkbox"><label for="F_IsMenu">菜单</label>
  86. </div>
  87. <div class="ckbox">
  88. <input id="F_IsPublic" name="F_IsPublic" type="checkbox"><label for="F_IsPublic">公共</label>
  89. </div>
  90. <div class="ckbox">
  91. <input id="F_IsExpand" name="F_IsExpand" type="checkbox"><label for="F_IsExpand">展开</label>
  92. </div>
  93. <div class="ckbox">
  94. <input id="F_EnabledMark" name="F_EnabledMark" type="checkbox" checked="checked"><label for="F_EnabledMark">有效</label>
  95. </div>
  96. <div class="ckbox">
  97. <input id="F_AllowEdit" name="F_AllowEdit" type="checkbox"><label for="F_AllowEdit">允许编辑</label>
  98. </div>
  99. <div class="ckbox">
  100. <input id="F_AllowDelete" name="F_AllowDelete" type="checkbox"><label for="F_AllowDelete">允许删除</label>
  101. </div>
  102. </td>
  103. </tr>
  104. <tr>
  105. <th class="formTitle" valign="top" style="padding-top: 5px;">介绍
  106. </th>
  107. <td class="formValue" colspan="3">
  108. <textarea id="F_Description" name="F_Description" class="form-control" style="height: 100px;"></textarea>
  109. </td>
  110. </tr>
  111. <tr>
  112. <th class="formTitle">创建人员</th>
  113. <td class="formValue">
  114. <input id="F_CreatorUserId" name="F_CreatorUserId" type="text" class="form-control" />
  115. </td>
  116. <th class="formTitle">创建时间</th>
  117. <td class="formValue">
  118. <input id="F_CreatorTime" name="F_CreatorTime" type="text" class="form-control" />
  119. </td>
  120. </tr>
  121. <tr>
  122. <th class="formTitle">修改人员</th>
  123. <td class="formValue">
  124. <input id="F_LastModifyUserId" name="F_LastModifyUserId" type="text" class="form-control" />
  125. </td>
  126. <th class="formTitle">修改时间</th>
  127. <td class="formValue">
  128. <input id="F_LastModifyTime" name="F_LastModifyTime" type="text" class="form-control" />
  129. </td>
  130. </tr>
  131. </table>
  132. </div>
  133. </div>
  134. </form>