|
|
@@ -18,7 +18,12 @@
|
|
|
<div v-if="fenceStore.allFences.length > 0">
|
|
|
<div style="display: flex">
|
|
|
<ElCheckbox label="检测围栏外部" v-model="isFenceRegionOut" @update:modelValue="handleUpdateRegion" />
|
|
|
- <ElCheckbox label="前台画面显示" v-model="isDisplayFenceInVideo" @update:modelValue="handleUpdateDisplay" />
|
|
|
+ <ElCheckbox
|
|
|
+ label="前台画面显示"
|
|
|
+ v-model="isDisplayFenceInVideo"
|
|
|
+ @update:modelValue="handleUpdateDisplay"
|
|
|
+ v-if="!baseProps.isCameraGroup"
|
|
|
+ />
|
|
|
</div>
|
|
|
<div class="fenceListWrapper">
|
|
|
<FenceNameItem
|
|
|
@@ -47,7 +52,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup lang="ts">
|
|
|
- import { computed, defineEmits, ref, watch } from 'vue';
|
|
|
+ import { computed, defineEmits, inject, ref, watch } from 'vue';
|
|
|
import { ElMessage, ElSwitch } from 'element-plus';
|
|
|
import useCameraAlgoStore from '../../store/useCameraAlgoStore';
|
|
|
import PresetSelect from '../PresetSelect/PresetSelect.vue';
|
|
|
@@ -65,6 +70,8 @@
|
|
|
import useParamsSettingFn from '../../hooks/useParamsSettingFn';
|
|
|
import Description from './Description.vue';
|
|
|
import TitleWithLine from '@/components/TitleWithLine/TitleWithLine.vue';
|
|
|
+ import { BaseProps } from '../../types';
|
|
|
+ import { PROVIDE_CONSTANTS } from '../../constants';
|
|
|
|
|
|
const cameraAlgoStore = useCameraAlgoStore();
|
|
|
|
|
|
@@ -72,6 +79,7 @@
|
|
|
const cameraDetailStore = useCameraDetailStore();
|
|
|
const presetStore = usePresetListStore();
|
|
|
const props = defineProps<{ isEdit: boolean }>();
|
|
|
+ const baseProps = inject<BaseProps>(PROVIDE_CONSTANTS.baseProps);
|
|
|
|
|
|
const showEditFenceDialog = ref(false);
|
|
|
const selectedDetail = ref<ServerLineInfo | null>(null);
|