From b6f89216b410f9b99b13a3d736e4cfc78fa8b787 Mon Sep 17 00:00:00 2001 From: fuhao <62583365+haodd0216@users.noreply.github.com> Date: Thu, 20 Jul 2023 11:42:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20bug#15992=E3=80=8115977?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ChildDevice/BindChildDevice/index.vue | 115 ++++++++++-------- .../ChildDevice/EdgeMap/PatchMapping.vue | 104 ++++++++++++++-- .../Instance/Detail/EdgeMap/PatchMapping.vue | 5 + 3 files changed, 166 insertions(+), 58 deletions(-) diff --git a/src/views/device/Instance/Detail/ChildDevice/BindChildDevice/index.vue b/src/views/device/Instance/Detail/ChildDevice/BindChildDevice/index.vue index b1eb60f9..5ebb69fa 100644 --- a/src/views/device/Instance/Detail/ChildDevice/BindChildDevice/index.vue +++ b/src/views/device/Instance/Detail/ChildDevice/BindChildDevice/index.vue @@ -32,11 +32,11 @@ value: '', type: 'or', }, - // { - // column: 'parentId$not', - // value: detail.id, - // type: 'or', - // }, + // { + // column: 'parentId$not', + // value: detail.id, + // type: 'or', + // }, ], }, { @@ -88,18 +88,24 @@ diff --git a/src/views/device/Instance/Detail/ChildDevice/EdgeMap/PatchMapping.vue b/src/views/device/Instance/Detail/ChildDevice/EdgeMap/PatchMapping.vue index 66345b8b..646a51db 100644 --- a/src/views/device/Instance/Detail/ChildDevice/EdgeMap/PatchMapping.vue +++ b/src/views/device/Instance/Detail/ChildDevice/EdgeMap/PatchMapping.vue @@ -16,9 +16,11 @@
@@ -56,8 +58,17 @@ @@ -212,4 +300,4 @@ onMounted(() => { } } } - \ No newline at end of file + diff --git a/src/views/device/Instance/Detail/EdgeMap/PatchMapping.vue b/src/views/device/Instance/Detail/EdgeMap/PatchMapping.vue index 86818e91..65250054 100644 --- a/src/views/device/Instance/Detail/EdgeMap/PatchMapping.vue +++ b/src/views/device/Instance/Detail/EdgeMap/PatchMapping.vue @@ -20,6 +20,7 @@ :checkedKeys="checkedKeys" :load-data="onLoadData" @check="onCheck" + v-model:expandedKeys="expandedKeys" />
@@ -120,7 +121,11 @@ const handleSearch = async () => { } }; + +const expandedKeys = ref([]) const onCheck = (keys: string[], e: any) => { + // console.log(expandedKeys.push(e)); + expandedKeys.value.push(e.node.id) checkedKeys.value = [...keys]; leftList.value = e?.checkedNodes || []; };