index.js 920 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. export const defaultProps = {
  2. children: 'children',
  3. label: 'label'
  4. }
  5. export const columns = (_this) => [
  6. {
  7. prop: 'aircaftCatalogCode',
  8. label: '飞机编号'
  9. },
  10. {
  11. prop: 'aircaftModelName',
  12. label: '所属机型'
  13. },
  14. {
  15. prop: 'aircaftTypeName',
  16. label: '所属机种'
  17. },
  18. {
  19. prop: 'mechanician',
  20. label: '机械师'
  21. },
  22. {
  23. button: true,
  24. label: '操作',
  25. width: '240px',
  26. group: [
  27. {
  28. name: '选择',
  29. type: 'text',
  30. round: false,
  31. plain: false,
  32. onClick: (row, index, scope) => {
  33. _this.select(row)
  34. }
  35. }
  36. ]
  37. }
  38. ]
  39. export const options = {
  40. stripe: true, // 斑马纹
  41. mutiSelect: false, // 多选框
  42. index: false, // 显示序号, 多选则 mutiSelect
  43. loading: false, // 表格动画
  44. initTable: true, // 是否一挂载就加载数据
  45. border: true,
  46. height: 'calc(100vh - 380px)'
  47. }