activiti.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. indexLabel: '序号',
  21. stripe: true,
  22. menuAlign: 'center',
  23. menuBtn: true,
  24. align: 'center',
  25. editBtn: false,
  26. delBtn: false,
  27. menuType: 'menu',
  28. searchMenuSpan: 6,
  29. column: [{
  30. fixed: true,
  31. label: '模型ID',
  32. prop: 'id',
  33. editDisabled: true,
  34. addDisplay: false
  35. }, {
  36. fixed: true,
  37. label: '模型标识',
  38. prop: 'key',
  39. editDisabled: true,
  40. rules: [{
  41. required: true,
  42. message: '请输入模型标识',
  43. trigger: 'blur'
  44. }]
  45. }, {
  46. label: '流程分类',
  47. prop: 'category',
  48. search: true,
  49. rules: [{
  50. required: true,
  51. message: '请输入流程分类',
  52. trigger: 'blur'
  53. }]
  54. }, {
  55. label: '模型名称',
  56. prop: 'name',
  57. rules: [{
  58. required: true,
  59. message: '请输入模型名称',
  60. trigger: 'blur'
  61. }]
  62. },
  63. {
  64. label: '描述',
  65. prop: 'desc',
  66. hide: true,
  67. editDisabled: false,
  68. addDisplay: true,
  69. rules: [{
  70. required: true,
  71. message: '请输入描述',
  72. trigger: 'blur'
  73. }]
  74. }, {
  75. label: '版本号',
  76. prop: 'version',
  77. editDisabled: true,
  78. addDisplay: false
  79. }, {
  80. label: '创建时间',
  81. prop: 'createTime',
  82. type: 'datetime',
  83. format: 'yyyy-MM-dd HH:mm',
  84. valueFormat: 'timestamp',
  85. editDisabled: true,
  86. addDisplay: false
  87. }, {
  88. label: '最后更新时间',
  89. prop: 'lastUpdateTime',
  90. type: 'datetime',
  91. format: 'yyyy-MM-dd HH:mm',
  92. valueFormat: 'timestamp',
  93. editDisabled: true,
  94. addDisplay: false
  95. }]
  96. }