tenant.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. align: 'center',
  24. column: [
  25. {
  26. label: '租户id',
  27. prop: 'id',
  28. hide: true,
  29. editDisabled: true,
  30. editDisplay: false,
  31. addDisplay: false
  32. },
  33. {
  34. label: '租户名称',
  35. prop: 'name',
  36. search: true,
  37. rules: [{
  38. required: true,
  39. message: '请输入租户名称',
  40. trigger: 'blur'
  41. }]
  42. },
  43. {
  44. label: '租户编号',
  45. type: 'number',
  46. prop: 'code',
  47. rules: [{
  48. required: true,
  49. message: '请输入租户编号',
  50. trigger: 'blur'
  51. }]
  52. },
  53. {
  54. label: '开始时间',
  55. prop: 'startTime',
  56. type: 'datetime',
  57. format: 'yyyy-MM-dd',
  58. valueFormat: 'yyyy-MM-dd',
  59. rules: [{
  60. required: true,
  61. message: '请输入结束时间',
  62. trigger: 'blur'
  63. }]
  64. },
  65. {
  66. label: '结束时间',
  67. prop: 'endTime',
  68. type: 'datetime',
  69. format: 'yyyy-MM-dd',
  70. valueFormat: 'yyyy-MM-dd',
  71. rules: [{
  72. required: true,
  73. message: '请输入结束时间',
  74. trigger: 'blur'
  75. }]
  76. },
  77. {
  78. label: '状态',
  79. prop: 'status',
  80. type: 'radio',
  81. border:true,
  82. dicUrl: '/admin/dict/type/status_type',
  83. search: true
  84. }
  85. ]
  86. }