index.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. export const dialogTreeObj = {
  2. title: '所属分类',
  3. activityheight: '500px',
  4. searchIcon: false,
  5. configure: {
  6. children: 'children',
  7. label: 'avmatCategoriesName'
  8. }
  9. }
  10. export const dialogOptions = {
  11. stripe: true, // 斑马纹
  12. mutiSelect: false, // 多选框
  13. index: false, // 显示序号, 多选则 mutiSelect
  14. loading: false, // 表格动画
  15. initTable: true, // 是否一挂载就加载数据
  16. border: true,
  17. height: 'calc(100vh - 380px)'
  18. }
  19. export const dialogColumns = (_this) => [
  20. {
  21. prop: 'avmatCatalogName',
  22. label: '航材名称'
  23. },
  24. {
  25. prop: 'avmatCatalogCode',
  26. label: '航材编码'
  27. },
  28. {
  29. prop: 'specification',
  30. label: '规格型号'
  31. },
  32. {
  33. prop: 'unit',
  34. label: '计量单位'
  35. },
  36. {
  37. prop: 'avmatCategoriesName',
  38. label: '航材分类'
  39. },
  40. {
  41. button: true,
  42. label: '操作',
  43. width: '100px',
  44. group: [
  45. {
  46. name: '选择',
  47. type: 'text',
  48. round: false,
  49. plain: false,
  50. onClick: (row, index, scope) => {
  51. _this.select(row)
  52. }
  53. }
  54. ]
  55. }
  56. ]