diff --git a/src/components/tree/govern/pointTree.vue b/src/components/tree/govern/pointTree.vue index 74e1fc7..475d8d3 100644 --- a/src/components/tree/govern/pointTree.vue +++ b/src/components/tree/govern/pointTree.vue @@ -78,7 +78,8 @@ getLineTree().then(res => { // }) // } else { - emit('init') + + emit('init',arr2[0]) } }) }) diff --git a/src/views/govern/device/planData/components/popup.vue b/src/views/govern/device/planData/components/popup.vue index 9e4d160..6ad46ac 100644 --- a/src/views/govern/device/planData/components/popup.vue +++ b/src/views/govern/device/planData/components/popup.vue @@ -406,6 +406,7 @@ const details = (val: any) => { } } else { form1.value = val + checkedIdList.value=form1.value.list } return diff --git a/src/views/govern/reportCore/statistics/index.vue b/src/views/govern/reportCore/statistics/index.vue index b438c96..291d017 100644 --- a/src/views/govern/reportCore/statistics/index.vue +++ b/src/views/govern/reportCore/statistics/index.vue @@ -117,7 +117,8 @@ const changetype = (val: any) => { } const handleNodeClick = (data: any, node: any) => { - if (data.level == 3) { + console.log("🚀 ~ handleNodeClick ~ data:", data) + if (data?.type == "line") { dotList.value = data setTimeout(() => { tableStore.index()