2025-09-08 10:33:21 +08:00
|
|
|
<template>
|
|
|
|
|
<!-- 数据汇集管理 -->
|
2025-09-08 11:19:56 +08:00
|
|
|
<div class="app-container">
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<LeftTree @handleNodeClick="handleNodeClick" />
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="16">
|
|
|
|
|
<RightTable :selectedNodeId="selectedNodeId" />
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</div>
|
2025-09-08 10:33:21 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2025-09-08 11:19:56 +08:00
|
|
|
import LeftTree from './components/left-tree.vue'
|
|
|
|
|
import RightTable from './components/right-table.vue'
|
2025-09-08 10:33:21 +08:00
|
|
|
export default {
|
|
|
|
|
name: 'DataSetManage',
|
2025-09-08 11:19:56 +08:00
|
|
|
components: {
|
|
|
|
|
LeftTree,
|
|
|
|
|
RightTable,
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
// 选中的节点ID
|
|
|
|
|
selectedNodeId: null,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// 节点点击事件
|
|
|
|
|
handleNodeClick(data) {
|
|
|
|
|
console.log(data)
|
|
|
|
|
this.selectedNodeId = data.id
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-09-08 10:33:21 +08:00
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style></style>
|