tables.ts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. /*
  2. * @Author: liuJie
  3. * @Date: 2026-01-28 11:03:32
  4. * @LastEditors: liuJie
  5. * @LastEditTime: 2026-03-01 20:07:59
  6. * @Describe: file describe
  7. */
  8. import type { TableColumnProps } from '@/types/basic-table';
  9. // 基础表格样式配置
  10. export const TABLE_OPTIONS = {
  11. emptyText: '暂无数据',
  12. loading: true,
  13. maxHeight: 'calc(70vh - 150px)',
  14. };
  15. // 状态选项
  16. export const WORK_PLAN_STATUS_OPTIONS = [
  17. { label: '全部', value: '' },
  18. { label: '未下发', value: 1 },
  19. { label: '待反馈', value: 2 },
  20. { label: '已完成', value: 3 },
  21. { label: '已作废', value: 4 },
  22. ];
  23. // 发送对象里面的状态选项
  24. export const VIEW_SENDER_WORK_PLAN_STATUS_OPTIONS = [
  25. { label: '全部', value: '' },
  26. { label: '待反馈', value: 2 },
  27. { label: '已完成', value: 3 },
  28. { label: '已作废', value: 4 },
  29. ];
  30. // 状态标签映射
  31. export const WORK_PLAN_STATUS_LABEL: Record<string, string> = {
  32. '1': '未下发',
  33. '2': '待反馈',
  34. '3': '已完成',
  35. '4': '已作废',
  36. };
  37. // 安全体系建设工作规划管理(管理员列表)
  38. export const WORK_PLAN_TABLE_COLUMNS: TableColumnProps[] = [
  39. {
  40. label: '编号',
  41. type: 'index',
  42. align: 'center',
  43. width: '80px',
  44. },
  45. {
  46. label: '工作内容',
  47. prop: 'workContent',
  48. align: 'left',
  49. minWidth: '150px',
  50. showOverflowTooltip: true,
  51. },
  52. {
  53. label: '状态',
  54. prop: 'statusName',
  55. align: 'center',
  56. minWidth: '100px',
  57. },
  58. {
  59. label: '分类名称',
  60. prop: 'categoryName',
  61. align: 'left',
  62. minWidth: '120px',
  63. },
  64. {
  65. label: '培训计划名称',
  66. prop: 'trainingPlanName',
  67. align: 'left',
  68. minWidth: '150px',
  69. showOverflowTooltip: true,
  70. },
  71. {
  72. label: '责任部门',
  73. prop: 'responsibleDeptNames',
  74. align: 'left',
  75. minWidth: '120px',
  76. },
  77. {
  78. label: '配合部门',
  79. prop: 'cooperateDeptNames',
  80. align: 'left',
  81. minWidth: '120px',
  82. },
  83. {
  84. label: '下发数',
  85. prop: 'issuedCount',
  86. slot: 'issuedCount',
  87. },
  88. {
  89. label: '反馈数',
  90. prop: 'feedbackCount',
  91. slot: 'feedbackCount',
  92. },
  93. {
  94. label: '反馈比例',
  95. prop: 'feedbackRatio',
  96. slot: 'feedbackRatio',
  97. },
  98. {
  99. label: '计划完成时间',
  100. prop: 'plannedEndTime',
  101. slot: 'plannedEndTime',
  102. },
  103. {
  104. label: '操作',
  105. prop: 'action',
  106. slot: 'action',
  107. fixed: 'right',
  108. width: '280px',
  109. align: 'left',
  110. },
  111. ];
  112. // 查看发送对象列表
  113. export const VIEW_SENDS_TABLE_COLUMNS: TableColumnProps[] = [
  114. {
  115. label: '编号',
  116. type: 'index',
  117. align: 'center',
  118. width: '80px',
  119. },
  120. {
  121. label: '工作内容',
  122. prop: 'workContent',
  123. align: 'left',
  124. minWidth: '150px',
  125. showOverflowTooltip: true,
  126. },
  127. {
  128. label: '状态',
  129. prop: 'statusName',
  130. align: 'center',
  131. minWidth: '100px',
  132. },
  133. {
  134. label: '分类名称',
  135. prop: 'categoryName',
  136. align: 'left',
  137. minWidth: '120px',
  138. },
  139. {
  140. label: '培训计划名称',
  141. prop: 'trainingPlanName',
  142. align: 'left',
  143. minWidth: '150px',
  144. showOverflowTooltip: true,
  145. },
  146. {
  147. label: '责任部门',
  148. prop: 'responsibleDeptNames',
  149. align: 'left',
  150. minWidth: '120px',
  151. },
  152. {
  153. label: '配合部门',
  154. prop: 'cooperateDeptNames',
  155. align: 'left',
  156. minWidth: '120px',
  157. },
  158. {
  159. label: '下发分组名称',
  160. prop: 'executGroupNames',
  161. align: 'left',
  162. minWidth: '130px',
  163. },
  164. {
  165. label: '下发责任人',
  166. prop: 'issuedByName',
  167. align: 'left',
  168. minWidth: '120px',
  169. },
  170. {
  171. label: '计划完成时间',
  172. prop: 'plannedComplateTime',
  173. align: 'left',
  174. minWidth: '160px',
  175. },
  176. {
  177. label: '操作',
  178. prop: 'action',
  179. slot: 'action',
  180. fixed: 'right',
  181. width: '280px',
  182. align: 'left',
  183. },
  184. ];