yuanyuan 3 лет назад
Родитель
Сommit
7ffd967b80

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

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

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

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