Jelajahi Sumber

成交案例排序

yuanyuan 3 tahun lalu
induk
melakukan
7ffd967b80

+ 8 - 0
src/main/zhi-rong-web/src/components/page/FilterList.vue

@@ -153,6 +153,9 @@ export default {
                 ];
                 ];
             }
             }
         },
         },
+        sortKeys: {
+            type: Array
+        },
         isDemand: {
         isDemand: {
             type: Boolean,
             type: Boolean,
             default: false
             default: false
@@ -204,6 +207,11 @@ export default {
         }
         }
     },
     },
     created() {
     created() {
+        if(this.sortKeys){
+            this.sortStr = 'soldAt,desc'
+        }else{
+            this.sortStr = 'createdAt,desc'
+        }
         this.$nextTick(() => {
         this.$nextTick(() => {
             this.init();
             this.init();
         });
         });

+ 2 - 1
src/main/zhi-rong-web/src/views/market/SuccessCases.vue

@@ -5,6 +5,7 @@
         :hasAction="false"
         :hasAction="false"
         ref="list"
         ref="list"
         url="/successCase/all"
         url="/successCase/all"
+        :sortKeys="true"
         :filters="filters"
         :filters="filters"
         @init="init"
         @init="init"
     >
     >
@@ -32,7 +33,7 @@ export default {
             sortKey: [
             sortKey: [
                 {
                 {
                     name: '成交时间',
                     name: '成交时间',
-                    key: 'createdAt'
+                    key: 'soldAt'
                 },
                 },
                 {
                 {
                     name: '成交价格',
                     name: '成交价格',