Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
JDChain
Explorer
提交
152915dc
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,发现更多精彩内容 >>
提交
152915dc
编写于
5月 23, 2019
作者:
W
wangzhe18
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
账本信息,新增共识配置和密码算法配置显示
上级
c05a3c95
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
65 addition
and
8 deletion
+65
-8
dist/web/20190101/app.js
dist/web/20190101/app.js
+2
-2
dist/web/20190101/block.chunk.js
dist/web/20190101/block.chunk.js
+1
-1
src/utils/util.js
src/utils/util.js
+14
-0
src/web/components/header/header.js
src/web/components/header/header.js
+24
-4
src/web/components/header/header.t.html
src/web/components/header/header.t.html
+24
-1
未找到文件。
dist/web/20190101/app.js
浏览文件 @
152915dc
此差异已折叠。
点击以展开。
dist/web/20190101/block.chunk.js
浏览文件 @
152915dc
此差异已折叠。
点击以展开。
src/utils/util.js
浏览文件 @
152915dc
...
...
@@ -217,4 +217,18 @@ export function consensusProtocolFormat(flag)
}
return
str
;
}
//字符串转算法
export
function
numToalgorithm
(
flag
)
{
var
str
=
flag
&&
(
flag
+
""
)
||
""
;
switch
(
str
)
{
case
"
8216
"
:
str
=
"
SHA256
"
;
break
;
default
:
break
;
}
return
str
;
}
\ No newline at end of file
src/web/components/header/header.js
浏览文件 @
152915dc
...
...
@@ -4,7 +4,7 @@ import { observer, inject } from 'mobx-react';
import
{
registerTmpl
}
from
'
nornj-react
'
;
import
{
autobind
}
from
'
core-decorators
'
;
import
{
Drawer
}
from
'
antd
'
;
import
{
copyToClipboard
,
consensusProtocolFormat
}
from
'
../.././../utils/util
'
;
import
{
copyToClipboard
,
tranBase58
,
numToalgorithm
}
from
'
../.././../utils/util
'
;
import
Notification
from
'
../.././../utils/notification
'
;
import
Message
from
'
flarej/lib/components/antd/message
'
;
import
'
flarej/lib/components/antd/menu
'
;
...
...
@@ -83,9 +83,29 @@ export default class Header extends Component {
title
:
'
参与方公钥
'
,
dataIndex
:
'
pubKey.value
'
,
key
:
'
pubKey
'
},
{
title
:
'
公钥算法
'
,
dataIndex
:
'
pubKey.value
'
,
key
:
'
algorithm
'
,
render
:
(
text
,
record
,
index
)
=>
nj
`
${
tranBase58
(
text
)}
`
()
}];
}
// 交易列表
@
computed
get
tableColumnsOfconfig
()
{
return
[{
title
:
'
Key
'
,
dataIndex
:
'
name
'
,
key
:
'
name
'
},
{
title
:
'
值
'
,
dataIndex
:
'
value
'
,
key
:
'
value
'
}];
}
// 关闭
@
autobind
onClose
(){
...
...
@@ -101,12 +121,12 @@ export default class Header extends Component {
const
{
store
:
{
common
}
}
=
this
.
props
;
return
template
(
{
components
:
{
'
ant-Drawer
'
:
Drawer
,
'
ant-Drawer
'
:
Drawer
,
}},
this
.
props
,
this
,
{
styles
,
common
,
headerPic
:
require
(
'
../../images/pic-header.png
'
),
consensusProtocolFormat
numToalgorithm
});
}
}
src/web/components/header/header.t.html
浏览文件 @
152915dc
...
...
@@ -52,7 +52,7 @@
<fj-Col
l=
2
>
共识方式
</fj-Col>
<fj-Col
l=
4
>
{co
nsensusProtocolFormat(common.ledgerinfo.consensusProtocol)
}
{co
mmon.ledgerinfo.consensusProtocol
}
</fj-Col>
<fj-Col
l=
2
>
最大成块时间
</fj-Col>
...
...
@@ -72,6 +72,29 @@
</fj-Col>
</fj-Row>
<h2
class=
"htitle"
>
共识配置
</h2>
<ant-Table
class=
"table"
columns=
{toJS(tableColumnsOfconfig)}
dataSource=
{toJS(common.ledgerinfo.consensusSettings.systemConfigs)}
bordered
/>
<h2
class=
"htitle"
>
密码算法配置
</h2>
<fj-Row
class=
"gl"
>
<fj-Col
l=
2
>
是否校验Hash
</fj-Col>
<fj-Col
l=
4
>
{common.ledgerinfo.cryptoSetting.autoVerifyHash
&&
'是' || '否'}
</fj-Col>
<fj-Col
l=
2
>
Hash算法
</fj-Col>
<fj-Col
l=
4
>
{numToalgorithm(common.ledgerinfo.cryptoSetting.hashAlgorithm)}
</fj-Col>
</fj-Row>
<h2
class=
"htitle"
>
参与方
</h2>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录