gen.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. /*
  2. * Copyright (c) 2018-2025, lengleng All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the pig4cloud.com developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: lengleng (wangiegie@gmail.com)
  16. */
  17. export const tableOption = {
  18. selection: true,
  19. border: true,
  20. index: true,
  21. stripe: true,
  22. menuAlign: 'center',
  23. align: 'center',
  24. addBtn: false,
  25. editBtn: false,
  26. delBtn: false,
  27. column: [{
  28. label: '表名称',
  29. prop: 'tableName',
  30. align: 'center'
  31. }, {
  32. label: '表注释',
  33. prop: 'tableComment',
  34. align: 'center'
  35. }, {
  36. label: '索引',
  37. prop: 'engine',
  38. align: 'center'
  39. }, {
  40. type: 'datetime',
  41. valueFormat: 'timestamp',
  42. format: 'yyyy-MM-dd hh:mm:ss',
  43. label: '创建时间',
  44. prop: 'createTime',
  45. align: 'center'
  46. }]
  47. }
  48. export const formOption = {
  49. submitText: '生成',
  50. column: [
  51. {
  52. label: '表名称',
  53. prop: 'tableName',
  54. disabled: true
  55. }, {
  56. label: '包名',
  57. prop: 'packageName',
  58. placeholder: '可为空,加载系统默认配置'
  59. }, {
  60. label: '作者',
  61. prop: 'author',
  62. placeholder: '可为空,加载系统默认配置'
  63. }, {
  64. label: '模块',
  65. prop: 'moduleName',
  66. placeholder: '可为空,加载系统默认配置'
  67. }, {
  68. label: '表前缀',
  69. prop: 'tablePrefix',
  70. placeholder: '可为空,加载系统默认配置'
  71. }, {
  72. label: '注释',
  73. prop: 'comments',
  74. placeholder: '可为空,加载表备注'
  75. }
  76. ]
  77. }
  78. export const formBatchOption = {
  79. submitText: '生成',
  80. column: [
  81. {
  82. label: '表名称',
  83. prop: 'tableName',
  84. disabled: true,
  85. minRows: 2,
  86. type: 'textarea',
  87. row: true,
  88. span: 24
  89. },
  90. {
  91. label: '包名',
  92. prop: 'packageName',
  93. placeholder: '可为空,加载系统默认配置'
  94. }, {
  95. label: '作者',
  96. prop: 'author',
  97. placeholder: '可为空,加载系统默认配置'
  98. }, {
  99. label: '模块',
  100. prop: 'moduleName',
  101. placeholder: '可为空,加载系统默认配置'
  102. }, {
  103. label: '注释',
  104. prop: 'comments',
  105. placeholder: '可为空,加载表备注'
  106. }
  107. ]
  108. }
  109. export const tableDsOption = {
  110. border: true,
  111. index: true,
  112. indexLabel: '序号',
  113. stripe: true,
  114. menuAlign: 'center',
  115. align: 'center',
  116. column: [
  117. {
  118. label: '主键',
  119. prop: 'id',
  120. hide: true,
  121. addDisplay: false,
  122. editDisplay: false
  123. },
  124. {
  125. label: '名称',
  126. prop: 'name'
  127. },
  128. {
  129. label: 'jdbcUrl',
  130. prop: 'url',
  131. overHidden: true
  132. },
  133. {
  134. label: '用户名',
  135. prop: 'username'
  136. },
  137. {
  138. label: '密码',
  139. prop: 'password'
  140. },
  141. {
  142. label: '创建时间',
  143. prop: 'createDate',
  144. addDisplay: false,
  145. editDisplay: false,
  146. overHidden: true
  147. },
  148. {
  149. label: '更新时间',
  150. prop: 'updateDate',
  151. overHidden: true,
  152. addDisplay: false,
  153. editDisplay: false
  154. }
  155. ]
  156. }