CompanyHome.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <div class="company-home">
  3. <RealtimeSurveillance v-if="curCamCode" :code="curCamCode" />
  4. <img v-else style="width: 100%" src="@/assets/images/sfy.jpg" alt="" />
  5. <CompanyRating />
  6. <ControlTab @open-surveillance-list="showSurveillanceList = true" @open-question-list="showQuestionList = true" />
  7. <SurveillanceList v-if="showSurveillanceList" :cur-cam-code="curCamCode" @close="showSurveillanceList = false" />
  8. <!-- <QuestionList v-if="showQuestionList" /> -->
  9. </div>
  10. </template>
  11. <script setup lang="ts">
  12. import CompanyRating from './components/CompanyRating.vue';
  13. import ControlTab from './components/ControlTab.vue';
  14. import SurveillanceList from './components/SurveillanceList.vue';
  15. import RealtimeSurveillance from './components/RealtimeSurveillance.vue';
  16. import QuestionList from '../safety-question-list/QuestionList.vue';
  17. import useViolationNoticeCompany from './hooks/use-violation-notice-company';
  18. import { ref } from 'vue';
  19. const curCamCode = ref<null | string>(null);
  20. const showSurveillanceList = ref(false);
  21. const showQuestionList = ref(false);
  22. useViolationNoticeCompany();
  23. </script>
  24. <style scoped>
  25. .company-home {
  26. width: 100%;
  27. height: 675px;
  28. position: relative;
  29. overflow: hidden;
  30. border-radius: 5px;
  31. }
  32. </style>