Procházet zdrojové kódy

报告清单排序

zhuliu před 7 měsíci
rodič
revize
5b17e195d7
1 změnil soubory, kde provedl 8 přidání a 0 odebrání
  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()
     },