|
@@ -6,28 +6,23 @@
|
|
|
<i class="el-icon-search"></i>
|
|
|
<span :style="{ padding: '4px' }">藏品列表</span>
|
|
|
</el-col>
|
|
|
-
|
|
|
</el-row>
|
|
|
</div>
|
|
|
<div class="footer">
|
|
|
- <el-table border :data="tableData" style="width: 100%">
|
|
|
- <el-table-column
|
|
|
- label="id"
|
|
|
- width="110"
|
|
|
- align="center"
|
|
|
- >
|
|
|
+ <el-table border :data="tableData" style="width: 100%">
|
|
|
+ <el-table-column label="id" width="110" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.collectionId }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
- prop="collectionTitle"
|
|
|
+ prop="collectionTitle"
|
|
|
label="藏品名称"
|
|
|
width="220"
|
|
|
align="center"
|
|
|
>
|
|
|
- <template slot-scope="scope">
|
|
|
+ <template slot-scope="scope">
|
|
|
<span>{{ scope.row.collectionTitle }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -78,7 +73,6 @@
|
|
|
<el-table-column prop="edit" label="操作" width="280" align="center">
|
|
|
<el-row>
|
|
|
<el-button type="text" @click="coldetails">藏品详情</el-button>
|
|
|
- <el-button type="text" @click="">兑换详情</el-button>
|
|
|
</el-row>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -96,6 +90,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import { collecctionList } from "../../api/sets/index";
|
|
|
import { collectionList } from "../../api/collection/collection";
|
|
|
export default {
|
|
|
data() {
|
|
@@ -106,31 +101,34 @@ export default {
|
|
|
pageSize: 10,
|
|
|
},
|
|
|
total: 1,
|
|
|
- tableData: [
|
|
|
- {
|
|
|
- collectionId: "1",
|
|
|
- collectionTitle: "藏品1",
|
|
|
- showStart: "2023-02-10:00:00-2023-02-16:00:00:00",
|
|
|
- colPrice: 0.1,
|
|
|
- colCount: 500,
|
|
|
- status: "售卖中...",
|
|
|
- },
|
|
|
- ],
|
|
|
+ tableData: [],
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
// this.getcollectionList();
|
|
|
+ this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
- coldetails(){
|
|
|
- this.$router.push("./collectionDetails");
|
|
|
+ init() {
|
|
|
+ let colList = JSON.parse(JSON.stringify(this.$route.params.rows));
|
|
|
+ console.log(colList);
|
|
|
+ setTimeout(() => {
|
|
|
+ collecctionList(colList.tetherId).then((res) => {
|
|
|
+ console.log(res);
|
|
|
+ this.total = res.total;
|
|
|
+ this.tableData = res.rows;
|
|
|
+ });
|
|
|
+ }, 800);
|
|
|
},
|
|
|
- getcollectionList() {
|
|
|
- collectionList(this.pageInfo).then((res) => {
|
|
|
- this.total = res.total;
|
|
|
- this.tableData = res.rows;
|
|
|
- });
|
|
|
+ coldetails() {
|
|
|
+ this.$router.push("./collectionDetails");
|
|
|
},
|
|
|
+ // getcollectionList() {
|
|
|
+ // collecctionList().then((res) => {
|
|
|
+ // this.total = res.total;
|
|
|
+ // this.tableData = res.rows;
|
|
|
+ // });
|
|
|
+ // },
|
|
|
handleCurrentChange(newPage) {
|
|
|
this.pageInfo.pageNum = newPage;
|
|
|
},
|