|
@@ -1,11 +1,15 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div>
|
|
<div>
|
|
|
- <FenceToolbar
|
|
|
|
|
- @remove="handleRemove"
|
|
|
|
|
- @save="handleSave"
|
|
|
|
|
- @toggle-editable="toggleEditable"
|
|
|
|
|
- :is-edit="isEdit"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <div class="toolbarWrapper">
|
|
|
|
|
+ <ViewWindowSetting v-model="viewType" />
|
|
|
|
|
+ <FenceToolbar
|
|
|
|
|
+ @remove="handleRemove"
|
|
|
|
|
+ @save="handleSave"
|
|
|
|
|
+ @toggle-editable="toggleEditable"
|
|
|
|
|
+ :is-edit="isEdit"
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
<div class="cameraViewSettingWrapper">
|
|
<div class="cameraViewSettingWrapper">
|
|
|
<FenceEditor ref="fenceEditorRef" />
|
|
<FenceEditor ref="fenceEditorRef" />
|
|
|
<div class="cameraVideo"><CameraLiveVideo /></div>
|
|
<div class="cameraVideo"><CameraLiveVideo /></div>
|
|
@@ -17,9 +21,13 @@
|
|
|
import FenceToolbar from '../FenceToolbar/FenceToolbar.vue';
|
|
import FenceToolbar from '../FenceToolbar/FenceToolbar.vue';
|
|
|
import FenceEditor from '../FenceEditor/FenceEditor.vue';
|
|
import FenceEditor from '../FenceEditor/FenceEditor.vue';
|
|
|
import CameraLiveVideo from '../CameraLiveVideo/CameraLiveVideo.vue';
|
|
import CameraLiveVideo from '../CameraLiveVideo/CameraLiveVideo.vue';
|
|
|
|
|
+ import ViewWindowSetting from '../ViewWindowSetting/ViewWindowSetting.vue';
|
|
|
|
|
+ import { ViewType } from '../ViewWindowSetting/types';
|
|
|
|
|
|
|
|
const fenceEditorRef = ref<typeof FenceEditor | null>(null);
|
|
const fenceEditorRef = ref<typeof FenceEditor | null>(null);
|
|
|
|
|
|
|
|
|
|
+ const viewType = ref<ViewType>(ViewType.window1);
|
|
|
|
|
+
|
|
|
const handleRemove = () => {
|
|
const handleRemove = () => {
|
|
|
console.log('handleRemove');
|
|
console.log('handleRemove');
|
|
|
fenceEditorRef.value?.remove();
|
|
fenceEditorRef.value?.remove();
|
|
@@ -56,4 +64,10 @@
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ .toolbarWrapper {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ margin-left: 25px;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|