|
|
|
@ -27,12 +27,12 @@
|
|
|
|
|
<span>区块链</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="block-item-content">
|
|
|
|
|
<p>区块哈希:{{ item.blockHash }}</p>
|
|
|
|
|
<p>区块哈希:{{ truncate(item.blockHash,15) }}</p>
|
|
|
|
|
<p>时间戳:{{ item.timestamp }}</p>
|
|
|
|
|
<p>前一区块哈希:{{ item.previousBlock }}</p>
|
|
|
|
|
<p>前一区块哈希:{{ truncate(item.previousBlock,15) }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="block-item-footer">
|
|
|
|
|
<span>交易数据:{{ item.transactionCode }}</span>
|
|
|
|
|
交易数据:{{ truncate(item.transactionCode,15) }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-scrollbar>
|
|
|
|
@ -44,6 +44,7 @@
|
|
|
|
|
import {getTransactionBlock} from '@/api/user.js'
|
|
|
|
|
import {toggleFullscreenContainer} from '@/utils/index.js'
|
|
|
|
|
import { getSchoolId } from '../../../utils/auth';
|
|
|
|
|
import {truncate} from '@/utils/index.js'
|
|
|
|
|
const height = ref(600)
|
|
|
|
|
// 节点数
|
|
|
|
|
const nodeNumber = ref(0)
|
|
|
|
@ -169,6 +170,7 @@ onUnmounted(() => {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.block-item-footer {
|
|
|
|
|
display: block;
|
|
|
|
|
width: 242px;
|
|
|
|
|
height: 46px;
|
|
|
|
|
background: #2c6dff;
|
|
|
|
|