소스 검색

修改排序

zhuliu 1 년 전
부모
커밋
34c09bb1a9

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

@@ -289,7 +289,12 @@ export default {
       let params = {
         ...this.queryParams,//分页信息
         searchQuery:this.$commonJS.objectToString(this.searchOption || {}),//检索条件
-        orderDTOList:this.sort,//排序
+        orderDTOList:[
+          {
+            orderBy:this.groupingValue,
+            orderType:this.sort.orderType
+          }
+        ],//排序
         groupBy:this.groupingValue,//分组信息
       }
       this.$api.groupEvent(params).then(res => {

+ 6 - 6
src/views/home/components/echarts/components/report.vue

@@ -46,12 +46,12 @@ export default {
           current:1,
           size:999,//分页信息
           searchQuery: '',//检索条件
-          orderDTOList: [
-            {
-              "orderBy": "createTime",
-              "orderType": 1
-            }
-          ],//排序
+          // orderDTOList: [
+          //   {
+          //     "orderBy": "createTime",
+          //     "orderType": 1
+          //   }
+          // ],//排序
           groupBy: 'reportTypeName',//分组信息
         }
         var data = []

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

@@ -290,7 +290,12 @@ export default {
       let params = {
         ...this.queryParams,//分页信息
         searchQuery: this.$commonJS.objectToString(this.searchOption || {}),//检索条件
-        orderDTOList: this.sort,//排序
+        orderDTOList: [
+          {
+            orderBy:this.group,
+            orderType:this.sort.orderType
+          }
+        ],//排序
         groupBy: this.group,//分组的值
       }
       this.loading = true

+ 1 - 1
src/views/project/components/TotalChart.vue

@@ -90,7 +90,7 @@ export default {
         searchQuery:this.$commonJS.objectToString(this.searchOption),
         orderDTOList: [
           {
-            "orderBy": "createTime",
+            "orderBy": item.value,
             "orderType": 1
           } 
         ],//排序

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

@@ -275,7 +275,12 @@ export default {
       let params = {
         ...this.queryParams,//分页信息
         searchQuery: this.$commonJS.objectToString(this.searchOption),//检索条件
-        orderDTOList: this.sort,//排序
+        orderDTOList: [
+          {
+            orderBy:this.group,
+            orderType:this.sort.orderType
+          }
+        ],//排序
         groupBy: this.group,//分组的值
       }
       this.loading = true

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

@@ -375,7 +375,12 @@ export default {
       let params = {
         ...this.queryParams,//分页信息
         searchQuery: this.$commonJS.objectToString(this.searchOption),//检索条件
-        orderDTOList: this.sort,//排序
+        orderDTOList: [
+          {
+            orderBy:this.groupingValue,
+            orderType:this.sort.orderType
+          }
+        ],//排序
         groupBy: this.groupingValue,//分组信息
       }
       this.$api.groupReportProject(params).then(res => {