Pārlūkot izejas kodu

报告清单排序

zhuliu 7 mēneši atpakaļ
vecāks
revīzija
5b17e195d7
1 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  1. 8 0
      src/views/report/components/index.vue

+ 8 - 0
src/views/report/components/index.vue

@@ -507,6 +507,14 @@ export default {
         order,
       }
       this.sort = this.$commonJS.getSortData(params)
+      if(!this.sort || this.sort.length == 0){
+        this.sort = [
+          {
+            "orderBy": "createTime",
+            "orderType": 1
+          }
+        ]
+      }
       this.queryParams.current = 1
       this.isGrouping()
     },