|
|
@@ -193,6 +193,20 @@
|
|
|
<div v-html="info.detail"></div>
|
|
|
</div>
|
|
|
</el-collapse-item>
|
|
|
+ <!-- v-if="tableData.length != 0" -->
|
|
|
+ <div v-if="tableData.length != 0">
|
|
|
+ <el-collapse-item name="3">
|
|
|
+ <template slot="title">
|
|
|
+ <img class="imgs" src="../assets/info_icon_jiaoyijilu.png" alt="" />
|
|
|
+ <span>交易历史</span>
|
|
|
+ </template>
|
|
|
+ <el-table :data="tableData" stripe style="width: 100%; background: #1c1e26">
|
|
|
+ <el-table-column prop="fromUser" label="用户" width="555"> </el-table-column>
|
|
|
+ <el-table-column prop="operation" label="操作" width="455"> </el-table-column>
|
|
|
+ <el-table-column prop="createdAt" label="时间"> </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-collapse-item>
|
|
|
+ </div>
|
|
|
</el-collapse>
|
|
|
</div>
|
|
|
<div class="nft" v-if="relateds.length > 0">
|
|
|
@@ -301,6 +315,20 @@ export default {
|
|
|
this.loading = false;
|
|
|
this.getTime(res.startTime);
|
|
|
this.getRelated(res.ownerId);
|
|
|
+ if (res.assetId) {
|
|
|
+ this.$http.get('/asset/get/' + res.assetId).then(res => {
|
|
|
+ console.log(res);
|
|
|
+ this.$http
|
|
|
+ .get('/asset/tokenHistory', {
|
|
|
+ tokenId: res.tokenId,
|
|
|
+ assetId: res.collectionId
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ console.log(res);
|
|
|
+ this.tableData = res;
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
if (res.privileges) {
|
|
|
this.init2 = res.privileges.find(item => {
|
|
|
return item.name === '悄悄话';
|
|
|
@@ -771,6 +799,16 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.content {
|
|
|
+ /deep/ .el-table__row {
|
|
|
+ color: #ffffff;
|
|
|
+ }
|
|
|
+ /deep/ .el-table td,
|
|
|
+ .el-table th.is-leaf {
|
|
|
+ border-bottom: 1px solid #2b2e3e;
|
|
|
+ }
|
|
|
+ /deep/ .el-table th.is-leaf {
|
|
|
+ border-bottom: 1px solid #2b2e3e;
|
|
|
+ }
|
|
|
.info {
|
|
|
display: flex;
|
|
|
align-items: center;
|