Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
9e9b1fe3
Unverified
Commit
9e9b1fe3
authored
May 30, 2022
by
aiwenmo
Committed by
GitHub
May 30, 2022
Browse files
Options
Browse Files
Download
Plain Diff
[Feature-552][web] Hide export StreamGraphPlan button when not FlinkS…
[Feature-552][web] Hide export StreamGraphPlan button when not FlinkS…
parents
1421a305
568b7738
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
index.tsx
...eb/src/components/Studio/StudioConsole/StudioCA/index.tsx
+13
-9
No files found.
dlink-web/src/components/Studio/StudioConsole/StudioCA/index.tsx
View file @
9e9b1fe3
...
...
@@ -7,6 +7,7 @@ import {getLineage, getStreamGraph} from "@/pages/DataStudio/service";
import
{
useState
}
from
"react"
;
import
Lineage
,
{
getInit
}
from
"@/components/Lineage"
;
import
CodeShow
from
"@/components/Common/CodeShow"
;
import
{
DIALECT
}
from
"@/components/Studio/conf"
;
const
{
TabPane
}
=
Tabs
;
...
...
@@ -14,6 +15,7 @@ const StudioCA = (props: any) => {
const
{
current
}
=
props
;
const
[
data
,
setData
]
=
useState
(
getInit
());
debugger
;
const
handleLineage
=
()
=>
{
const
res
=
getLineage
({
statement
:
current
.
value
,
...
...
@@ -64,15 +66,17 @@ const StudioCA = (props: any) => {
计算血缘
</
Button
>
</
Tooltip
>
<
Tooltip
title=
"导出 StreamGraphPlan"
>
<
Button
type=
"text"
icon=
{
<
SnippetsOutlined
/>
}
onClick=
{
handleExportStreamGraphPlan
}
>
StreamGraphPlan
</
Button
>
</
Tooltip
>
{
(
!
current
.
task
.
dialect
||
current
.
task
.
dialect
==
DIALECT
.
FLINKSQL
)
?
<
Tooltip
title=
"导出 StreamGraphPlan"
>
<
Button
type=
"text"
icon=
{
<
SnippetsOutlined
/>
}
onClick=
{
handleExportStreamGraphPlan
}
>
StreamGraphPlan
</
Button
>
</
Tooltip
>
:
undefined
}
</>
}
>
<
TabPane
tab=
{
<
span
>
血缘分析
</
span
>
}
key=
"Lineage"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment