|
@@ -1,10 +1,15 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="company-home" id="company-home">
|
|
<div class="company-home" id="company-home">
|
|
|
<RealtimeSurveillance v-if="curCamera?.code" />
|
|
<RealtimeSurveillance v-if="curCamera?.code" />
|
|
|
- <img v-else style="width: 100%" src="@/assets/images/sfy.jpg" alt="" />
|
|
|
|
|
|
|
+ <img v-else style="width: 100%" src="@/assets/images/institute-safety/sfy.jpg" alt="" />
|
|
|
<CompanyRating v-if="!curCamera?.code" />
|
|
<CompanyRating v-if="!curCamera?.code" />
|
|
|
- <ControlTab @open-surveillance-list="showSurveillanceList = true" @open-question-list="handleOpenQuestionList" />
|
|
|
|
|
|
|
+ <ControlTab
|
|
|
|
|
+ @open-surveillance-list="showSurveillanceList = true"
|
|
|
|
|
+ @open-workshop-list="showWorkshopList = true"
|
|
|
|
|
+ @open-question-list="handleOpenQuestionList"
|
|
|
|
|
+ />
|
|
|
<SurveillanceList v-if="showSurveillanceList" @close="showSurveillanceList = false" />
|
|
<SurveillanceList v-if="showSurveillanceList" @close="showSurveillanceList = false" />
|
|
|
|
|
+ <WorkshopList v-if="showWorkshopList" @close="showWorkshopList = false" />
|
|
|
|
|
|
|
|
<QuestionList v-if="showQuestionList" @close="handleQuestionListClose" />
|
|
<QuestionList v-if="showQuestionList" @close="handleQuestionListClose" />
|
|
|
</div>
|
|
</div>
|
|
@@ -13,8 +18,10 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import CompanyRating from './components/CompanyRating.vue';
|
|
import CompanyRating from './components/CompanyRating.vue';
|
|
|
import ControlTab from './components/ControlTab.vue';
|
|
import ControlTab from './components/ControlTab.vue';
|
|
|
- import SurveillanceList from './components/SurveillanceList.vue';
|
|
|
|
|
import RealtimeSurveillance from './components/RealtimeSurveillance.vue';
|
|
import RealtimeSurveillance from './components/RealtimeSurveillance.vue';
|
|
|
|
|
+ import SurveillanceList from './components/SurveillanceList.vue';
|
|
|
|
|
+ import WorkshopList from './components/WorkshopList.vue';
|
|
|
|
|
+
|
|
|
import QuestionList from '../safety-question-list/QuestionList.vue';
|
|
import QuestionList from '../safety-question-list/QuestionList.vue';
|
|
|
|
|
|
|
|
import useQuestionListStore from '@/views/institute-safety/modules/safety-company-home/stores/use-question-list';
|
|
import useQuestionListStore from '@/views/institute-safety/modules/safety-company-home/stores/use-question-list';
|
|
@@ -23,9 +30,10 @@
|
|
|
import useCameraStore from './stores/use-camera-store';
|
|
import useCameraStore from './stores/use-camera-store';
|
|
|
import { nextTick, onUnmounted, ref } from 'vue';
|
|
import { nextTick, onUnmounted, ref } from 'vue';
|
|
|
import { storeToRefs } from 'pinia';
|
|
import { storeToRefs } from 'pinia';
|
|
|
- import { WORKSHOP_INFOS } from '../safety-workshop-list/constants';
|
|
|
|
|
|
|
+ import { WORKSHOP_INFOS } from './constants';
|
|
|
|
|
|
|
|
const showSurveillanceList = ref(false);
|
|
const showSurveillanceList = ref(false);
|
|
|
|
|
+ const showWorkshopList = ref(false);
|
|
|
|
|
|
|
|
useViolationNoticeCompany();
|
|
useViolationNoticeCompany();
|
|
|
|
|
|
|
@@ -51,6 +59,7 @@
|
|
|
questionListStore.openList();
|
|
questionListStore.openList();
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
function handleQuestionListClose() {
|
|
function handleQuestionListClose() {
|
|
|
questionListStore.closeList();
|
|
questionListStore.closeList();
|
|
|
}
|
|
}
|