|
|
@@ -0,0 +1,243 @@
|
|
|
+<template>
|
|
|
+ <div class="container">
|
|
|
+ <div class="top">
|
|
|
+ <el-radio-group class="menu" v-model="type" size="normal">
|
|
|
+ <el-radio-button v-for="(item, index) in typeList" :key="index" :label="item.value">
|
|
|
+ <div class="radio-item">
|
|
|
+ <span>{{ item.label }}</span>
|
|
|
+ </div>
|
|
|
+ </el-radio-button>
|
|
|
+ </el-radio-group>
|
|
|
+ <div class="search-list">
|
|
|
+ <el-input
|
|
|
+ class="search"
|
|
|
+ prefix-icon="el-icon-search"
|
|
|
+ placeholder="请输入您想找到的作品名称…"
|
|
|
+ v-model="search"
|
|
|
+ clearable
|
|
|
+ @change="onSearch"
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="border"></div>
|
|
|
+ <template>
|
|
|
+ <el-table
|
|
|
+ class="customer-table"
|
|
|
+ :header-cell-style="{ background: '#1c1e26' }"
|
|
|
+ :data="tableData"
|
|
|
+ :border="false"
|
|
|
+ :highlight-current-row="false"
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <el-table-column prop="name" label="藏品信息" width="158"> </el-table-column>
|
|
|
+ <el-table-column prop="phone" 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="address" label="订单编号" width="120"> </el-table-column>
|
|
|
+ <el-table-column prop="time" label="成交时间" width="158"> </el-table-column>
|
|
|
+ <el-table-column style="color: #fdfb60" prop="status" label="状态" width="68"> </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
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import { mapState } from 'vuex';
|
|
|
+import pageableTable from '../../mixins/pageableTable';
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ tableData: [
|
|
|
+ {
|
|
|
+ id: 1104,
|
|
|
+ name: '1',
|
|
|
+ phone: '1',
|
|
|
+ region: '1',
|
|
|
+ price: 1,
|
|
|
+ time: '12:20',
|
|
|
+ status: '交易中',
|
|
|
+ address: '1 1518 弄'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ typeList: [
|
|
|
+ {
|
|
|
+ label: '全部',
|
|
|
+ value: ''
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '交易中',
|
|
|
+ value: 'PROCESSING'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '已完成',
|
|
|
+ value: 'FINISH'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ list: [],
|
|
|
+ search: '',
|
|
|
+ type: ''
|
|
|
+ };
|
|
|
+ },
|
|
|
+ mixins: [pageableTable],
|
|
|
+
|
|
|
+ computed: {
|
|
|
+ ...mapState(['userInfo'])
|
|
|
+ },
|
|
|
+ mounted() {},
|
|
|
+ methods: {
|
|
|
+ handleClick() {}
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less" scoped>
|
|
|
+/deep/ .el-table__header {
|
|
|
+ background: #1c1e26 !important;
|
|
|
+}
|
|
|
+/deep/ .el-table__row {
|
|
|
+ background: #1c1e26 !important;
|
|
|
+ .cell {
|
|
|
+ color: #ffffff;
|
|
|
+ }
|
|
|
+}
|
|
|
+.search {
|
|
|
+ background: #1a1a1a;
|
|
|
+ width: 280px;
|
|
|
+ height: 42px;
|
|
|
+ border-radius: 8px;
|
|
|
+
|
|
|
+ /deep/.el-input__inner {
|
|
|
+ border: 1px solid #898989;
|
|
|
+ background-color: transparent;
|
|
|
+ color: #fff;
|
|
|
+ border-radius: 8px;
|
|
|
+ &:focus {
|
|
|
+ border-color: #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+/deep/.menu {
|
|
|
+ .el-radio-button__inner {
|
|
|
+ border-color: #949699;
|
|
|
+ background-color: transparent;
|
|
|
+ color: #949699;
|
|
|
+ width: 140px;
|
|
|
+ }
|
|
|
+ .el-radio-button__orig-radio:checked + .el-radio-button__inner {
|
|
|
+ background: linear-gradient(46deg, @prim 0%, @warn 100%);
|
|
|
+ color: #fff;
|
|
|
+ border-color: #fff;
|
|
|
+ }
|
|
|
+ .el-radio-button {
|
|
|
+ &:last-child {
|
|
|
+ .el-radio-button__inner {
|
|
|
+ border-radius: 0 8px 8px 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &:first-child {
|
|
|
+ .el-radio-button__inner {
|
|
|
+ border-radius: 8px 0 0 8px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+/deep/ .el-empty {
|
|
|
+ margin: 0 auto;
|
|
|
+}
|
|
|
+.search-list {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .select {
|
|
|
+ /deep/.el-input__inner {
|
|
|
+ background-color: transparent;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.container {
|
|
|
+ padding: 45px 16px 0;
|
|
|
+
|
|
|
+ .top {
|
|
|
+ .flex();
|
|
|
+ justify-content: space-between;
|
|
|
+ .text1 {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #ffffff;
|
|
|
+ line-height: 25px;
|
|
|
+ }
|
|
|
+ .text2 {
|
|
|
+ width: 106px;
|
|
|
+ height: 42px;
|
|
|
+ border-radius: 8px;
|
|
|
+ border: 1px solid #939599;
|
|
|
+ line-height: 42px;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #939599;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ span {
|
|
|
+ width: 26px !important;
|
|
|
+ height: 26px !important;
|
|
|
+ // font-size: 16px;
|
|
|
+ color: #939599;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .border {
|
|
|
+ height: 1px;
|
|
|
+ background: #494a4d;
|
|
|
+ border-radius: 1px;
|
|
|
+ margin: 24px 0 34px;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|
|
|
+<style lang="less">
|
|
|
+.customer-table th {
|
|
|
+ border: none !important;
|
|
|
+}
|
|
|
+.customer-table td,
|
|
|
+.customer-table th.is-leaf {
|
|
|
+ border: none;
|
|
|
+}
|
|
|
+//表格最外边框
|
|
|
+.el-table--border,
|
|
|
+.el-table--group {
|
|
|
+ border: none;
|
|
|
+}
|
|
|
+// 头部边框
|
|
|
+.customer-table thead tr th.is-leaf {
|
|
|
+ border: 1px solid #ebeef5;
|
|
|
+ border-right: none;
|
|
|
+}
|
|
|
+.customer-table thead tr th:nth-last-of-type(2) {
|
|
|
+ border-right: 1px solid #ebeef5;
|
|
|
+}
|
|
|
+// 表格最外层边框-底部边框
|
|
|
+.el-table--border::after,
|
|
|
+.el-table--group::after {
|
|
|
+ width: 0;
|
|
|
+}
|
|
|
+.customer-table::before {
|
|
|
+ width: 0;
|
|
|
+}
|
|
|
+.customer-table .el-table__fixed-right::before,
|
|
|
+.el-table__fixed::before {
|
|
|
+ width: 0;
|
|
|
+}
|
|
|
+//表格有滚动时表格头边框
|
|
|
+.el-table--border th.gutter:last-of-type {
|
|
|
+ border: 1px solid #ebeef5;
|
|
|
+ border-left: none;
|
|
|
+}
|
|
|
+</style>
|