xuqiang 4 gadi atpakaļ
vecāks
revīzija
4395285068
1 mainītis faili ar 19 papildinājumiem un 19 dzēšanām
  1. 19 19
      src/main/pc-space/src/views/user/CollectionOrder.vue

+ 19 - 19
src/main/pc-space/src/views/user/CollectionOrder.vue

@@ -52,19 +52,19 @@
                 </el-table-column>
                 <el-table-column prop="minter" label="卖家" width="104"> </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>
+                    <!-- <template slot-scope="scope"> -->
+                    <div
+                        style="
+                            width: 88px;
+                            height: 24px;
+                            overflow: hidden;
+                            text-overflow: ellipsis;
+                            white-space: nowrap;
+                        "
+                    >
+                        {{ userInfo.nickname }}
+                    </div>
+                    <!-- </template> -->
                 </el-table-column>
                 <el-table-column prop="price" label="金额" width="100">
                     <template slot-scope="scope">
@@ -198,12 +198,12 @@ export default {
             };
         },
         setList(list) {
-            list.forEach(item => {
-                item.nickname = this.userInfo.nickname;
-                this.lists.push(item);
-                this.tableData = this.lists;
-            });
-            // 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('确定删除该订单吗?', '警告', {