Commit aaa3f71f authored by wenmo's avatar wenmo

新增运维标签

parent a82923c7
......@@ -4,7 +4,7 @@ import {
EllipsisOutlined, RedoOutlined,
FireOutlined, ClusterOutlined, RocketOutlined
} from '@ant-design/icons';
import {Button, Dropdown, Menu, Tag, Space, Typography, message, Modal} from 'antd';
import {Button, Dropdown, Menu, Tag, Space, Typography, message, Modal, Empty} from 'antd';
import {PageContainer} from '@ant-design/pro-layout';
import ProCard from '@ant-design/pro-card';
import {JobInfoDetail} from "@/pages/DevOps/data";
......@@ -166,6 +166,31 @@ const JobInfo = (props: any) => {
key: 'base',
closable: false,
},
{
tab: '集群信息',
key: 'cluster',
closable: false,
},
{
tab: '作业快照',
key: 'snapshot',
closable: false,
},
{
tab: '异常信息',
key: 'exception',
closable: false,
},
{
tab: '作业日志',
key: 'log',
closable: false,
},
{
tab: '自动调优',
key: 'optimize',
closable: false,
},
{
tab: '配置信息',
key: 'config',
......@@ -177,13 +202,18 @@ const JobInfo = (props: any) => {
closable: false,
},
{
tab: '集群信息',
key: 'cluster',
tab: '数据地图',
key: 'datamap',
closable: false,
},
{
tab: '作业快照',
key: 'snapshot',
tab: '即席查询',
key: 'olap',
closable: false,
},
{
tab: '历史版本',
key: 'version',
closable: false,
},
{
......@@ -191,6 +221,7 @@ const JobInfo = (props: any) => {
key: 'alert',
closable: false,
},
]}
onTabChange={(key) => {
setTabKey(key);
......@@ -199,6 +230,16 @@ const JobInfo = (props: any) => {
<ProCard>
{tabKey === 'base' ? <BaseInfo job={job}/> : undefined}
{tabKey === 'config' ? <Config job={job}/> : undefined}
{tabKey === 'cluster' ? <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} /> : undefined}
{tabKey === 'snapshot' ? <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} /> : undefined}
{tabKey === 'exception' ? <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} /> : undefined}
{tabKey === 'log' ? <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} /> : undefined}
{tabKey === 'optimize' ? <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} /> : undefined}
{tabKey === 'flinksql' ? <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} /> : undefined}
{tabKey === 'datamap' ? <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} /> : undefined}
{tabKey === 'olap' ? <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} /> : undefined}
{tabKey === 'version' ? <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} /> : undefined}
{tabKey === 'alert' ? <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} /> : undefined}
</ProCard>
</PageContainer>
);
......
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