Ver código fonte

修改导出

zx 2 meses atrás
pai
commit
e71937faa3

+ 7 - 1
src/views/distributionnetwork/vehicle-monitoring/long-term-inactivity/index.vue

@@ -237,7 +237,13 @@ export default {
     },
     async handleExport() {
       const res = await exportVehicleAlarmHist({
-        ...this.queryParams,
+        pageNum: this.queryParams.pageNum,
+        pageSize: this.queryParams.pageSize,
+        vehicleNo:this.queryParams.vehicleNo,
+        vehicleGroup:this.queryParams.vehicleGroup,
+        alarmCd: this.queryParams.alarmCd,
+        startDate: this.queryParams.monitorDate[0],
+        endDate: this.queryParams.monitorDate[1]
       });
       if (res) {
         const elink = document.createElement("a");

+ 7 - 1
src/views/distributionnetwork/vehicle-monitoring/no-traveling-recod/index.vue

@@ -236,7 +236,13 @@ export default {
     //导出
     async handleExport() {
       const res = await exportVehicleAlarmHist({
-        ...this.queryParams,
+       pageNum: this.queryParams.pageNum,
+       pageSize: this.queryParams.pageSize,
+       vehicleNo:this.queryParams.vehicleNo,
+       vehicleGroup:this.queryParams.vehicleGroup,
+       alarmCd: this.queryParams.alarmCd,
+       startDate: this.queryParams.monitorDate[0],
+       endDate: this.queryParams.monitorDate[1]
       });
       if (res) {
         const elink = document.createElement("a");

+ 7 - 1
src/views/distributionnetwork/vehicle-monitoring/no-work-recod/index.vue

@@ -237,7 +237,13 @@ export default {
     //导出
     async handleExport() {
       const res = await exportVehicleAlarmHist({
-        ...this.queryParams,
+        pageNum: this.queryParams.pageNum,
+        pageSize: this.queryParams.pageSize,
+        vehicleNo:this.queryParams.vehicleNo,
+        vehicleGroup:this.queryParams.vehicleGroup,
+        alarmCd: this.queryParams.alarmCd,
+        startDate: this.queryParams.monitorDate[0],
+	      endDate: this.queryParams.monitorDate[1]
       });
       if (res) {
         const elink = document.createElement("a");