mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
feat(Data Source): add Table relationship management
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user