tab1Columns.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. function columns(vm) {
  2. const cols = [{
  3. width: 150, title: '序号', key: 'rowIndex', align: 'center', customRender: function(t, r, index) {
  4. return parseInt(index) + 1
  5. }
  6. }, {
  7. width: 150, title: '段', align: 'center', dataIndex: 'branchName', key: 'branchName'
  8. }, {
  9. width: 150, title: '车间', align: 'center', dataIndex: 'deptName', key: 'deptName'
  10. }, {
  11. width: 150, title: '班组', align: 'center', dataIndex: 'teamName', key: 'teamName'
  12. }, // {
  13. // width: 150,title: '线路名称',
  14. // align: 'center',
  15. // dataIndex: 'lineName',
  16. // key: 'lineName'
  17. // },
  18. {
  19. width: 150, title: '巡检单元(杆号、箱变名称、变配电所)', align: 'center', dataIndex: 'xjdy', key: 'xjdy'
  20. }, {
  21. width: 150, title: '箱变', align: 'center', dataIndex: 'xb', key: 'xb'
  22. }, {
  23. width: 150, title: '10/0.4变电所', align: 'center', dataIndex: 'bds', key: 'bds'
  24. }, {
  25. width: 150, title: '受电线路', align: 'center', dataIndex: 'sdxl', key: 'sdxl'
  26. }, {
  27. width: 150, title: '牵引变电所', align: 'center', dataIndex: 'qybds', key: 'qybds'
  28. }, {
  29. width: 150, title: 'AT/分区所', align: 'center', dataIndex: 'atfqs', key: 'atfqs'
  30. },
  31. {
  32. width: 150, title: '1月计划',
  33. 'align': 'center',
  34. 'dataIndex': 'plan1',
  35. 'key': 'plan1'
  36. },
  37. {
  38. width: 150, title: '1月实际',
  39. 'align': 'center',
  40. 'dataIndex': 'actual1',
  41. 'key': 'actual1'
  42. },
  43. {
  44. width: 150, title: '2月计划',
  45. 'align': 'center',
  46. 'dataIndex': 'plan2',
  47. 'key': 'plan2'
  48. },
  49. {
  50. width: 150, title: '2月实际',
  51. 'align': 'center',
  52. 'dataIndex': 'actual2',
  53. 'key': 'actual2'
  54. },
  55. {
  56. width: 150, title: '3月计划',
  57. 'align': 'center',
  58. 'dataIndex': 'plan3',
  59. 'key': 'plan3'
  60. },
  61. {
  62. width: 150, title: '3月实际',
  63. 'align': 'center',
  64. 'dataIndex': 'actual3',
  65. 'key': 'actual3'
  66. },
  67. {
  68. width: 150, title: '4月计划',
  69. 'align': 'center',
  70. 'dataIndex': 'plan4',
  71. 'key': 'plan4'
  72. },
  73. {
  74. width: 150, title: '4月实际',
  75. 'align': 'center',
  76. 'dataIndex': 'actual4',
  77. 'key': 'actual4'
  78. },
  79. {
  80. width: 150, title: '5月计划',
  81. 'align': 'center',
  82. 'dataIndex': 'plan5',
  83. 'key': 'plan5'
  84. },
  85. {
  86. width: 150, title: '5月实际',
  87. 'align': 'center',
  88. 'dataIndex': 'actual5',
  89. 'key': 'actual5'
  90. },
  91. {
  92. width: 150, title: '6月计划',
  93. 'align': 'center',
  94. 'dataIndex': 'plan6',
  95. 'key': 'plan6'
  96. },
  97. {
  98. width: 150, title: '6月实际',
  99. 'align': 'center',
  100. 'dataIndex': 'actual6',
  101. 'key': 'actual6'
  102. },
  103. {
  104. width: 150, title: '7月计划',
  105. 'align': 'center',
  106. 'dataIndex': 'plan7',
  107. 'key': 'plan7'
  108. },
  109. {
  110. width: 150, title: '7月实际',
  111. 'align': 'center',
  112. 'dataIndex': 'actual7',
  113. 'key': 'actual7'
  114. },
  115. {
  116. width: 150, title: '8月计划',
  117. 'align': 'center',
  118. 'dataIndex': 'plan8',
  119. 'key': 'plan8'
  120. },
  121. {
  122. width: 150, title: '8月实际',
  123. 'align': 'center',
  124. 'dataIndex': 'actual8',
  125. 'key': 'actual8'
  126. },
  127. {
  128. width: 150, title: '9月计划',
  129. 'align': 'center',
  130. 'dataIndex': 'plan9',
  131. 'key': 'plan9'
  132. },
  133. {
  134. width: 150, title: '9月实际',
  135. 'align': 'center',
  136. 'dataIndex': 'actual9',
  137. 'key': 'actual9'
  138. },
  139. {
  140. width: 150, title: '10月计划',
  141. 'align': 'center',
  142. 'dataIndex': 'plan10',
  143. 'key': 'plan10'
  144. },
  145. {
  146. width: 150, title: '10月实际',
  147. 'align': 'center',
  148. 'dataIndex': 'actual10',
  149. 'key': 'actual10'
  150. },
  151. {
  152. width: 150, title: '11月计划',
  153. 'align': 'center',
  154. 'dataIndex': 'plan11',
  155. 'key': 'plan11'
  156. },
  157. {
  158. width: 150, title: '11月实际',
  159. 'align': 'center',
  160. 'dataIndex': 'actual11',
  161. 'key': 'actual11'
  162. },
  163. {
  164. width: 150, title: '12月计划',
  165. 'align': 'center',
  166. 'dataIndex': 'plan12',
  167. 'key': 'plan12'
  168. },
  169. {
  170. width: 150, title: '12月实际',
  171. 'align': 'center',
  172. 'dataIndex': 'actual12',
  173. 'key': 'actual12'
  174. }
  175. ]
  176. return cols
  177. }
  178. export default columns