mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-08 15:52:15 +08:00
fix: Broker 列表 jmxPort 列支持展示连接状态
This commit is contained in:
@@ -3,6 +3,7 @@ import React from 'react';
|
|||||||
import { timeFormat, getSizeAndUnit } from '../../constants/common';
|
import { timeFormat, getSizeAndUnit } from '../../constants/common';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { Tag, Tooltip } from 'knowdesign';
|
import { Tag, Tooltip } from 'knowdesign';
|
||||||
|
import { IconFont } from '@knowdesign/icons';
|
||||||
|
|
||||||
export const getBrokerListColumns = (arg?: any) => {
|
export const getBrokerListColumns = (arg?: any) => {
|
||||||
const columns = [
|
const columns = [
|
||||||
@@ -82,6 +83,14 @@ export const getBrokerListColumns = (arg?: any) => {
|
|||||||
dataIndex: 'jmxPort',
|
dataIndex: 'jmxPort',
|
||||||
key: 'jmxPort',
|
key: 'jmxPort',
|
||||||
width: 100,
|
width: 100,
|
||||||
|
render: (t: string, r: any) => {
|
||||||
|
return (
|
||||||
|
<span>
|
||||||
|
<IconFont type={r?.jmxConnected ? 'icon-zhengchang' : 'icon-yichang'} />
|
||||||
|
<span style={{ marginLeft: 4 }}>{t}</span>
|
||||||
|
</span>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Partitions',
|
title: 'Partitions',
|
||||||
|
|||||||
Reference in New Issue
Block a user