+
+ {this.renderSearch('', '请输入Consumer ID')}
@@ -187,7 +188,7 @@ export class GroupID extends SearchAndFilterContainer {
@@ -214,7 +215,12 @@ export class GroupID extends SearchAndFilterContainer {
dataIndex: 'location',
key: 'location',
width: '34%',
- },
+ }, {
+ title: '状态',
+ dataIndex: 'state',
+ key: 'state',
+ width: '34%',
+ }
];
return (
<>
@@ -236,7 +242,17 @@ export class GroupID extends SearchAndFilterContainer {
data = searchKey ? origin.filter((item: IConsumerGroups) =>
(item.consumerGroup !== undefined && item.consumerGroup !== null) && item.consumerGroup.toLowerCase().includes(searchKey as string),
- ) : origin ;
+ ) : origin;
+ return data;
+ }
+
+ public getDetailData
(origin: T[]) {
+ let data: T[] = origin;
+ let { searchKey } = this.state;
+ searchKey = (searchKey + '').trim().toLowerCase();
+ data = searchKey ? origin.filter((item: IConsumeDetails) =>
+ (item.clientId !== undefined && item.clientId !== null) && item.clientId.toLowerCase().includes(searchKey as string),
+ ) : origin;
return data;
}
diff --git a/kafka-manager-console/src/container/topic/topic-detail/reset-offset.tsx b/kafka-manager-console/src/container/topic/topic-detail/reset-offset.tsx
index be0767e8..531f69c6 100644
--- a/kafka-manager-console/src/container/topic/topic-detail/reset-offset.tsx
+++ b/kafka-manager-console/src/container/topic/topic-detail/reset-offset.tsx
@@ -71,32 +71,32 @@ class ResetOffset extends React.Component {
const { getFieldDecorator } = this.props.form;
const { typeValue, offsetValue } = this.state;
return (
- <>
-
-
-
+ <>
+
+
+ {/* */}