Skip to content

Commit 47b6b35

Browse files
committed
fix: Broker 列表 jmxPort 列支持展示连接状态
1 parent f3eca3b commit 47b6b35

File tree

1 file changed

+9
-0
lines changed
  • km-console/packages/layout-clusters-fe/src/pages/BrokerList

1 file changed

+9
-0
lines changed

km-console/packages/layout-clusters-fe/src/pages/BrokerList/config.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import React from 'react';
33
import { timeFormat, getSizeAndUnit } from '../../constants/common';
44
import moment from 'moment';
55
import { Tag, Tooltip } from 'knowdesign';
6+
import { IconFont } from '@knowdesign/icons';
67

78
export const getBrokerListColumns = (arg?: any) => {
89
const columns = [
@@ -82,6 +83,14 @@ export const getBrokerListColumns = (arg?: any) => {
8283
dataIndex: 'jmxPort',
8384
key: 'jmxPort',
8485
width: 100,
86+
render: (t: string, r: any) => {
87+
return (
88+
<span>
89+
<IconFont type={r?.jmxConnected ? 'icon-zhengchang' : 'icon-yichang'} />
90+
<span style={{ marginLeft: 4 }}>{t}</span>
91+
</span>
92+
);
93+
},
8594
},
8695
{
8796
title: 'Partitions',

0 commit comments

Comments
 (0)