Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
kafka-manager
提交
d67e383c
K
kafka-manager
项目概览
DiDi
/
kafka-manager
9 个月 前同步成功
通知
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 搜索 >>
提交
d67e383c
编写于
9月 21, 2022
作者:
G
GraceWalk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 系统管理列表增加手动刷新功能
上级
8749d3e1
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
114 addition
and
94 deletion
+114
-94
km-console/packages/config-manager-fe/src/pages/ConfigManage/index.tsx
...ckages/config-manager-fe/src/pages/ConfigManage/index.tsx
+23
-16
km-console/packages/config-manager-fe/src/pages/OperationLog/index.tsx
...ckages/config-manager-fe/src/pages/OperationLog/index.tsx
+28
-20
km-console/packages/config-manager-fe/src/pages/UserManage/RoleTabContent.tsx
...config-manager-fe/src/pages/UserManage/RoleTabContent.tsx
+39
-32
km-console/packages/config-manager-fe/src/pages/UserManage/UserTabContent.tsx
...config-manager-fe/src/pages/UserManage/UserTabContent.tsx
+24
-16
km-console/packages/config-manager-fe/src/pages/UserManage/index.less
...ackages/config-manager-fe/src/pages/UserManage/index.less
+0
-10
未找到文件。
km-console/packages/config-manager-fe/src/pages/ConfigManage/index.tsx
浏览文件 @
d67e383c
...
...
@@ -15,6 +15,7 @@ import {
AppContainer
,
Utils
,
}
from
'
knowdesign
'
;
import
{
IconFont
}
from
'
@knowdesign/icons
'
;
import
{
PlusOutlined
}
from
'
@ant-design/icons
'
;
import
moment
from
'
moment
'
;
// 引入代码编辑器
...
...
@@ -431,22 +432,28 @@ export default () => {
<
TypicalListCard
title
=
"配置管理"
>
<
div
className
=
"config-manage-page"
>
<
div
className
=
"operate-bar"
>
<
Form
form
=
{
form
}
layout
=
"inline"
onFinish
=
{
()
=>
getConfigList
({
page
:
1
})
}
>
<
Form
.
Item
name
=
"valueGroup"
>
<
Select
style
=
{
{
width
:
180
}
}
placeholder
=
"请选择模块"
options
=
{
configGroupList
}
/>
</
Form
.
Item
>
<
Form
.
Item
name
=
"valueName"
>
<
Input
style
=
{
{
width
:
180
}
}
placeholder
=
"请输入配置键"
/>
</
Form
.
Item
>
<
Form
.
Item
name
=
"memo"
>
<
Input
style
=
{
{
width
:
180
}
}
placeholder
=
"请输入描述"
/>
</
Form
.
Item
>
<
Form
.
Item
>
<
Button
type
=
"primary"
ghost
htmlType
=
"submit"
>
查询
</
Button
>
</
Form
.
Item
>
</
Form
>
<
div
className
=
"left"
>
<
div
className
=
"refresh-icon"
onClick
=
{
()
=>
getConfigList
()
}
>
<
IconFont
className
=
"icon"
type
=
"icon-shuaxin1"
/>
</
div
>
<
Divider
type
=
"vertical"
style
=
{
{
height
:
20
,
top
:
0
}
}
/>
<
Form
form
=
{
form
}
layout
=
"inline"
onFinish
=
{
()
=>
getConfigList
({
page
:
1
})
}
>
<
Form
.
Item
name
=
"valueGroup"
>
<
Select
style
=
{
{
width
:
180
}
}
placeholder
=
"请选择模块"
options
=
{
configGroupList
}
/>
</
Form
.
Item
>
<
Form
.
Item
name
=
"valueName"
>
<
Input
style
=
{
{
width
:
180
}
}
placeholder
=
"请输入配置键"
/>
</
Form
.
Item
>
<
Form
.
Item
name
=
"memo"
>
<
Input
style
=
{
{
width
:
180
}
}
placeholder
=
"请输入描述"
/>
</
Form
.
Item
>
<
Form
.
Item
>
<
Button
type
=
"primary"
ghost
htmlType
=
"submit"
>
查询
</
Button
>
</
Form
.
Item
>
</
Form
>
</
div
>
{
global
.
hasPermission
&&
global
.
hasPermission
(
ConfigPermissionMap
.
CONFIG_ADD
)
?
(
<
Button
type
=
"primary"
...
...
km-console/packages/config-manager-fe/src/pages/OperationLog/index.tsx
浏览文件 @
d67e383c
import
React
,
{
useEffect
,
useState
}
from
'
react
'
;
import
{
Button
,
Form
,
Input
,
Select
,
ProTable
,
DatePicker
,
Utils
,
Tooltip
}
from
'
knowdesign
'
;
import
{
Button
,
Form
,
Input
,
Select
,
ProTable
,
DatePicker
,
Utils
,
Tooltip
,
Divider
}
from
'
knowdesign
'
;
import
{
IconFont
}
from
'
@knowdesign/icons
'
;
import
api
from
'
api
'
;
import
{
defaultPagination
}
from
'
constants/common
'
;
import
TypicalListCard
from
'
../../components/TypicalListCard
'
;
...
...
@@ -119,25 +120,32 @@ export default () => {
<>
<
TypicalListCard
title
=
"操作记录"
>
<
div
className
=
"operate-bar"
>
<
Form
form
=
{
form
}
layout
=
"inline"
onFinish
=
{
()
=>
getData
({
page
:
1
})
}
>
<
Form
.
Item
name
=
"targetType"
>
<
Select
placeholder
=
"请选择模块"
options
=
{
configGroupList
}
style
=
{
{
width
:
160
}
}
/>
</
Form
.
Item
>
<
Form
.
Item
name
=
"target"
>
<
Input
placeholder
=
"请输入操作对象"
/>
</
Form
.
Item
>
<
Form
.
Item
name
=
"detail"
>
<
Input
placeholder
=
"请输入操作内容"
/>
</
Form
.
Item
>
<
Form
.
Item
name
=
"time"
>
<
RangePicker
showTime
/>
</
Form
.
Item
>
<
Form
.
Item
>
<
Button
type
=
"primary"
ghost
htmlType
=
"submit"
>
查询
</
Button
>
</
Form
.
Item
>
</
Form
>
<
div
className
=
"left"
>
<
div
className
=
"refresh-icon"
onClick
=
{
()
=>
getData
()
}
>
<
IconFont
className
=
"icon"
type
=
"icon-shuaxin1"
/>
</
div
>
<
Divider
type
=
"vertical"
style
=
{
{
height
:
20
,
top
:
0
}
}
/>
<
Form
form
=
{
form
}
layout
=
"inline"
onFinish
=
{
()
=>
getData
({
page
:
1
})
}
>
<
Form
.
Item
name
=
"targetType"
>
<
Select
placeholder
=
"请选择模块"
options
=
{
configGroupList
}
style
=
{
{
width
:
160
}
}
/>
</
Form
.
Item
>
<
Form
.
Item
name
=
"target"
>
<
Input
placeholder
=
"请输入操作对象"
/>
</
Form
.
Item
>
<
Form
.
Item
name
=
"detail"
>
<
Input
placeholder
=
"请输入操作内容"
/>
</
Form
.
Item
>
<
Form
.
Item
name
=
"time"
>
<
RangePicker
showTime
/>
</
Form
.
Item
>
<
Form
.
Item
>
<
Button
type
=
"primary"
ghost
htmlType
=
"submit"
>
查询
</
Button
>
</
Form
.
Item
>
</
Form
>
</
div
>
</
div
>
<
ProTable
...
...
km-console/packages/config-manager-fe/src/pages/UserManage/RoleTabContent.tsx
浏览文件 @
d67e383c
...
...
@@ -611,38 +611,45 @@ export default (props: { curTabKey: string }): JSX.Element => {
return
(
<>
<
div
className
=
"operate-bar-right"
>
<
Input
className
=
"search-input"
suffix
=
{
<
IconFont
type
=
"icon-fangdajing"
onClick
=
{
(
_
)
=>
{
setSearchKeywords
(
searchKeywordsInput
);
}
}
style
=
{
{
fontSize
:
'
16px
'
}
}
/>
}
placeholder
=
"请输入角色名称"
value
=
{
searchKeywordsInput
}
onPressEnter
=
{
(
_
)
=>
{
setSearchKeywords
(
searchKeywordsInput
);
}
}
onChange
=
{
(
e
)
=>
{
setSearchKeywordsInput
(
e
.
target
.
value
);
}
}
/>
{
global
.
hasPermission
&&
global
.
hasPermission
(
ConfigPermissionMap
.
ROLE_ADD
)
?
(
<
Button
type
=
"primary"
icon
=
{
<
PlusOutlined
/>
}
onClick
=
{
()
=>
detailRef
.
current
.
onOpen
(
true
,
RoleOperate
.
Add
,
getRoleList
,
undefined
)
}
>
新增角色
</
Button
>
)
:
(
<></>
)
}
<
div
className
=
"operate-bar"
>
<
div
className
=
"left"
>
<
div
className
=
"refresh-icon"
onClick
=
{
()
=>
getRoleList
()
}
>
<
IconFont
className
=
"icon"
type
=
"icon-shuaxin1"
/>
</
div
>
</
div
>
<
div
className
=
"right"
>
<
Input
className
=
"search-input"
suffix
=
{
<
IconFont
type
=
"icon-fangdajing"
onClick
=
{
(
_
)
=>
{
setSearchKeywords
(
searchKeywordsInput
);
}
}
style
=
{
{
fontSize
:
'
16px
'
}
}
/>
}
placeholder
=
"请输入角色名称"
value
=
{
searchKeywordsInput
}
onPressEnter
=
{
(
_
)
=>
{
setSearchKeywords
(
searchKeywordsInput
);
}
}
onChange
=
{
(
e
)
=>
{
setSearchKeywordsInput
(
e
.
target
.
value
);
}
}
/>
{
global
.
hasPermission
&&
global
.
hasPermission
(
ConfigPermissionMap
.
ROLE_ADD
)
?
(
<
Button
type
=
"primary"
icon
=
{
<
PlusOutlined
/>
}
onClick
=
{
()
=>
detailRef
.
current
.
onOpen
(
true
,
RoleOperate
.
Add
,
getRoleList
,
undefined
)
}
>
新增角色
</
Button
>
)
:
(
<></>
)
}
</
div
>
</
div
>
<
ProTable
...
...
km-console/packages/config-manager-fe/src/pages/UserManage/UserTabContent.tsx
浏览文件 @
d67e383c
import
React
,
{
forwardRef
,
useCallback
,
useEffect
,
useImperativeHandle
,
useRef
,
useState
}
from
'
react
'
;
import
{
Form
,
ProTable
,
Select
,
Button
,
Input
,
Modal
,
message
,
Drawer
,
Space
,
Divider
,
AppContainer
,
Utils
}
from
'
knowdesign
'
;
import
{
IconFont
}
from
'
@knowdesign/icons
'
;
import
{
PlusOutlined
,
QuestionCircleOutlined
}
from
'
@ant-design/icons
'
;
import
moment
from
'
moment
'
;
import
{
defaultPagination
}
from
'
constants/common
'
;
...
...
@@ -341,22 +342,29 @@ export default (props: { curTabKey: string }) => {
return
(
<>
<
div
className
=
"operate-bar"
>
<
Form
form
=
{
form
}
layout
=
"inline"
onFinish
=
{
()
=>
getUserList
({
page
:
1
})
}
>
<
Form
.
Item
name
=
"userName"
>
<
Input
placeholder
=
"请输入用户账号"
/>
</
Form
.
Item
>
<
Form
.
Item
name
=
"realName"
>
<
Input
placeholder
=
"请输入用户实名"
/>
</
Form
.
Item
>
<
Form
.
Item
name
=
"roleId"
>
<
Select
style
=
{
{
width
:
190
}
}
placeholder
=
"选择平台已创建的角色名"
options
=
{
simpleRoleList
}
/>
</
Form
.
Item
>
<
Form
.
Item
>
<
Button
type
=
"primary"
ghost
htmlType
=
"submit"
>
查询
</
Button
>
</
Form
.
Item
>
</
Form
>
<
div
className
=
"left"
>
<
div
className
=
"refresh-icon"
onClick
=
{
()
=>
getUserList
()
}
>
<
IconFont
className
=
"icon"
type
=
"icon-shuaxin1"
/>
</
div
>
<
Divider
type
=
"vertical"
style
=
{
{
height
:
20
,
top
:
0
}
}
/>
<
Form
form
=
{
form
}
layout
=
"inline"
onFinish
=
{
()
=>
getUserList
({
page
:
1
})
}
>
<
Form
.
Item
name
=
"userName"
>
<
Input
placeholder
=
"请输入用户账号"
/>
</
Form
.
Item
>
<
Form
.
Item
name
=
"realName"
>
<
Input
placeholder
=
"请输入用户实名"
/>
</
Form
.
Item
>
<
Form
.
Item
name
=
"roleId"
>
<
Select
style
=
{
{
width
:
190
}
}
placeholder
=
"选择平台已创建的角色名"
options
=
{
simpleRoleList
}
/>
</
Form
.
Item
>
<
Form
.
Item
>
<
Button
type
=
"primary"
ghost
htmlType
=
"submit"
>
查询
</
Button
>
</
Form
.
Item
>
</
Form
>
</
div
>
{
global
.
hasPermission
&&
global
.
hasPermission
(
ConfigPermissionMap
.
USER_ADD
)
?
(
<
Button
type
=
"primary"
...
...
km-console/packages/config-manager-fe/src/pages/UserManage/index.less
浏览文件 @
d67e383c
...
...
@@ -44,13 +44,3 @@
.role-tab-assign-user .desc-row {
margin-bottom: 24px;
}
.operate-bar-right {
display: flex;
justify-content: right;
margin-bottom: 12px;
.search-input {
width: 248px;
margin-right: 8px;
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录