table.config.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. export const order = {
  2. columns: [
  3. {
  4. title: "编号",
  5. dataIndex: "id",
  6. },
  7. {
  8. title: "订单号",
  9. dataIndex: "orderNo",
  10. },
  11. {
  12. title: "下单人",
  13. dataIndex: "addressName",
  14. },
  15. {
  16. title: "订单金额",
  17. dataIndex: "totalFee",
  18. },
  19. {
  20. title: "支付方式",
  21. dataIndex: "payType",
  22. },
  23. {
  24. title: "订单状态",
  25. dataIndex: "status",
  26. },
  27. {
  28. title: "操作",
  29. dataIndex: "action",
  30. scopedSlots: { customRender: "action" },
  31. },
  32. ],
  33. condition: [
  34. {
  35. title: "手机号",
  36. dataIndex: "phone",
  37. type: "input",
  38. },
  39. {
  40. title: "订单状态",
  41. dataIndex: "status",
  42. type: "select",
  43. defaultValue: '全部',
  44. options: [
  45. {
  46. label: "全部",
  47. value: "全部",
  48. },
  49. {
  50. label: "待支付",
  51. value: "待支付",
  52. },
  53. {
  54. label: "已支付",
  55. value: "已支付",
  56. },
  57. ],
  58. },
  59. ],
  60. }