You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vehiclePlateColor.js 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. export const vehiclePlateColor = [{
  2. id: 0,
  3. color: '蓝色'
  4. },
  5. {
  6. id: 1,
  7. color: '黄色'
  8. },
  9. {
  10. id: 2,
  11. color: '黑色'
  12. },
  13. {
  14. id: 3,
  15. color: '白色'
  16. },
  17. {
  18. id: 4,
  19. color: '渐变绿色'
  20. },
  21. {
  22. id: 5,
  23. color: '黄绿双拼色'
  24. },
  25. {
  26. id: 6,
  27. color: '蓝白渐变色'
  28. },
  29. {
  30. id: 9,
  31. color: '未确定'
  32. },
  33. {
  34. id: 11,
  35. color: '绿色'
  36. },
  37. {
  38. id: 12,
  39. color: '红色'
  40. }
  41. ]
  42. //获取车牌颜色
  43. export const getVehiclePlateColor = (id=0) => {
  44. let colors = vehiclePlateColor.filter(item => item.id == id);
  45. return colors[0].color
  46. }
  47. export const vehiclePlateColorPai = [{
  48. id: 0,
  49. color: '蓝牌'
  50. },
  51. {
  52. id: 1,
  53. color: '黄牌'
  54. },
  55. {
  56. id: 2,
  57. color: '黑牌'
  58. },
  59. {
  60. id: 3,
  61. color: '白牌'
  62. },
  63. {
  64. id: 4,
  65. color: '渐变绿牌'
  66. },
  67. {
  68. id: 5,
  69. color: '黄绿双拼牌'
  70. },
  71. {
  72. id: 6,
  73. color: '蓝白渐变牌'
  74. },
  75. {
  76. id: 9,
  77. color: '未确定'
  78. },
  79. {
  80. id: 11,
  81. color: '绿牌'
  82. },
  83. {
  84. id: 12,
  85. color: '红牌'
  86. }
  87. ]
  88. //获取车牌颜色
  89. export const getVehiclePlateColorPai = (id=0) => {
  90. let colors = vehiclePlateColorPai.filter(item => item.id == id);
  91. return colors[0].color
  92. }