|
|
@@ -29,7 +29,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <AlgoCanSelect :algo-list="cameraAllAlgoList" :selected-ids="cameraAlgoIds" @select="handleApplyAlgo"
|
|
|
+ <AlgoCanSelect :algo-list="props.cameraAllAlgoList" :selected-ids="cameraAlgoIds" @select="handleApplyAlgo"
|
|
|
/></div>
|
|
|
</div>
|
|
|
|
|
|
@@ -89,6 +89,8 @@
|
|
|
(e: 'changeTreeRender', render: number | string): unknown;
|
|
|
}>();
|
|
|
|
|
|
+ const props = defineProps<{ cameraAllAlgoList: AlgoDetail[] }>();
|
|
|
+
|
|
|
const fenceEditorRef = ref<typeof FenceEditor | null>(null);
|
|
|
|
|
|
const paramsSettingFn = useParamsSettingFn();
|
|
|
@@ -101,21 +103,12 @@
|
|
|
|
|
|
const { getCameraAlgoList } = cameraAlgoStore;
|
|
|
|
|
|
- // const viewType = ref<ViewType>(ViewType.window1);
|
|
|
-
|
|
|
const addPresetModalVisible = ref(false);
|
|
|
|
|
|
- const cameraAllAlgoList = ref<AlgoDetail[]>([]);
|
|
|
-
|
|
|
const cameraAlgoIds = computed(() => {
|
|
|
return cameraAlgoStore.cameraAlgoList?.map((item) => item.algoId) || [];
|
|
|
});
|
|
|
|
|
|
- onMounted(() => {
|
|
|
- queryAlgoInfoAllByCameraId(cameraDetailStore.cameraId).then((res) => {
|
|
|
- cameraAllAlgoList.value = res;
|
|
|
- });
|
|
|
- });
|
|
|
const handleClose = () => {
|
|
|
addPresetModalVisible.value = false;
|
|
|
};
|