Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
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
zhaowei
dlink
Commits
568b7738
Commit
568b7738
authored
May 30, 2022
by
wenmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Feature-552][web] Hide export StreamGraphPlan button when not FlinkSQL task
parent
1421a305
Changes
1
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 @
568b7738
...
@@ -7,6 +7,7 @@ import {getLineage, getStreamGraph} from "@/pages/DataStudio/service";
...
@@ -7,6 +7,7 @@ import {getLineage, getStreamGraph} from "@/pages/DataStudio/service";
import
{
useState
}
from
"react"
;
import
{
useState
}
from
"react"
;
import
Lineage
,
{
getInit
}
from
"@/components/Lineage"
;
import
Lineage
,
{
getInit
}
from
"@/components/Lineage"
;
import
CodeShow
from
"@/components/Common/CodeShow"
;
import
CodeShow
from
"@/components/Common/CodeShow"
;
import
{
DIALECT
}
from
"@/components/Studio/conf"
;
const
{
TabPane
}
=
Tabs
;
const
{
TabPane
}
=
Tabs
;
...
@@ -14,6 +15,7 @@ const StudioCA = (props: any) => {
...
@@ -14,6 +15,7 @@ const StudioCA = (props: any) => {
const
{
current
}
=
props
;
const
{
current
}
=
props
;
const
[
data
,
setData
]
=
useState
(
getInit
());
const
[
data
,
setData
]
=
useState
(
getInit
());
debugger
;
const
handleLineage
=
()
=>
{
const
handleLineage
=
()
=>
{
const
res
=
getLineage
({
const
res
=
getLineage
({
statement
:
current
.
value
,
statement
:
current
.
value
,
...
@@ -64,15 +66,17 @@ const StudioCA = (props: any) => {
...
@@ -64,15 +66,17 @@ const StudioCA = (props: any) => {
计算血缘
计算血缘
</
Button
>
</
Button
>
</
Tooltip
>
</
Tooltip
>
<
Tooltip
title=
"导出 StreamGraphPlan"
>
{
(
!
current
.
task
.
dialect
||
current
.
task
.
dialect
==
DIALECT
.
FLINKSQL
)
?
<
Button
<
Tooltip
title=
"导出 StreamGraphPlan"
>
type=
"text"
<
Button
icon=
{
<
SnippetsOutlined
/>
}
type=
"text"
onClick=
{
handleExportStreamGraphPlan
}
icon=
{
<
SnippetsOutlined
/>
}
>
onClick=
{
handleExportStreamGraphPlan
}
StreamGraphPlan
>
</
Button
>
StreamGraphPlan
</
Tooltip
>
</
Button
>
</
Tooltip
>
:
undefined
}
</>
}
</>
}
>
>
<
TabPane
tab=
{
<
span
>
血缘分析
</
span
>
}
key=
"Lineage"
>
<
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