Qv.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <script setup>
  2. import QvSimulationMain from "../components/QvSimulation/QvSimulationMain.vue";
  3. import CarSimulationMain from "../components/CarSimulation/CarSimulationMain.vue";
  4. import Index from "../components/Main/Index.vue";
  5. import QvLoading from "./components/Qv/QvLoading.vue";
  6. import { computed, onMounted, onUnmounted, watch, ref } from "vue";
  7. import { useRouter } from 'vue-router';
  8. const router = useRouter();
  9. // 加载百分比是否展示
  10. let qvLoadingLook = ref(true);
  11. // 地下车是否可以展示
  12. let CarSimulationMainLook = ref(true);
  13. // QV检测是否可以展示
  14. let QvSimulationMainLook = ref(false);
  15. /**
  16. * 当前加载百分比页面是否展示
  17. * open
  18. */
  19. const callbackLookEvent = (open) => {
  20. // console.log("当前加载百分比页面是否展示", open);
  21. qvLoadingLook.value = open;
  22. }
  23. /**
  24. * 穿完工作服回调
  25. * bool
  26. */
  27. const callbackChuanGongZuoFuEvent = (bool) => {
  28. // console.log( "穿完工作服回调 callbackChuanGongZuoFuEvent ===> ", bool );
  29. if (bool == true) {
  30. QvSimulationMainLook.value = true;
  31. CarSimulationMainLook.value = false;
  32. return;
  33. }
  34. QvSimulationMainLook.value = false;
  35. CarSimulationMainLook.value = true;
  36. }
  37. </script>
  38. <template>
  39. <div class="Qv">
  40. <!-- <QvLoading v-show="qvLoadingLook == true" @callbackLook="callbackLookEvent"></QvLoading>
  41. <Index></Index>
  42. <QvSimulationMain
  43. v-show="QvSimulationMainLook == true"
  44. ></QvSimulationMain>
  45. <CarSimulationMain
  46. v-show="CarSimulationMainLook == true"
  47. @callbackChuanGongZuoFu="callbackChuanGongZuoFuEvent"
  48. ></CarSimulationMain> -->
  49. <!-- 单独调试 -->
  50. <QvSimulationMain></QvSimulationMain>
  51. </div>
  52. </template>
  53. <style lang="scss" scoped>
  54. .Qv * {
  55. -moz-user-select: none;
  56. -webkit-user-select: none;
  57. -ms-user-select: none;
  58. -khtml-user-select: none;
  59. user-select: none;
  60. }
  61. .Qv {
  62. position: fixed;
  63. z-index: 0;
  64. width: 0px;
  65. height: 0px;
  66. top: 0px;
  67. left: 0px;
  68. }
  69. </style>