indexColumns.js 858 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. function columns(vm) {
  2. const cols = [
  3. {
  4. title: '序号',
  5. key: 'rowIndex',
  6. width: 60,
  7. align: 'center',
  8. customRender: function(t, r, index) {
  9. return parseInt(index) + 1
  10. }
  11. },
  12. {
  13. title: '车间',
  14. align: 'center',
  15. dataIndex: 'deptName',
  16. key: 'deptName'
  17. },
  18. {
  19. title: '站场/区间',
  20. align: 'center',
  21. dataIndex: 'stationName',
  22. key: 'stationName'
  23. },
  24. {
  25. title: '支柱号范围',
  26. align: 'center',
  27. dataIndex: 'pillarArea',
  28. key: 'pillarArea'
  29. },
  30. {
  31. title: '检查人',
  32. align: 'center',
  33. dataIndex: 'checkUser',
  34. key: 'checkUser'
  35. },
  36. {
  37. title: '检查日期',
  38. align: 'center',
  39. dataIndex: 'checkDate',
  40. key: 'checkDate'
  41. }
  42. ]
  43. return cols
  44. }
  45. export default columns