Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
JDChain
Explorer
提交
6940d904
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,发现更多精彩内容 >>
提交
6940d904
编写于
10月 28, 2021
作者:
I
imuge
提交者:
liuyuanmu
10月 28, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update contract,user,event display
上级
38650a1e
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
23 addition
and
70 deletion
+23
-70
data-explorer/dist/web/20190101/contract.chunk.js
data-explorer/dist/web/20190101/contract.chunk.js
+1
-1
data-explorer/dist/web/20190101/event.chunk.js
data-explorer/dist/web/20190101/event.chunk.js
+1
-1
data-explorer/dist/web/20190101/user.chunk.js
data-explorer/dist/web/20190101/user.chunk.js
+1
-1
data-explorer/src/web/components/eventInfo/eventInfo.js
data-explorer/src/web/components/eventInfo/eventInfo.js
+10
-50
data-explorer/src/web/components/usercert/usercert.js
data-explorer/src/web/components/usercert/usercert.js
+3
-7
data-explorer/src/web/components/usercert/usercert.t.html
data-explorer/src/web/components/usercert/usercert.t.html
+1
-1
data-explorer/src/web/pages/contract/contract.t.html
data-explorer/src/web/pages/contract/contract.t.html
+4
-4
data-explorer/src/web/pages/user/user.js
data-explorer/src/web/pages/user/user.js
+2
-5
未找到文件。
data-explorer/dist/web/20190101/contract.chunk.js
浏览文件 @
6940d904
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
data-explorer/dist/web/20190101/event.chunk.js
浏览文件 @
6940d904
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
data-explorer/dist/web/20190101/user.chunk.js
浏览文件 @
6940d904
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
data-explorer/src/web/components/eventInfo/eventInfo.js
浏览文件 @
6940d904
...
...
@@ -42,10 +42,8 @@ export default class EventInfo extends Component {
onPageChange
=
(
page
,
pageSize
)
=>
{
const
{
data
,
store
:
{
common
,
event
}
}
=
this
.
props
;
const
closeLoading
=
Message
.
loading
(
'
正在获取数据...
'
,
0
);
let
leaders
=
common
.
getDefaultLedger
();
event
.
setEvent
(
page
);
// this.expandedRowKeys = [];
let
param
=
{
fromIndex
:
(
event
.
eventCurrent
-
1
)
*
this
.
pageSize
,
...
...
@@ -201,17 +199,6 @@ export default class EventInfo extends Component {
}]
}
// 子表展开收缩函数
// handleExpandShow = (expanded, record) => {
// if (expanded) {
// let testArr = [];
// testArr.push(record);
// this.expandedRowKeys = [...testArr];
// } else {
// this.expandedRowKeys = [...arrayRemove(this.expandedRowKeys, record)]
// }
// }
handleExpandShowName
=
(
expanded
,
record
)
=>
{
if
(
expanded
)
{
let
testArr
=
[];
...
...
@@ -240,14 +227,6 @@ export default class EventInfo extends Component {
title
:
'
区块高度
'
,
dataIndex
:
'
blockHeight
'
,
},
// {
// title: '事件账户',
// dataIndex: 'eventAccount.value'
// },
// {
// title: '事件名称',
// dataIndex: 'name',
// }
]
}
...
...
@@ -258,22 +237,6 @@ export default class EventInfo extends Component {
<
Col
span
=
{
4
}
xs
=
{
24
}
sm
=
{
8
}
lg
=
{
4
}
>
事件账户
:
<
/Col
>
<
Col
span
=
{
20
}
xs
=
{
24
}
sm
=
{
16
}
lg
=
{
20
}
>
{
record
.
eventAccount
&&
record
.
eventAccount
||
''
}
<
/Col
>
{
/* <Col span = {4} xs = {24} sm = {8} lg = {4}>事件名称:</Col>
<Col span = {20} xs = {24} sm = {16} lg = {20}>{record.name && record.name || ''}</Col> */
}
{
/* <Col span = {4} xs = {24} sm = {8} lg = {4}>内容:</Col>
<Col span = {20} xs = {24} sm = {16} lg = {20}>
<ul>
<li>nil: {record.content && record.content.nil && record.content.nil || false}</li>
<li>bytes: {record.content && record.content.bytes && record.content.bytes.value && record.content.bytes.value || false}</li>
<li>type: {record.content && record.content.type && record.content.type || ''}</li>
<li>value: {record.content && record.content.value && record.content.value || ''}</li>
</ul>
</Col> */
}
{
/* <Col span = {4} xs = {24} sm = {8} lg = {4}>nil:</Col>
<Col span = {8} xs = {24} sm = {16} lg = {8}>{record.content && record.content.nil && record.content.nil || false}</Col> */
}
<
Col
span
=
{
4
}
xs
=
{
24
}
sm
=
{
8
}
lg
=
{
4
}
>
事件名称
:
<
/Col
>
<
Col
span
=
{
8
}
xs
=
{
24
}
sm
=
{
16
}
lg
=
{
8
}
>
{
record
.
name
&&
record
.
name
||
''
}
<
/Col
>
...
...
@@ -297,33 +260,30 @@ export default class EventInfo extends Component {
<
div
className
=
{
styles
.
info
}
>
<
Row
className
=
{
styles
.
gl
}
>
<
Col
span
=
{
2
}
xs
=
{
24
}
sm
=
{
8
}
lg
=
{
2
}
>
地址
:
<
/Col
>
<
Col
span
=
{
10
}
xs
=
{
24
}
sm
=
{
16
}
lg
=
{
10
}
>
{
data
.
address
&&
data
.
address
||
''
}
<
/Col
>
<
Col
span
=
{
10
}
xs
=
{
24
}
sm
=
{
16
}
lg
=
{
10
}
>
{
data
.
address
||
''
}
<
/Col
>
<
Col
span
=
{
2
}
xs
=
{
24
}
sm
=
{
8
}
lg
=
{
2
}
>
公钥
:
<
/Col
>
<
Col
span
=
{
10
}
xs
=
{
24
}
sm
=
{
16
}
lg
=
{
10
}
>
{
data
.
pubKey
&&
data
.
pubKey
&&
data
.
pubKey
||
''
}
<
/Col
>
<
Col
span
=
{
10
}
xs
=
{
24
}
sm
=
{
16
}
lg
=
{
10
}
>
{
data
.
pubKey
||
''
}
<
/Col
>
<
Col
span
=
{
2
}
xs
=
{
24
}
sm
=
{
8
}
lg
=
{
2
}
>
创建用户
:
<
/Col
>
<
Col
span
=
{
10
}
xs
=
{
24
}
sm
=
{
16
}
lg
=
{
10
}
>
{
data
.
permission
&&
data
.
permission
&&
data
.
permission
.
owners
||
''
}
<
/Col
>
<
Col
span
=
{
10
}
xs
=
{
24
}
sm
=
{
16
}
lg
=
{
10
}
>
{
data
.
permission
&&
data
.
permission
.
owners
||
''
}
<
/Col
>
<
Col
span
=
{
2
}
xs
=
{
24
}
sm
=
{
8
}
lg
=
{
2
}
>
所属角色
:
<
/Col
>
<
Col
span
=
{
10
}
xs
=
{
24
}
sm
=
{
16
}
lg
=
{
10
}
>
{
data
.
permission
&&
data
.
permission
&&
data
.
permission
.
role
||
'
DEFAULT
'
}
<
/Col
>
<
/Row
>
<
Col
span
=
{
10
}
xs
=
{
24
}
sm
=
{
16
}
lg
=
{
10
}
>
{
data
.
permission
&&
data
.
permission
.
role
||
'
DEFAULT
'
}
<
/Col
>
<
Row
className
=
{
styles
.
gl
}
>
<
Col
span
=
{
2
}
xs
=
{
24
}
sm
=
{
8
}
lg
=
{
2
}
>
权限值
:
<
/Col
>
<
Col
span
=
{
10
}
xs
=
{
24
}
sm
=
{
16
}
lg
=
{
10
}
>
{
data
.
permission
&&
data
.
permission
&&
data
.
permission
.
modeBits
||
''
}
<
/Col
>
<
Col
span
=
{
10
}
xs
=
{
24
}
sm
=
{
16
}
lg
=
{
10
}
>
{
data
.
permission
&&
data
.
permission
.
modeBits
||
''
}
<
/Col
>
<
Col
span
=
{
2
}
xs
=
{
24
}
sm
=
{
8
}
lg
=
{
2
}
>
事件名总数
:
<
/Col
>
<
Col
span
=
{
10
}
xs
=
{
24
}
sm
=
{
16
}
lg
=
{
10
}
>
{
data
.
dataset
&&
data
.
dataset
.
dataCount
}
<
/Col
>
<
/Row
>
<
h3
>
事件列表
<
/h3
>
<
Table
rowKey
=
{
record
=>
record
}
dataSource
=
{
event
.
dataEvent
}
columns
=
{
this
.
eventColumns
()}
// expandedRowKeys={this.expandedRowKeys}
// expandedRowRender={this.expandedRowRender}
// onExpand={(expanded, record) => this.handleExpandShow(expanded, record)}
// onRow={record => ({
// onMouseOver: event => this.onShowLatest(event, record)
// })}
pagination
=
{{
current
:
event
.
eventCurrent
,
pageSize
:
this
.
pageSize
,
...
...
data-explorer/src/web/components/usercert/usercert.js
浏览文件 @
6940d904
...
...
@@ -11,7 +11,7 @@ import styles from './usercert.m.scss';
@
observer
export
default
class
UserCert
extends
Component
{
@
observable
user
cert
=
'
-
'
;
@
observable
user
info
=
'
-
'
;
componentDidMount
()
{
const
{
store
:
{
user
},
address
}
=
this
.
props
;
...
...
@@ -19,12 +19,8 @@ export default class UserCert extends Component {
Promise
.
all
([
user
.
getUserInfo
(
leader
,
address
)
]).
then
((
data
)
=>
{
if
(
data
&&
data
[
0
].
certificate
)
{
if
(
data
[
0
].
state
==
"
NORMAL
"
)
{
this
.
usercert
=
data
[
0
].
certificate
;
}
else
{
this
.
usercert
=
data
[
0
].
state
;
}
if
(
data
&&
data
[
0
].
address
)
{
this
.
userinfo
=
data
[
0
]
}
});
}
...
...
data-explorer/src/web/components/usercert/usercert.t.html
浏览文件 @
6940d904
<template
name=
"container"
>
<p
style=
"font-size: 1px"
>
{user
cert
}
{user
info.state
}
</p>
</template>
\ No newline at end of file
data-explorer/src/web/pages/contract/contract.t.html
浏览文件 @
6940d904
...
...
@@ -39,16 +39,16 @@
<td>
{contractInfo.chainCodeVersion}
</td>
</tr>
<tr>
<td>
创建用户
:
</td>
<td>
{contractInfo.permission
&&
contractInfo.permission.
owner
s || ''}
</td>
<td>
权限值
:
</td>
<td>
{contractInfo.permission
&&
contractInfo.permission.
modeBit
s || ''}
</td>
</tr>
<tr>
<td>
所属角色:
</td>
<td>
{contractInfo.permission
&&
contractInfo.permission.role || 'DEFAULT'}
</td>
</tr>
<tr>
<td>
权限值
:
</td>
<td>
{contractInfo.permission
&&
contractInfo.permission.
modeBit
s || ''}
</td>
<td>
创建用户
:
</td>
<td>
{contractInfo.permission
&&
contractInfo.permission.
owner
s || ''}
</td>
</tr>
</table>
<MonacoEditor
...
...
data-explorer/src/web/pages/user/user.js
浏览文件 @
6940d904
...
...
@@ -116,20 +116,17 @@ export default class User extends Component {
title
:
'
用户地址
'
,
dataIndex
:
'
address
'
,
key
:
'
address
'
,
width
:
100
},{
title
:
'
用户公钥
'
,
dataIndex
:
'
pubKey
'
,
key
:
'
pubKey
'
,
width
:
120
,
render
:
(
text
,
record
,
index
)
=>
nj
`
${
text
}
<br>算法:
${
tranBase58
(
text
)}
`
()
},{
title
:
'
证书
'
,
title
:
'
状态
'
,
dataIndex
:
'
address
'
,
key
:
'
certificate
'
,
width
:
150
,
key
:
'
state
'
,
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录