genCodeForm.html 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
  5. <meta charset="utf-8"/>
  6. <meta name="viewport"
  7. content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  8. <link rel="stylesheet"
  9. href="/common-assets/plugins/font-awesome/css/font-awesome.min.css"/>
  10. <link rel="stylesheet" href="/common-assets/plugins/outdated/bootstrap/css/bootstrap.min.css"/>
  11. <link rel="stylesheet" href="/common-assets/css/outdated/style.css"/>
  12. <link rel="stylesheet"
  13. href="/common-assets/plugins/outdated/metisMenu/2.7/metisMenu.min.css"/>
  14. <link rel="stylesheet"
  15. href="/common-assets/plugins/outdated/bootstrap-toastr/2.0.1/toastr.min.css"/>
  16. <link rel="stylesheet" href="/common-assets/plugins/outdated/icheck/custom.css"/>
  17. <!-- 引入样式 -->
  18. <link rel="stylesheet" href="/common-assets/css/dwElementUI.css"/>
  19. <script src='/common-assets/js/jquery-2.1.1.js'></script>
  20. <script src="/common-assets/js/outdated/bootstrap.min.js"></script>
  21. <script src="/common-assets/js/outdated/jquery.form-3.51.0.min.js"></script>
  22. <script src="/common-assets/plugins/layer/3.0.3/layer.js"></script>
  23. <script src="/common-assets/plugins/outdated/pace/pace.min.js"></script>
  24. <script src="/common-assets/plugins/outdated/slimscroll/jquery.slimscroll.min.js"></script>
  25. <script src="/common-assets/plugins/outdated/bootstrap-toastr/2.0.1/toastr.min.js"></script>
  26. <script src="/common-assets/plugins/outdated/jquery-validation/jquery.validate-1.11.1.min.js"></script>
  27. <script src="/common-assets/plugins/outdated/jquery-validation/localization/messages_zh.js"></script>
  28. <script src="/common-assets/plugins/outdated/icheck/icheck.min.js"></script>
  29. <script src="/common-assets/plugins/outdated/metisMenu/2.7/metisMenu.js"></script>
  30. <script src="/common-assets/plugins/dotize/dotize.js"></script>
  31. <script src="/common-assets/js/promise-polyfill.min.js"></script>
  32. <!-- 开发阶段使用vue.js以获取编译信息 -->
  33. <script src="/common-assets/plugins/vue/2.5.17/vue.js"></script>
  34. <script src="/common-assets/plugins/axios/0.18.0/axios.min.js"></script>
  35. <!-- 引入组件库 -->
  36. <script src="/common-assets/plugins/element-ui/lib/index.js"></script>
  37. <!-- 基础依赖-->
  38. <title>生成代码</title>
  39. </head>
  40. <body class="pace-done white-bg">
  41. <form id="inputForm" :action="saveUrl" method="post" class="form-horizontal" v-cloak v-loading="formLoading">
  42. <input type="hidden" id="id" name="id" v-model="entity.id"/>
  43. <input type="hidden" id="genTable.id" name="genTable.id" v-model="entity.genTable.id"/>
  44. <table class="table table-bordered table-condensed dataTables-example dataTable no-footer">
  45. <tbody>
  46. <tr>
  47. <td class="width-15 active"><label class="pull-right"><span
  48. style="color: red; ">*</span>代码分类:</label></td>
  49. <td class="width-35">
  50. <select id="category" name="category" v-model="entity.category"
  51. class="required form-control">
  52. <option v-for="item in categoryDict" :key="item.id" :value="item.paramCode">
  53. {{item.paramName}}
  54. </option>
  55. </select>
  56. </td>
  57. <td class="width-15 active"><label class="pull-right"><span
  58. style="color: red; ">*</span>代码风格:</label></td>
  59. <td class="width-35">
  60. <select id="style" name="style" v-model="entity.style" class="required form-control">
  61. <option v-for="item in styleList" :key="item.style" :value="item.style">
  62. {{item.label}}
  63. </option>
  64. </select>
  65. </td>
  66. </tr>
  67. <tr style="display: none" id="relationROW">
  68. <td class="width-15 active"><label class="pull-right control-label"><span
  69. style="color: red; ">*</span>关联关系:</label></td>
  70. <td class="width-85" colspan=3 id="relationCELL">
  71. <table id="relationTable"
  72. class="table table-striped table-bordered table-hover table-condensed dataTables-example dataTable">
  73. <thead style="font-size: 10px;">
  74. <tr>
  75. <th>主表关联字段</th>
  76. <th>从表别名</th>
  77. <th>从表关联字段</th>
  78. <th style="width: 80px">操作</th>
  79. </tr>
  80. </thead>
  81. <tbody>
  82. </tbody>
  83. </table>
  84. </td>
  85. </tr>
  86. <tr v-if="isMSABackServer">
  87. <input type="hidden" id="name" name="name"></input>
  88. <td class="width-15 active"><label class="pull-right control-label"><span
  89. style="color: red; ">*</span>所属系统:</label></td>
  90. <td class="width-35">
  91. <input id="systemName" name="systemName" v-model="entity.systemName"
  92. maxlength="30" class="required form-control"></input>
  93. <td class="width-15 active"><label class="pull-right control-label">所属服务:</label></td>
  94. <td class="width-35">
  95. <input id="serviceName" name="serviceName" v-model="entity.serviceName"
  96. maxlength="30" class="required form-control"></input>
  97. </tr>
  98. <tr>
  99. <td class="width-15 active"><label class="pull-right control-label"><span
  100. style="color: red; ">*</span>包路径:</label></td>
  101. <td colspan="3">
  102. <input id="packageName" name="packageName" v-model="entity.packageName"
  103. maxlength="500" class="required form-control"></input>
  104. <span class="help-inline">生成结构:{包名}/{模块名}/{分层(dao,entity,service,web)}/{子模块名}/{java类}</span>
  105. </td>
  106. </tr>
  107. <tr>
  108. <td class="width-15 active"><label class="pull-right control-label"><span
  109. style="color: red; ">*</span>模块名:</label></td>
  110. <td class="width-35">
  111. <input id="moduleName" name="moduleName" v-model="entity.moduleName"
  112. maxlength="30" class="required form-control"></input>
  113. <span class="help-inline">可理解为子系统名,例如 sys</span></td>
  114. <td class="width-15 active"><label class="pull-right control-label">子模块名:</label></td>
  115. <td class="width-35">
  116. <input id="subModuleName" name="subModuleName" v-model="entity.subModuleName"
  117. maxlength="30" class="form-control"></input>
  118. <span class="help-inline">可选,分层下的文件夹 </span></td>
  119. </tr>
  120. <tr>
  121. <td class="width-15 active"><label class="pull-right control-label"><span
  122. style="color: red; ">*</span>功能描述:</label></td>
  123. <td class="width-35">
  124. <input id="functionName" name="functionName" v-model="entity.functionName"
  125. maxlength="500" class="required form-control"></input>
  126. <span class="help-inline">将设置到类描述</span></td>
  127. <td class="width-15 active"><label class="pull-right control-label"><span
  128. style="color: red; ">*</span>功能名:</label></td>
  129. <td class="width-35">
  130. <input id="functionNameSimple" name="functionNameSimple" v-model="entity.functionNameSimple"
  131. maxlength="100" class="required form-control"></input>
  132. <span class="help-inline">用作功能提示,如:保存“某某”成功</span></td>
  133. </tr>
  134. <tr>
  135. <td class="width-15 active"><label class="pull-right control-label"><span
  136. style="color: red; ">*</span>功能作者:</label></td>
  137. <td class="width-35">
  138. <input id="functionAuthor" name="functionAuthor" v-model="entity.functionAuthor"
  139. maxlength="100" class="required form-control"></input>
  140. <span class="help-inline">功能开发者</span></td>
  141. <td class="width-15 active"><label class="pull-right">最大列数:</label></td>
  142. <td class="width-35">
  143. <select id="maxQueryColumns" name="maxQueryColumns" v-model="entity.maxQueryColumns"
  144. class="required form-control">
  145. <option v-for="item in maxQueryColumnsDict" :key="item.id" :value="item.paramCode">
  146. {{item.paramName}}
  147. </option>
  148. </select>
  149. <span class="help-inline">设置查询面板最大列数</span></td>
  150. </tr>
  151. </tbody>
  152. </table>
  153. </form>
  154. </body>
  155. <script src="/common-assets/js/project.config.js"></script>
  156. <script src="../static/config.js"></script>
  157. <script src="/common-assets/js/outdated/common.js"></script>
  158. <script src="../static/js/genCodeForm.js"></script>
  159. </html>