|
|
@@ -24,31 +24,79 @@
|
|
|
<template>
|
|
|
<el-table
|
|
|
class="customer-table"
|
|
|
- :header-cell-style="{ background: '#1c1e26' }"
|
|
|
+ :header-cell-style="{ background: '#1c1e26', fontWeight: 'bold' }"
|
|
|
:data="tableData"
|
|
|
:border="false"
|
|
|
:highlight-current-row="false"
|
|
|
style="width: 100%; background: #1c1e26"
|
|
|
>
|
|
|
- <el-table-column prop="name" label="藏品信息" width="158"> </el-table-column>
|
|
|
+ <el-table-column prop="name" label="藏品信息" width="158">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <img
|
|
|
+ style="width: 60px; height: 60px; border-radius: 4px; margin-left: 4px"
|
|
|
+ :src="scope.row.minterAvatar"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ width: 88px;
|
|
|
+ height: 24px;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ scope.row.name }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="minter" label="卖家" width="104"> </el-table-column>
|
|
|
- <el-table-column prop="region" label="买方" width="104"> </el-table-column>
|
|
|
- <el-table-column style="color: #fdfb60" prop="price" label="金额" width="100"> </el-table-column>
|
|
|
+ <el-table-column prop="nickname" label="买方" width="104">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ width: 88px;
|
|
|
+ height: 24px;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ scope.row.nickname }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="price" label="金额" width="100">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div style="display: flex">
|
|
|
+ <img
|
|
|
+ style="width: 10px; height: 11px; margin-top: 8px"
|
|
|
+ src="../../assets/img/icon_jiage@3x.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <div style="color: #fdfb60; font-size: 26px">
|
|
|
+ {{ scope.row.price }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="id" label="订单编号" width="120"> </el-table-column>
|
|
|
<el-table-column prop="createdAt" label="成交时间" width="158"> </el-table-column>
|
|
|
- <el-table-column
|
|
|
- style="color: #fdfb60"
|
|
|
- prop="status"
|
|
|
- label="状态"
|
|
|
- width="108"
|
|
|
- :formatter="statusFormatter"
|
|
|
- >
|
|
|
+ <el-table-column prop="status" label="状态" width="108" :formatter="statusFormatter">
|
|
|
+ <!-- <template slot-scope="scope">
|
|
|
+ <div :style="{ color: 'red' }">
|
|
|
+ {{ scope.row.status }}
|
|
|
+ </div>
|
|
|
+ </template> -->
|
|
|
</el-table-column>
|
|
|
<el-table-column fixed="right" label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button @click="handleClick(scope.row)" style="color: red" type="text" size="small"
|
|
|
- >删除</el-button
|
|
|
- >
|
|
|
+ <img
|
|
|
+ style="width: 24px; height: 24px; cursor: pointer"
|
|
|
+ @click="handleClick(scope.row)"
|
|
|
+ src="../../assets/user/icon_shanchu@3x.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -93,7 +141,9 @@ export default {
|
|
|
url: '/order/all',
|
|
|
// /asset/all
|
|
|
search: '',
|
|
|
+ name1: '',
|
|
|
list: [],
|
|
|
+ lists: [],
|
|
|
statusOptions: [
|
|
|
{ label: '已完成', value: 'FINISH' },
|
|
|
{ label: '交易中', value: 'PROCESSING' }
|
|
|
@@ -149,7 +199,12 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
setList(list) {
|
|
|
- this.tableData = list;
|
|
|
+ list.forEach(item => {
|
|
|
+ item.nickname = this.userInfo.nickname;
|
|
|
+ this.lists.push(item);
|
|
|
+ this.tableData = this.lists;
|
|
|
+ });
|
|
|
+ // this.tableData = list;
|
|
|
},
|
|
|
handleClick(row) {
|
|
|
this.$confirm('确定删除该订单吗?', '警告', {
|
|
|
@@ -230,6 +285,7 @@ export default {
|
|
|
color: #949699;
|
|
|
width: 140px;
|
|
|
height: 42px;
|
|
|
+
|
|
|
span {
|
|
|
font-size: 16px !important;
|
|
|
}
|
|
|
@@ -285,11 +341,13 @@ export default {
|
|
|
</style>
|
|
|
<style lang="less">
|
|
|
.customer-table th {
|
|
|
+ // font-weight: bold !important;
|
|
|
border: none !important;
|
|
|
}
|
|
|
.customer-table td,
|
|
|
.customer-table th.is-leaf {
|
|
|
border: none;
|
|
|
+ // font-weight: bold !important;
|
|
|
}
|
|
|
//表格最外边框
|
|
|
.el-table--border,
|
|
|
@@ -298,6 +356,7 @@ export default {
|
|
|
}
|
|
|
// 头部边框
|
|
|
.customer-table thead tr th.is-leaf {
|
|
|
+ font-weight: bold !important;
|
|
|
border: 1px solid #ebeef5;
|
|
|
border-right: none;
|
|
|
}
|