Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
kafka-manager
提交
5efb837e
K
kafka-manager
项目概览
DiDi
/
kafka-manager
10 个月 前同步成功
通知
58
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,体验更适合开发者的 AI 搜索 >>
提交
5efb837e
编写于
9月 13, 2022
作者:
G
GraceWalk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 单集群详情样式优化
上级
584b626d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
40 deletion
+5
-40
km-console/packages/layout-clusters-fe/src/pages/SingleClusterDetail/ChangeLog.tsx
...t-clusters-fe/src/pages/SingleClusterDetail/ChangeLog.tsx
+2
-12
km-console/packages/layout-clusters-fe/src/pages/SingleClusterDetail/CheckDetail.tsx
...clusters-fe/src/pages/SingleClusterDetail/CheckDetail.tsx
+1
-5
km-console/packages/layout-clusters-fe/src/pages/SingleClusterDetail/LeftSider.tsx
...t-clusters-fe/src/pages/SingleClusterDetail/LeftSider.tsx
+2
-3
km-console/packages/layout-clusters-fe/src/pages/SingleClusterDetail/index.less
...yout-clusters-fe/src/pages/SingleClusterDetail/index.less
+0
-20
未找到文件。
km-console/packages/layout-clusters-fe/src/pages/SingleClusterDetail/ChangeLog.tsx
浏览文件 @
5efb837e
...
...
@@ -7,6 +7,7 @@ import moment from 'moment';
import
{
timeFormat
}
from
'
../../constants/common
'
;
import
{
DownOutlined
}
from
'
@ant-design/icons
'
;
import
{
renderToolTipValue
}
from
'
./config
'
;
import
RenderEmpty
from
'
@src/components/RenderEmpty
'
;
const
{
Panel
}
=
Collapse
;
...
...
@@ -51,17 +52,6 @@ const ChangeLog = () => {
);
},
[]);
const
renderEmpty
=
()
=>
{
return
(
<>
<
div
className
=
"empty-panel"
>
<
div
className
=
"img"
/>
<
div
className
=
"text"
>
暂无配置记录
</
div
>
</
div
>
</>
);
};
const
getHref
=
(
item
:
any
)
=>
{
if
(
item
.
resTypeName
.
toLowerCase
().
includes
(
'
topic
'
))
return
`/cluster/
${
clusterId
}
/topic/list#topicName=
${
item
.
resName
}
`
;
if
(
item
.
resTypeName
.
toLowerCase
().
includes
(
'
broker
'
))
return
`/cluster/
${
clusterId
}
/broker/list#brokerId=
${
item
.
resName
}
`
;
...
...
@@ -73,7 +63,7 @@ const ChangeLog = () => {
<
div
className
=
"change-log-panel"
>
<
div
className
=
"title"
>
历史变更记录
</
div
>
{
!
loading
&&
!
data
.
length
?
(
renderEmpty
()
<
RenderEmpty
message
=
"暂无配置记录"
/>
)
:
(
<
div
id
=
"changelog-scroll-box"
>
<
Spin
spinning
=
{
loading
}
style
=
{
{
paddingLeft
:
'
42%
'
,
marginTop
:
100
}
}
/>
...
...
km-console/packages/layout-clusters-fe/src/pages/SingleClusterDetail/CheckDetail.tsx
浏览文件 @
5efb837e
/* eslint-disable react/display-name */
import
{
Drawer
,
Form
,
Spin
,
Table
,
Utils
}
from
'
knowdesign
'
;
import
{
Drawer
,
Spin
,
Table
,
Utils
}
from
'
knowdesign
'
;
import
React
,
{
useEffect
,
useState
,
forwardRef
,
useImperativeHandle
}
from
'
react
'
;
import
{
useIntl
}
from
'
react-intl
'
;
import
{
getDetailColumn
}
from
'
./config
'
;
import
API
from
'
../../api
'
;
import
{
useParams
}
from
'
react-router-dom
'
;
const
CheckDetail
=
forwardRef
((
props
:
any
,
ref
):
JSX
.
Element
=>
{
const
intl
=
useIntl
();
const
[
form
]
=
Form
.
useForm
();
const
[
visible
,
setVisible
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
data
,
setData
]
=
useState
([]);
...
...
@@ -28,7 +25,6 @@ const CheckDetail = forwardRef((props: any, ref): JSX.Element => {
};
const
onCancel
=
()
=>
{
form
.
resetFields
();
setVisible
(
false
);
};
...
...
km-console/packages/layout-clusters-fe/src/pages/SingleClusterDetail/LeftSider.tsx
浏览文件 @
5efb837e
...
...
@@ -153,7 +153,7 @@ const LeftSider = () => {
<
Divider
/>
<
div
className
=
"title"
>
<
div
className
=
"name"
>
{
renderToolTipValue
(
clusterInfo
?.
name
,
35
)
}
</
div
>
{
global
.
hasPermission
&&
global
.
hasPermission
(
ClustersPermissionMap
.
CLUSTER_CHANGE_INFO
)
?
(
{
!
loading
&&
global
.
hasPermission
&&
global
.
hasPermission
(
ClustersPermissionMap
.
CLUSTER_CHANGE_INFO
)
?
(
<
div
className
=
"edit-icon-box"
onClick
=
{
()
=>
setVisible
(
true
)
}
>
<
IconFont
className
=
"edit-icon"
type
=
"icon-bianji2"
/>
</
div
>
...
...
@@ -239,8 +239,7 @@ const LeftSider = () => {
<
AccessClusters
visible
=
{
visible
}
setVisible
=
{
setVisible
}
title
=
{
'
edit.cluster
'
}
infoLoading
=
{
loading
}
title
=
"edit.cluster"
afterSubmitSuccess
=
{
getPhyClusterInfo
}
clusterInfo
=
{
clusterInfo
}
kafkaVersion
=
{
Object
.
keys
(
kafkaVersion
)
}
...
...
km-console/packages/layout-clusters-fe/src/pages/SingleClusterDetail/index.less
浏览文件 @
5efb837e
...
...
@@ -377,26 +377,6 @@
}
}
}
.empty-panel {
margin-top: 96px;
text-align: center;
.img {
width: 51px;
height: 34px;
margin-left: 80px;
margin-bottom: 7px;
background-size: cover;
background-image: url('../../assets/empty.png');
}
.text {
font-size: 10px;
color: #919aac;
line-height: 20px;
}
}
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录