oa.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. $type_one = 1; // 输入框
  3. $type_two = 2; // 下拉框
  4. $type_three = 3; // 程度
  5. $type_four = 4; // boolean
  6. $yesNo = [0, 1];
  7. return [
  8. [
  9. 'menu_id' => 56,
  10. 'menu_title' => '商机管理',
  11. 'children' => [
  12. [
  13. 'key' => 'relationship_level',
  14. 'title' => '关系程度',
  15. 'type' => $type_three,
  16. 'list' => [],
  17. ],
  18. [
  19. 'key' => 'is_company_title',
  20. 'title' => '是否公司',
  21. 'type' => $type_four,
  22. 'list' => $yesNo,
  23. ],
  24. [
  25. 'key' => 'customer_type',
  26. 'title' => '商机类型',
  27. 'type' => $type_one,
  28. 'list' => [],
  29. ],
  30. [
  31. 'key' => 'intention',
  32. 'title' => '意向程度',
  33. 'type' => $type_three,
  34. 'list' => [],
  35. ],
  36. [
  37. 'key' => 'cs',
  38. 'title' => '测试条件',
  39. 'type' => $type_two,
  40. 'list' => ['姜望', '衍道' , '长相思'],
  41. ],
  42. ]
  43. ],
  44. ];