leave-bill.js 2.0 KB

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