task.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. border: true,
  19. index: true,
  20. stripe: true,
  21. menuAlign: 'center',
  22. align: 'center',
  23. menuBtn: true,
  24. editBtn: false,
  25. delBtn: false,
  26. addBtn: false,
  27. searchMenuSpan: 6,
  28. menuType: 'menu',
  29. column: [
  30. {
  31. label: 'ID',
  32. prop: 'taskId',
  33. editDisabled: true,
  34. addDisplay: false
  35. },
  36. {
  37. label: '任务名称',
  38. prop: 'taskName',
  39. editDisabled: true,
  40. addDisplay: false
  41. },
  42. {
  43. label: '提交时间',
  44. prop: 'time',
  45. type: 'datetime',
  46. format: 'yyyy-MM-dd HH:mm'
  47. }
  48. ]
  49. }
  50. export const formOption = {
  51. submitBtn: false,
  52. emptyBtn: false,
  53. row: true,
  54. span: 12,
  55. column: [
  56. {
  57. label: '任务编号',
  58. prop: 'taskId',
  59. disabled: true
  60. },
  61. {
  62. label: '任务名称',
  63. prop: 'taskName',
  64. disabled: true
  65. },
  66. {
  67. label: '申请人',
  68. prop: 'username',
  69. disabled: true
  70. },
  71. {
  72. label: '请假时长',
  73. prop: 'days',
  74. disabled: true
  75. },
  76. {
  77. label: '请假时间',
  78. prop: 'createTime',
  79. type: 'datetime',
  80. format: 'yyyy-MM-dd HH:mm',
  81. disabled: true
  82. },
  83. {
  84. label: '提交时间',
  85. prop: 'time',
  86. type: 'datetime',
  87. format: 'yyyy-MM-dd HH:mm',
  88. disabled: true
  89. },
  90. {
  91. label: '事由',
  92. prop: 'content',
  93. type: 'textarea',
  94. minRows: 2,
  95. row: true,
  96. span: 24,
  97. disabled: true
  98. },
  99. {
  100. label: '批注',
  101. prop: 'comment',
  102. type: 'textarea',
  103. minRows: 2,
  104. row: true,
  105. span: 24,
  106. rules: [{
  107. required: true,
  108. message: '请输入备注',
  109. trigger: 'blur'
  110. }]
  111. }
  112. ]
  113. }
  114. export const taskOption = {
  115. menu: false,
  116. page: false,
  117. addBtn: false,
  118. align: 'center',
  119. menuAlign: 'center',
  120. column: [
  121. {
  122. label: 'id',
  123. prop: 'id',
  124. hide: true
  125. },
  126. {
  127. label: '用户',
  128. prop: 'userId'
  129. },
  130. {
  131. label: '批注',
  132. prop: 'fullMessage'
  133. }, {
  134. label: '操作时间',
  135. prop: 'time',
  136. type: 'datetime',
  137. format: 'yyyy-MM-dd hh:mm:ss',
  138. valueFormat: 'yyyy-MM-dd hh:mm:ss'
  139. }
  140. ]
  141. }