codemain.jsp 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. <meta charset="utf-8">
  7. <title>江苏省港口建设与经营管理信息系统</title>
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <%@ include file="../../common.jsp"%>
  10. <script type="text/javascript" src="${app }/static/biz/js/set/code/codemain.js"></script>
  11. <script type="text/javascript">
  12. var setting = {
  13. async: {
  14. enable: true,
  15. url:$.app+"/code/getTreeData",
  16. contentType : "application/x-www-form-urlencoded", //已form的形式提交参数
  17. autoParam: ["id"]
  18. },
  19. view:{
  20. showLine:false//去掉虚线
  21. },
  22. callback: {
  23. onClick: code.main.onClick//点击事件
  24. }
  25. };
  26. $(document).ready(function () {
  27. code.main.init(setting);
  28. $('.guanbi').click(function(){
  29. code.main.close();
  30. });
  31. iFrameHeightIframe('${menuid}');//自适应高度
  32. });
  33. </script>
  34. </head>
  35. <body>
  36. <div class="box" >
  37. <div class="box-content" style="border: 0px;background-color:#fff;">
  38. <div class="treediv">
  39. <ul id="tree" class="ztree" style="width:100%; "></ul>
  40. </div>
  41. <div class="treecontent">
  42. <div >
  43. <table class="search_table" cellpadding="0" cellspacing="0">
  44. <tr>
  45. <th width="10%"></th>
  46. <th width="25%"></th>
  47. <th width="10%"></th>
  48. <th width="25%"></th>
  49. <th width="10%"></th>
  50. <th width="20%"></th>
  51. </tr>
  52. <tr>
  53. <tr>
  54. <td class="right">
  55. </td>
  56. <td >
  57. </td>
  58. <td class="right">
  59. </td>
  60. <td >
  61. </td>
  62. <td class="right" colspan="2">
  63. <a class="btn btn-default btn-sm" href="#" onclick="code.main.add()">
  64. <i class="glyphicon glyphicon-plus"></i>
  65. 新增</a>
  66. </td>
  67. </tr>
  68. </table>
  69. </div>
  70. <!-- 列表 -->
  71. <div style="background-color:#f4f4f4;">
  72. <table class="main_table" cellpadding="0" cellspacing="0">
  73. <tr>
  74. <th width="20%">字典名称</th>
  75. <th width="14%">字典编码</th>
  76. <th width="16%">主键+父主键</th>
  77. <th width="10%">字典值</th>
  78. <th width="10%">组编码</th>
  79. <th width="10%">排序号</th>
  80. <th width="1%" class='operatetd'>操作</th>
  81. </tr>
  82. <tbody id="liebiao">
  83. </tbody>
  84. </table>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. <!-- 弹出框 -->
  90. <div class="theme-popover" style="width: 700px;height: 360px;">
  91. <div class="theme-poptit">
  92. <div class="popTitle">
  93. <h4>字典新增</h4>
  94. </div>
  95. <div class="close">
  96. <a href="#" title="关闭" class="guanbi">×</a>
  97. </div>
  98. </div>
  99. <form id="addform" method="post">
  100. <table class="apply" cellpadding="0" cellspacing="0">
  101. <tr>
  102. <th>字典名称 : &nbsp;</th>
  103. <td >
  104. <input type="text" class="form-control" id="edittext" name="text">
  105. </td>
  106. <th>字典编码 : &nbsp;</th>
  107. <td >
  108. <input type="text" class="form-control" id="editcode" name="code">
  109. </td>
  110. </tr>
  111. <tr>
  112. <th>字典值 : &nbsp;</th>
  113. <td >
  114. <input type="text" class="form-control" id="editval" name="val">
  115. </td>
  116. <th>组编码 : &nbsp;</th>
  117. <td >
  118. <input type="text" class="form-control" id="editgroupCode" name="groupCode">
  119. </td>
  120. </tr>
  121. <tr>
  122. <th>排序号 : &nbsp;</th>
  123. <td >
  124. <input type="text" class="form-control" id="editsortno" name="sortno">
  125. </td>
  126. <th>主键 : &nbsp;</th>
  127. <td >
  128. <input type="text" class="form-control" id="editid" name="id">
  129. </td>
  130. </tr>
  131. <tr>
  132. <th>父主键 : &nbsp;</th>
  133. <td >
  134. <input type="text" class="form-control" id="editpid" value="00" name="pid">
  135. </td>
  136. <th>备注</th>
  137. <td >
  138. <input type="text" class="form-control" id="editbz" name="bz">
  139. </td>
  140. </tr>
  141. </table>
  142. </form>
  143. <div id="buttons">
  144. <a class="btn btn-default btn-sm" href="#" onclick="code.main.save()">
  145. <i class="glyphicon glyphicon-floppy-disk"></i>
  146. 保存</a>
  147. <a class="btn btn-default btn-sm" href="#" onclick="code.main.close()">
  148. <i class="glyphicon glyphicon-arrow-left"></i>
  149. 取消</a>
  150. </div>
  151. </div>
  152. <div class="theme-popover-mask"></div>
  153. </body>
  154. </html>