sceneLibraryManagement.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!--场景库管理,包括自然驾驶、标准法规仿真、交通事故仿真、泛化四个场景库-->
  2. <template>
  3. <div>
  4. <toolbarTab
  5. :isConnect="true"
  6. position="top"
  7. :subPageActiveName="subPageActiveName"
  8. :toolbarItem="subPageList"
  9. @toolbarClick="toolsControl"
  10. >
  11. </toolbarTab>
  12. <naturalDrivingScene
  13. v-show="subPageActiveName == 1"
  14. >
  15. </naturalDrivingScene>
  16. <standardRegulationSimulationScene
  17. v-show="subPageActiveName == 2"
  18. >
  19. </standardRegulationSimulationScene>
  20. <trafficAccidentSimulationScene
  21. v-show="subPageActiveName == 3"
  22. >
  23. </trafficAccidentSimulationScene>
  24. <generalizationScene
  25. v-show="subPageActiveName == 4"
  26. ></generalizationScene>
  27. </div>
  28. </template>
  29. <script>
  30. import toolbarTab from "@/components/toolbar/toolbarTab";
  31. import naturalDrivingScene from "./naturalDrivingScene"
  32. import standardRegulationSimulationScene from "./standardRegulationSimulationScene"
  33. import trafficAccidentSimulationScene from "./trafficAccidentSimulationScene"
  34. import generalizationScene from "./generalizationScene"
  35. export default{
  36. name: "sceneLibraryManagement",
  37. components: { toolbarTab, naturalDrivingScene, standardRegulationSimulationScene, trafficAccidentSimulationScene, generalizationScene},
  38. data() {
  39. return {
  40. subPageActiveName:1,
  41. };
  42. },
  43. computed: {
  44. subPageList(){
  45. return [
  46. {
  47. type: "primary",
  48. plain: true,
  49. title: "自然驾驶场景",
  50. disabled: false,
  51. api: "",
  52. fromId: 1,
  53. },
  54. {
  55. type: "primary",
  56. plain: true,
  57. title: "标准法规仿真场景",
  58. disabled: false,
  59. api: "",
  60. fromId: 2,
  61. },
  62. {
  63. type: "primary",
  64. plain: true,
  65. title: "交通事故仿真场景",
  66. disabled: false,
  67. api: "",
  68. fromId: 3,
  69. },
  70. {
  71. type: "primary",
  72. plain: true,
  73. title: "泛化场景",
  74. disabled: false,
  75. api: "",
  76. fromId: 4,
  77. },
  78. ]
  79. }
  80. },
  81. methods: {
  82. toolsControl(item){
  83. this.subPageActiveName = item.fromId;
  84. }
  85. },
  86. }
  87. </script>
  88. <style scoped lang="less">
  89. .tabsBox {
  90. position: relative;
  91. overflow: hidden;
  92. .el-button {
  93. position: absolute;
  94. right: 40px;
  95. top: 45px;
  96. }
  97. }
  98. .myTabsBox{
  99. min-height:99px;
  100. }
  101. /deep/ .el-tabs__nav .el-tabs__item{
  102. width:auto;
  103. padding:0 10px;
  104. }
  105. </style>