Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
kafka-manager
提交
c44f08a7
K
kafka-manager
项目概览
DiDi
/
kafka-manager
大约 1 年 前同步成功
通知
60
Star
6372
Fork
1229
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kafka-manager
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
c44f08a7
编写于
4月 02, 2020
作者:
Z
ZQKC
提交者:
GitHub
4月 02, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #8 from Candieslove/fix_node_type
fix: setTimeout problem
上级
71f00576
92254509
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
7 addition
and
7 deletion
+7
-7
console/src/container/cluster-topic/index.tsx
console/src/container/cluster-topic/index.tsx
+3
-3
console/src/container/drawer/reset-offset.tsx
console/src/container/drawer/reset-offset.tsx
+2
-2
console/src/container/modal/topic-new.tsx
console/src/container/modal/topic-new.tsx
+1
-1
console/src/store/cluster.ts
console/src/store/cluster.ts
+1
-1
未找到文件。
console/src/container/cluster-topic/index.tsx
浏览文件 @
c44f08a7
...
...
@@ -49,14 +49,14 @@ export class SearchAndFilter extends React.Component<any, IState> {
}
public
handleVisble
=
(
type
:
string
)
=>
{
if
(
this
.
timer
)
clearTimeout
(
this
.
timer
);
setTimeout
(()
=>
{
if
(
this
.
timer
)
window
.
clearTimeout
(
this
.
timer
);
window
.
setTimeout
(()
=>
{
this
.
setState
({
[
type
]:
true
});
});
}
public
handleUnVisble
=
(
type
:
string
)
=>
{
this
.
timer
=
setTimeout
(()
=>
{
this
.
timer
=
window
.
setTimeout
(()
=>
{
this
.
setState
({
[
type
]:
false
});
},
100
);
}
...
...
console/src/container/drawer/reset-offset.tsx
浏览文件 @
c44f08a7
...
...
@@ -19,7 +19,7 @@ class ResetOffset extends React.Component<any> {
consume
.
offsetPartition
(
Object
.
assign
({
timestamp
:
+
moment
(
timestamp
).
format
(
'
x
'
)
},
topic
.
currentGroup
))
.
then
(()
=>
{
message
.
success
(
'
重置时间成功
'
);
setTimeout
(()
=>
{
window
.
setTimeout
(()
=>
{
location
.
reload
();
},
200
);
});
...
...
@@ -28,7 +28,7 @@ class ResetOffset extends React.Component<any> {
public
submitPartiton
=
()
=>
{
consume
.
offsetPartition
(
topic
.
currentGroup
,
1
).
then
(()
=>
{
message
.
success
(
'
重置分区成功
'
);
setTimeout
(()
=>
{
window
.
setTimeout
(()
=>
{
location
.
reload
();
},
200
);
});
...
...
console/src/container/modal/topic-new.tsx
浏览文件 @
c44f08a7
...
...
@@ -36,7 +36,7 @@ class Topic extends React.Component<any> {
this
.
setState
({
loading
:
true
});
createTopic
(
values
).
then
(
data
=>
{
notification
.
success
({
message
:
'
申请Topic成功
'
});
setTimeout
(()
=>
location
.
assign
(
'
/user/my_order
'
),
500
);
window
.
setTimeout
(()
=>
location
.
assign
(
'
/user/my_order
'
),
500
);
modal
.
close
();
},
(
err
)
=>
{
this
.
setState
({
loading
:
false
});
...
...
console/src/store/cluster.ts
浏览文件 @
c44f08a7
...
...
@@ -111,7 +111,7 @@ class Cluster {
return
getRebalanceStatus
(
clusterId
).
then
((
type
)
=>
{
this
.
setLeaderStatus
(
type
);
if
(
type
===
'
RUNNING
'
)
{
setTimeout
(()
=>
{
window
.
setTimeout
(()
=>
{
this
.
getRebalance
(
clusterId
);
},
1000
*
2
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录