Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
JDChain
Explorer
提交
3f799476
E
Explorer
项目概览
JDChain
/
Explorer
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
Explorer
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
3f799476
编写于
9月 06, 2021
作者:
I
imuge
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add user state
上级
0861e1c1
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
14 addition
and
10 deletion
+14
-10
data-explorer/dist/web/20190101/block.chunk.js
data-explorer/dist/web/20190101/block.chunk.js
+2
-2
data-explorer/dist/web/20190101/search.chunk.js
data-explorer/dist/web/20190101/search.chunk.js
+1
-1
data-explorer/dist/web/20190101/user.chunk.js
data-explorer/dist/web/20190101/user.chunk.js
+1
-1
data-explorer/server/routes/ledgers.js
data-explorer/server/routes/ledgers.js
+1
-1
data-explorer/src/web/components/transactionInfo/transactionInfo.js
...rer/src/web/components/transactionInfo/transactionInfo.js
+6
-2
data-explorer/src/web/components/usercert/usercert.js
data-explorer/src/web/components/usercert/usercert.js
+2
-2
data-explorer/src/web/pages/user/user.js
data-explorer/src/web/pages/user/user.js
+1
-1
未找到文件。
data-explorer/dist/web/20190101/block.chunk.js
浏览文件 @
3f799476
此差异已折叠。
点击以展开。
data-explorer/dist/web/20190101/search.chunk.js
浏览文件 @
3f799476
此差异已折叠。
点击以展开。
data-explorer/dist/web/20190101/user.chunk.js
浏览文件 @
3f799476
此差异已折叠。
点击以展开。
data-explorer/server/routes/ledgers.js
浏览文件 @
3f799476
...
...
@@ -1393,7 +1393,7 @@ router.get('/:ledger/users/address/:address', function (req, res) {
"
data
"
:
{
"
address
"
:
"
LdeP1sCDKrf9LHKhBkqNUj3sHjHeUyvnaAj8j
"
,
"
certificate
"
:
"
-----BEGIN CERTIFICATE-----
\n
MIIBtzCCAWkCFDcbdELMFmrppAdda8X+sHUFGJNcMAUGAytlcDB4MQswCQYDVQQGEwJDTjELMAkG
\n
A1UECAwCQkoxCzAJBgNVBAcMAkJKMQwwCgYDVQQKDANKRFQxDzANBgNVBAsMBkxFREdFUjERMA8G
\n
A1UEAwwISkQgQ2hhaW4xHTAbBgkqhkiG9w0BCQEWDmpkY2hhaW5AamQuY29tMB4XDTIxMDgzMDAz
\n
MjIxNFoXDTMxMDgyODAzMjIxNFowgYMxCzAJBgNVBAYTAkNOMQswCQYDVQQIDAJCSjELMAkGA1UE
\n
BwwCQkoxDDAKBgNVBAoMA0pEVDENMAsGA1UECwwEUEVFUjELMAkGA1UECwwCR1cxETAPBgNVBAMM
\n
CEpEIENoYWluMR0wGwYJKoZIhvcNAQkBFg5qZGNoYWluQGpkLmNvbTAqMAUGAytlcAMhAN86LUi7
\n
1rnq+QAABCLfzTcbMRK0LcEyhxWG/AafJGR5MAUGAytlcANBAFW9bs4wfM799Lg3ueSGTnJFGBgE
\n
KkznVvzlMKDKWvgGf2FhWaqHUNiHxe1I3zY8OqUvwYuv6Y39XfWaJuGqQQw=
\n
-----END CERTIFICATE-----
"
,
"
revoked
"
:
false
,
"
state
"
:
"
NORMAL
"
,
"
pubKey
"
:
"
7VeRN4fSHB5Nb4yP7eiezxPerjH3QToYGtk4g9EagGDjR7a8
"
},
"
success
"
:
true
...
...
data-explorer/src/web/components/transactionInfo/transactionInfo.js
浏览文件 @
3f799476
...
...
@@ -387,13 +387,17 @@ export default class TransactionInfo extends Component {
<
/table
>
<
/BlockCollapsePanel
>
)
||
null
,
userAddress
&&
!
certific
ate
&&
(
<
BlockCollapsePanel
title
=
"
撤销用户(证书)
"
>
userAddress
&&
st
ate
&&
(
<
BlockCollapsePanel
title
=
"
更新用户(证书)状态
"
>
<
table
style
=
{{
lineHeight
:
'
41px
'
}}
>
<
tr
>
<
td
>
用户地址
:
<
/td
>
<
td
>
{
userAddress
}
<
/td
>
<
/tr
>
<
tr
>
<
td
>
用户状态
:
<
/td
>
<
td
>
{
state
}
<
/td
>
<
/tr
>
<
/table
>
<
/BlockCollapsePanel
>
)
||
null
,
...
...
data-explorer/src/web/components/usercert/usercert.js
浏览文件 @
3f799476
...
...
@@ -20,10 +20,10 @@ export default class UserCert extends Component {
user
.
getUserInfo
(
leader
,
address
)
]).
then
((
data
)
=>
{
if
(
data
&&
data
[
0
].
certificate
)
{
if
(
!
data
[
0
].
revoked
)
{
if
(
data
[
0
].
state
==
"
NORMAL
"
)
{
this
.
usercert
=
data
[
0
].
certificate
;
}
else
{
this
.
usercert
=
"
REVOKED
"
;
this
.
usercert
=
data
[
0
].
state
;
}
}
});
...
...
data-explorer/src/web/pages/user/user.js
浏览文件 @
3f799476
...
...
@@ -129,7 +129,7 @@ export default class User extends Component {
title
:
'
证书
'
,
dataIndex
:
'
address
'
,
key
:
'
certificate
'
,
width
:
20
0
,
width
:
15
0
,
render
:
(
text
,
record
,
index
)
=>
nj
`
<UserCert address=
${
text
}
key=
${
text
}
/>
`
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录