import * as React from 'react'; import { observer } from 'mobx-react'; import { Tabs, PageHeader } from 'antd'; import { IMetaData } from 'types/base-type'; import { ClusterOverview } from './cluster-overview'; import { ClusterTopic } from './cluster-topic'; import { ClusterBroker } from './cluster-broker'; import { ClusterConsumer } from './cluster-consumer'; import { ExclusiveCluster } from './exclusive-cluster'; import { LogicalCluster } from './logical-cluster'; import { ClusterController } from './cluster-controller'; import { CurrentLimiting } from './current-limiting'; import { handleTabKey } from 'lib/utils'; import { admin } from 'store/admin'; import { handlePageBack } from 'lib/utils'; import Url from 'lib/url-parser'; const { TabPane } = Tabs; @observer export class ClusterDetail extends React.Component { public clusterId: number; constructor(props: any) { super(props); const url = Url(); this.clusterId = Number(url.search.clusterId); } public componentDidMount() { admin.getBasicInfo(this.clusterId); } public render() { let content = {} as IMetaData; content = admin.basicInfo ? admin.basicInfo : content; return ( <> handlePageBack('/admin')} title={`集群列表/${content.clusterName || ''}`} /> ); } }