closed.data.ts 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. import { BasicColumn } from '/@/components/Table/src/types/table';
  2. import { EyeOutlined } from '@ant-design/icons-vue';
  3. import { h } from 'vue';
  4. /**
  5. * 密闭统计表格列配置
  6. */
  7. export function getClosedStatisticsColumns(): BasicColumn[] {
  8. return [
  9. {
  10. title: '序号',
  11. dataIndex: 'id',
  12. align: 'center',
  13. },
  14. {
  15. title: '区域',
  16. dataIndex: 'region',
  17. align: 'center',
  18. // width: 80,
  19. },
  20. {
  21. title: '密闭总数',
  22. dataIndex: 'closedTotal',
  23. align: 'center',
  24. },
  25. {
  26. title: '正常生产',
  27. dataIndex: 'normalProduce',
  28. align: 'center',
  29. },
  30. {
  31. title: '正常建设',
  32. dataIndex: 'normalBuild',
  33. align: 'center',
  34. },
  35. {
  36. title: '拟建矿井',
  37. dataIndex: 'toRetireMine',
  38. align: 'center',
  39. },
  40. {
  41. title: '自行停产',
  42. dataIndex: 'selfStopProduce',
  43. align: 'center',
  44. },
  45. {
  46. title: '自行停建',
  47. dataIndex: 'selfStopBuild',
  48. align: 'center',
  49. },
  50. {
  51. title: '责令停止整顿',
  52. dataIndex: 'orderStopRectify',
  53. align: 'center',
  54. },
  55. {
  56. title: '责令停止建设',
  57. dataIndex: 'orderStopBuild',
  58. align: 'center',
  59. },
  60. {
  61. title: '停产整改',
  62. dataIndex: 'stopProduceRectify',
  63. align: 'center',
  64. },
  65. {
  66. title: '停建整改',
  67. dataIndex: 'stopBuildRectify',
  68. align: 'center',
  69. },
  70. {
  71. title: '长期停产',
  72. dataIndex: 'longTermStopProduce',
  73. align: 'center',
  74. },
  75. {
  76. title: '长期停建',
  77. dataIndex: 'longTermStopBuild',
  78. align: 'center',
  79. },
  80. {
  81. title: '长期停建(失联)',
  82. dataIndex: 'longTermClose',
  83. width: 180,
  84. align: 'center',
  85. },
  86. {
  87. title: '操作',
  88. dataIndex: 'operation',
  89. align: 'center',
  90. // 渲染“查看”图标(匹配图片中的眼睛按钮)
  91. customRender: () => h(EyeOutlined, { style: { cursor: 'pointer' }, onClick: () => alert('查看详情') }),
  92. },
  93. ];
  94. }
  95. export const tableMockData = [
  96. {
  97. id: '101',
  98. region: '执法一处',
  99. closedTotal: 140,
  100. normalProduce: 10,
  101. normalBuild: 10,
  102. toRetireMine: 10,
  103. selfStopProduce: 10,
  104. selfStopBuild: 10,
  105. orderStopRectify: 10,
  106. orderStopBuild: 10,
  107. stopProduceRectify: 10,
  108. stopBuildRectify: 10,
  109. longTermStopProduce: 10,
  110. longTermStopBuild: 10,
  111. longTermClose: 10,
  112. },
  113. {
  114. id: '102',
  115. region: '执法二处',
  116. closedTotal: 140,
  117. normalProduce: 10,
  118. normalBuild: 10,
  119. toRetireMine: 10,
  120. selfStopProduce: 10,
  121. selfStopBuild: 10,
  122. orderStopRectify: 10,
  123. orderStopBuild: 10,
  124. stopProduceRectify: 10,
  125. stopBuildRectify: 10,
  126. longTermStopProduce: 10,
  127. longTermStopBuild: 10,
  128. longTermClose: 10,
  129. },
  130. {
  131. id: '103',
  132. region: '执法三处',
  133. closedTotal: 140,
  134. normalProduce: 10,
  135. normalBuild: 10,
  136. toRetireMine: 10,
  137. selfStopProduce: 10,
  138. selfStopBuild: 10,
  139. orderStopRectify: 10,
  140. orderStopBuild: 10,
  141. stopProduceRectify: 10,
  142. stopBuildRectify: 10,
  143. longTermStopProduce: 10,
  144. longTermStopBuild: 10,
  145. longTermClose: 10,
  146. },
  147. {
  148. id: '104',
  149. region: '执法四处',
  150. closedTotal: 140,
  151. normalProduce: 10,
  152. normalBuild: 10,
  153. toRetireMine: 10,
  154. selfStopProduce: 10,
  155. selfStopBuild: 10,
  156. orderStopRectify: 10,
  157. orderStopBuild: 10,
  158. stopProduceRectify: 10,
  159. stopBuildRectify: 10,
  160. longTermStopProduce: 10,
  161. longTermStopBuild: 10,
  162. longTermClose: 10,
  163. },
  164. {
  165. id: '105',
  166. region: '执法五处',
  167. closedTotal: 140,
  168. normalProduce: 10,
  169. normalBuild: 10,
  170. toRetireMine: 10,
  171. selfStopProduce: 10,
  172. selfStopBuild: 10,
  173. orderStopRectify: 10,
  174. orderStopBuild: 10,
  175. stopProduceRectify: 10,
  176. stopBuildRectify: 10,
  177. longTermStopProduce: 10,
  178. longTermStopBuild: 10,
  179. longTermClose: 10,
  180. },
  181. {
  182. id: '107',
  183. region: '执法七处',
  184. closedTotal: 140,
  185. normalProduce: 10,
  186. normalBuild: 10,
  187. toRetireMine: 10,
  188. selfStopProduce: 10,
  189. selfStopBuild: 10,
  190. orderStopRectify: 10,
  191. orderStopBuild: 10,
  192. stopProduceRectify: 10,
  193. stopBuildRectify: 10,
  194. longTermStopProduce: 10,
  195. longTermStopBuild: 10,
  196. longTermClose: 10,
  197. },
  198. ]