feat(Data Source): add Table relationship management

This commit is contained in:
dataeaseShu
2025-09-24 16:29:42 +08:00
committed by dataeaseShu
parent 976f463167
commit 3f90991b88
+1 -2
View File
@@ -221,6 +221,7 @@ const getTableData = () => {
datasourceApi
.relationGet(props.id)
.then((data: any) => {
if (!data.length) return
nodeIds.value = data.filter((ele: any) => ele.shape === 'er-rect').map((ele: any) => ele.id)
nextTick(() => {
if (!graph) {
@@ -230,8 +231,6 @@ const getTableData = () => {
if (item.shape === 'edge') {
cells.value.push(graph.createEdge({ ...item, ...edgeOPtion }))
} else {
console.log(item)
cells.value.push(
graph.createNode({
...item,