Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
zsq6662003
nacos
提交
6ce15037
N
nacos
项目概览
zsq6662003
/
nacos
与 Fork 源项目一致
从无法访问的项目Fork
通知
6
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
nacos
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
6ce15037
编写于
3月 29, 2021
作者:
H
haoyann
提交者:
GitHub
3月 29, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix config list sort and search problem (#5223)
上级
5146fad2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
29 addition
and
20 deletion
+29
-20
console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js
...gement/ConfigurationManagement/ConfigurationManagement.js
+23
-7
console-ui/src/pages/ConfigurationManagement/HistoryRollback/HistoryRollback.js
...onfigurationManagement/HistoryRollback/HistoryRollback.js
+3
-10
console-ui/src/pages/ConfigurationManagement/ListeningToQuery/ListeningToQuery.js
...figurationManagement/ListeningToQuery/ListeningToQuery.js
+3
-3
未找到文件。
console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js
浏览文件 @
6ce15037
...
...
@@ -223,11 +223,25 @@ class ConfigurationManagement extends React.Component {
navTo
(
url
,
record
)
{
this
.
serverId
=
getParams
(
'
serverId
'
)
||
''
;
this
.
tenant
=
getParams
(
'
namespace
'
)
||
''
;
// 为当前实例保存tenant参数
this
.
props
.
history
.
push
(
`
${
url
}
?serverId=
${
this
.
serverId
||
''
}
&dataId=
${
record
.
dataId
}
&group=
${
record
.
group
}
&namespace=
${
this
.
tenant
}
`
);
switch
(
url
)
{
case
'
/historyRollback
'
:
url
=
`
${
url
}
?historyServerId=
${
this
.
serverId
||
''
}
&historyDataId=
${
record
.
dataId
}
&historyGroup=
${
record
.
group
}
&namespace=
${
this
.
tenant
}
`
;
break
;
case
'
/listeningToQuery
'
:
url
=
`
${
url
}
?listeningServerId=
${
this
.
serverId
||
''
}
&listeningDataId=
${
record
.
dataId
}
&listeningGroup=
${
record
.
group
}
&namespace=
${
this
.
tenant
}
`
;
break
;
case
'
/pushTrajectory
'
:
url
=
`
${
url
}
?serverId=
${
this
.
serverId
||
''
}
&dataId=
${
record
.
dataId
}
&group=
${
record
.
group
}
&namespace=
${
this
.
tenant
}
`
;
break
;
default
:
}
this
.
props
.
history
.
push
(
url
);
}
openLoading
()
{
...
...
@@ -442,12 +456,14 @@ class ConfigurationManagement extends React.Component {
}
onChangeSort
(
dataIndex
,
order
)
{
this
.
dataSource
.
sort
(
function
(
a
,
b
)
{
const
{
configurations
=
{}
}
=
this
.
props
;
configurations
.
pageItems
.
sort
(
function
(
a
,
b
)
{
if
(
order
===
'
asc
'
)
{
return
(
a
[
dataIndex
]
+
''
).
localeCompare
(
b
[
dataIndex
]
+
''
);
}
return
(
b
[
dataIndex
]
+
''
).
localeCompare
(
a
[
dataIndex
]
+
''
);
});
this
.
forceUpdate
();
}
handlePageSizeChange
(
pageSize
)
{
...
...
@@ -1411,7 +1427,7 @@ class ConfigurationManagement extends React.Component {
ref
=
"
dataTable
"
loading
=
{
this
.
state
.
loading
}
rowSelection
=
{
this
.
state
.
rowSelection
}
onSort
=
{
this
.
onChangeSort
}
onSort
=
{
this
.
onChangeSort
.
bind
(
this
)
}
>
<
Table
.
Column
sortable
=
{
true
}
title
=
{
'
Data Id
'
}
dataIndex
=
{
'
dataId
'
}
/
>
<
Table
.
Column
sortable
=
{
true
}
title
=
{
'
Group
'
}
dataIndex
=
{
'
group
'
}
/
>
...
...
console-ui/src/pages/ConfigurationManagement/HistoryRollback/HistoryRollback.js
浏览文件 @
6ce15037
...
...
@@ -37,12 +37,12 @@ class HistoryRollback extends React.Component {
this
.
field
=
new
Field
(
this
);
this
.
appName
=
getParams
(
'
appName
'
)
||
''
;
this
.
preAppName
=
this
.
appName
;
this
.
group
=
getParams
(
'
g
roup
'
)
||
''
;
this
.
group
=
getParams
(
'
historyG
roup
'
)
||
''
;
this
.
preGroup
=
this
.
group
;
this
.
dataId
=
getParams
(
'
d
ataId
'
)
||
''
;
this
.
dataId
=
getParams
(
'
historyD
ataId
'
)
||
''
;
this
.
preDataId
=
this
.
dataId
;
this
.
serverId
=
getParams
(
'
s
erverId
'
)
||
''
;
this
.
serverId
=
getParams
(
'
historyS
erverId
'
)
||
''
;
this
.
state
=
{
value
:
''
,
visible
:
false
,
...
...
@@ -59,13 +59,6 @@ class HistoryRollback extends React.Component {
selectValue
:
[],
loading
:
false
,
};
const
obj
=
{
dataId
:
this
.
dataId
||
''
,
group
:
this
.
preGroup
||
''
,
appName
:
this
.
appName
||
''
,
serverId
:
this
.
serverId
||
''
,
};
setParams
(
obj
);
}
componentDidMount
()
{
...
...
console-ui/src/pages/ConfigurationManagement/ListeningToQuery/ListeningToQuery.js
浏览文件 @
6ce15037
...
...
@@ -55,9 +55,9 @@ class ListeningToQuery extends React.Component {
dataSource
:
[],
};
this
.
field
=
new
Field
(
this
);
this
.
group
=
getParams
(
'
g
roup
'
)
||
''
;
this
.
dataId
=
getParams
(
'
d
ataId
'
)
||
''
;
this
.
serverId
=
getParams
(
'
s
erverId
'
)
||
''
;
this
.
group
=
getParams
(
'
listeningG
roup
'
)
||
''
;
this
.
dataId
=
getParams
(
'
listeningD
ataId
'
)
||
''
;
this
.
serverId
=
getParams
(
'
listeningS
erverId
'
)
||
''
;
this
.
tenant
=
getParams
(
'
namespace
'
)
||
''
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录