diff --git a/components.d.ts b/components.d.ts index abccb00..94eb12f 100644 --- a/components.d.ts +++ b/components.d.ts @@ -8,7 +8,6 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { AButton: typeof import('ant-design-vue/es')['Button'] - ADirectoryTree: typeof import('ant-design-vue/es')['DirectoryTree'] ADropdown: typeof import('ant-design-vue/es')['Dropdown'] AForm: typeof import('ant-design-vue/es')['Form'] AFormItem: typeof import('ant-design-vue/es')['FormItem'] @@ -21,7 +20,6 @@ declare module '@vue/runtime-core' { ARow: typeof import('ant-design-vue/es')['Row'] ASelect: typeof import('ant-design-vue/es')['Select'] ATree: typeof import('ant-design-vue/es')['Tree'] - ATreeNode: typeof import('ant-design-vue/es')['TreeNode'] Draggable: typeof import('./src/components/Draggable.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] diff --git a/src/views/page/aside/cameraLeftMenu.vue b/src/views/page/aside/cameraLeftMenu.vue index b16baba..7e5f3cf 100644 --- a/src/views/page/aside/cameraLeftMenu.vue +++ b/src/views/page/aside/cameraLeftMenu.vue @@ -94,8 +94,9 @@ const onContextMenuClick = (treeKey: string, menuKey: string) => { arr.push(treeKey) arr = [...new Set(arr)] expandedKeys.value = arr + piniaStore.updateCurSelectKey(NodeTreeItem.value.cbCameraId.toString()) } else if (menuKey == "close") { - + piniaStore.updateCloseVideoKey(NodeTreeItem.value.cbCameraId.toString()) expandedKeys.value = expandedKeys.value.filter((item: any) => { return item != treeKey }) @@ -103,14 +104,15 @@ const onContextMenuClick = (treeKey: string, menuKey: string) => { } + }; // 选中相机 function selectCamera(treeKeyArr: any, item: any) { - if (treeKeyArr.length != 0) { - console.log(treeKeyArr); + // if (treeKeyArr.length != 0) { + // console.log(treeKeyArr); - piniaStore.updateCurTreeKey(treeKeyArr[0].toString()) - } + // piniaStore.updateCurTreeKey(treeKeyArr[0].toString()) + // } // if (!item.node.isGroup) { piniaStore.updateCurSelectKey(item.node.cbCameraId.toString()) // } @@ -145,7 +147,6 @@ function loadTreeData() { console.log(res); if (res.data.code == 200) { treeData.value = againTreeData(res.data.data) - console.log(treeData.value[0]); } }) diff --git a/src/views/page/cameraCenter.vue b/src/views/page/cameraCenter.vue index 524d8a0..e313dd5 100644 --- a/src/views/page/cameraCenter.vue +++ b/src/views/page/cameraCenter.vue @@ -1,8 +1,6 @@