Commit 568b7738 authored by wenmo's avatar wenmo

[Feature-552][web] Hide export StreamGraphPlan button when not FlinkSQL task

parent 1421a305
......@@ -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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment