Bläddra i källkod

分组之后排序问题

zhuliu 1 år sedan
förälder
incheckning
7756fc9f9c

+ 1 - 1
src/views/event/components/index.vue

@@ -304,7 +304,7 @@ export default {
         orderDTOList:[
           {
             orderBy:this.groupingValue,
-            orderType:this.sort[0].orderType
+            orderType:this.sort&&this.sort.length>0?this.sort[0].orderType : 0
           }
         ],//排序
         groupBy:this.groupingValue,//分组信息

+ 1 - 1
src/views/patentMining/components/viewIndex.vue

@@ -296,7 +296,7 @@ export default {
         orderDTOList: [
           {
             orderBy:this.group,
-            orderType:this.sort[0].orderType
+            orderType:this.sort&&this.sort.length>0?this.sort[0].orderType : 0
           }
         ],//排序
         groupBy: this.group,//分组的值

+ 1 - 1
src/views/project/index.vue

@@ -283,7 +283,7 @@ export default {
         orderDTOList: [
           {
             orderBy:this.group,
-            orderType:this.sort[0].orderType
+            orderType:this.sort&&this.sort.length>0?this.sort[0].orderType : 0
           }
         ],//排序
         groupBy: this.group,//分组的值

+ 1 - 1
src/views/report/components/index.vue

@@ -410,7 +410,7 @@ export default {
         orderDTOList: [
           {
             orderBy: this.groupingValue,
-            orderType: this.sort[0].orderType
+            orderType: this.sort&&this.sort.length>0?this.sort[0].orderType : 0
           }
         ],//排序
         groupBy: this.groupingValue,//分组信息