tab5Columns.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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: 'qxsbmc',
  16. key: 'qxsbmc'
  17. },
  18. {
  19. title: '工区',
  20. align: 'center',
  21. dataIndex: 'ssgq',
  22. key: 'ssgq'
  23. },
  24. {
  25. title: '线别',
  26. align: 'center',
  27. dataIndex: 'lineName',
  28. key: 'lineName'
  29. },
  30. {
  31. title: '发现日期',
  32. align: 'center',
  33. dataIndex: 'foundDate',
  34. key: 'foundDate'
  35. },
  36. {
  37. title: '缺陷内容',
  38. align: 'center',
  39. dataIndex: 'qxnr',
  40. key: 'qxnr'
  41. },
  42. {
  43. title: '故障类别',
  44. align: 'center',
  45. dataIndex: 'gzlb',
  46. key: 'gzlb'
  47. },
  48. {
  49. title: '原因',
  50. align: 'center',
  51. dataIndex: 'reason',
  52. key: 'reason'
  53. },
  54. {
  55. title: '严重性',
  56. align: 'center',
  57. dataIndex: 'gravity',
  58. key: 'gravity'
  59. },
  60. {
  61. title: '处理措施',
  62. align: 'center',
  63. dataIndex: 'rectifyWay',
  64. key: 'rectifyWay'
  65. }
  66. ]
  67. return cols
  68. }
  69. export default columns