columns.js 956 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. export default function useColumns() {
  2. const DemandColumns = [
  3. {
  4. item: {
  5. key: "ways",
  6. title: "方案",
  7. },
  8. attr: {
  9. is: "el-select",
  10. dictName: "sys_plan_type",
  11. disabled: true,
  12. }
  13. },
  14. {
  15. item: {
  16. key: "category",
  17. title: "类型",
  18. },
  19. attr: {
  20. is: "el-select",
  21. dictName: "sys_plan_type",
  22. disabled: true,
  23. }
  24. },
  25. {
  26. item: {
  27. key: "deadline",
  28. title: "截止星期",
  29. },
  30. attr: {
  31. is: "el-input-number",
  32. clearable: true,
  33. min: 1,
  34. max: 7,
  35. // max: (prop) => {
  36. // let { ways } = prop;
  37. // return ways === 'ZJH' ? 7 : 12
  38. // },
  39. }
  40. },
  41. {
  42. item: {
  43. key: "remark",
  44. title: "备注",
  45. },
  46. attr: {
  47. is: "el-input",
  48. clearable: true,
  49. }
  50. },
  51. ];
  52. return { DemandColumns }
  53. }