leave-bill.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. searchShow: false,
  28. menuType: 'menu',
  29. column: [
  30. {
  31. label: 'ID',
  32. prop: 'leaveId',
  33. editDisabled: true,
  34. addDisplay: false
  35. },
  36. {
  37. label: '申请人',
  38. prop: 'username',
  39. editDisabled: true,
  40. addDisplay: false
  41. },
  42. {
  43. label: '天数',
  44. prop: 'days',
  45. type: 'number'
  46. },
  47. {
  48. label: '请假时间',
  49. prop: 'leaveTime',
  50. type: 'datetime',
  51. overHidden: true,
  52. format: 'yyyy-MM-dd HH:mm',
  53. valueFormat: 'yyyy-MM-dd hh:mm:ss'
  54. },
  55. {
  56. label: '提交时间',
  57. prop: 'createTime',
  58. type: 'datetime',
  59. overHidden: true,
  60. format: 'yyyy-MM-dd HH:mm',
  61. editDisabled: true,
  62. addDisplay: false,
  63. hide: true
  64. },
  65. {
  66. label: '状态',
  67. prop: 'state',
  68. type: 'select',
  69. dicUrl: '/admin/dict/type/leave_status',
  70. search: true,
  71. addDisplay: false
  72. },
  73. {
  74. hide: true,
  75. label: '备注',
  76. prop: 'content',
  77. type: 'ueditor',
  78. component: 'ueditor',
  79. span: 24,
  80. options: {
  81. action: "/admin/sys-file/upload",
  82. props: {
  83. res: "data",
  84. url: "url"
  85. },
  86. }
  87. }
  88. ]
  89. }