|
@@ -52,7 +52,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
- import { computed, defineEmits, inject, ref, watch } from 'vue';
|
|
|
|
|
|
|
+ import { defineEmits, inject, ref, watch } from 'vue';
|
|
|
import { ElMessage, ElSwitch } from 'element-plus';
|
|
import { ElMessage, ElSwitch } from 'element-plus';
|
|
|
import useCameraAlgoStore from '../../store/useCameraAlgoStore';
|
|
import useCameraAlgoStore from '../../store/useCameraAlgoStore';
|
|
|
import PresetSelect from '../PresetSelect/PresetSelect.vue';
|
|
import PresetSelect from '../PresetSelect/PresetSelect.vue';
|
|
@@ -66,7 +66,6 @@
|
|
|
import { RegionJudge } from './constants';
|
|
import { RegionJudge } from './constants';
|
|
|
import { choosePreset, updateFenceDisplayStatus } from '@/api/camera/camera-preview';
|
|
import { choosePreset, updateFenceDisplayStatus } from '@/api/camera/camera-preview';
|
|
|
import { FenceDisplayStatus } from '@/types/camera/constant';
|
|
import { FenceDisplayStatus } from '@/types/camera/constant';
|
|
|
- import { useGlobSetting } from '@/hooks/setting';
|
|
|
|
|
import useParamsSettingFn from '../../hooks/useParamsSettingFn';
|
|
import useParamsSettingFn from '../../hooks/useParamsSettingFn';
|
|
|
import Description from './Description.vue';
|
|
import Description from './Description.vue';
|
|
|
import TitleWithLine from '@/components/TitleWithLine/TitleWithLine.vue';
|
|
import TitleWithLine from '@/components/TitleWithLine/TitleWithLine.vue';
|
|
@@ -78,7 +77,6 @@
|
|
|
const fenceStore = useFenceStore();
|
|
const fenceStore = useFenceStore();
|
|
|
const cameraDetailStore = useCameraDetailStore();
|
|
const cameraDetailStore = useCameraDetailStore();
|
|
|
const presetStore = usePresetListStore();
|
|
const presetStore = usePresetListStore();
|
|
|
- const props = defineProps<{ isEdit: boolean }>();
|
|
|
|
|
const baseProps = inject<BaseProps>(PROVIDE_CONSTANTS.baseProps);
|
|
const baseProps = inject<BaseProps>(PROVIDE_CONSTANTS.baseProps);
|
|
|
|
|
|
|
|
const showEditFenceDialog = ref(false);
|
|
const showEditFenceDialog = ref(false);
|
|
@@ -101,16 +99,6 @@
|
|
|
const isFenceRegionOut = ref(false);
|
|
const isFenceRegionOut = ref(false);
|
|
|
const isDisplayFenceInVideo = ref(false);
|
|
const isDisplayFenceInVideo = ref(false);
|
|
|
|
|
|
|
|
- const { detail } = storeToRefs(cameraDetailStore);
|
|
|
|
|
-
|
|
|
|
|
- const { appPCUrl } = useGlobSetting();
|
|
|
|
|
-
|
|
|
|
|
- const previewUrl = computed(() => {
|
|
|
|
|
- const firstSceneId = detail.value?.sceneTemplateList[0]?.sceneId;
|
|
|
|
|
- if (!detail.value?.workshopId || !detail.value?.code || !firstSceneId) return '';
|
|
|
|
|
- return appPCUrl + `#/shop?id=${detail.value?.workshopId}&cameraCode=${detail.value?.code!}&sceneId=${firstSceneId}`;
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
watch(
|
|
watch(
|
|
|
() => selectedAlgoDetail.value?.regionJudge,
|
|
() => selectedAlgoDetail.value?.regionJudge,
|
|
|
(newVal) => {
|
|
(newVal) => {
|