Merge pull request #4389 from dataease/pr@dev@fix_relation_search_default_panel

fix(血缘关系): 修复默认仪表板查询结果为空
This commit is contained in:
wisonic-s 2023-01-16 18:13:49 +08:00 committed by GitHub
commit 39b0e65c9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 14 deletions

View File

@ -52,9 +52,14 @@ export default {
case 'dataset':
this.getDatasetRelationship(id)
break
case 'panel':
this.getPanelRelationship(id)
case 'panel': {
let targetId = id
if (current.nodeData?.source) {
targetId = current.nodeData.source
}
this.getPanelRelationship(targetId)
break
}
default:
break
}

View File

@ -230,7 +230,8 @@ export default {
return {
queryType: this.formInline.queryType,
num: this.formInline.dataSourceName,
label: this.nodeData.name
label: this.nodeData.name,
nodeData: this.nodeData
}
},
queryTypeTitle() {
@ -305,9 +306,14 @@ export default {
case 'dataset':
this.getDatasetRelationship(id)
break
case 'panel':
this.getPanelRelationship(id)
case 'panel': {
let targetId = id
if (this.nodeData.source) {
targetId = this.nodeData.source
}
this.getPanelRelationship(targetId)
break
}
default:
break
}
@ -632,7 +638,7 @@ export default {
visibility: visible;
}
.relation-popover {
max-height: 80%;
max-height: 70%;
overflow-y: scroll;
}
</style>