Explorar el Código

报表导出优化

yangyd hace 3 años
padre
commit
b73b48adba
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/pages/main/antiSpoofing/standingBook.vue

+ 2 - 2
src/pages/main/antiSpoofing/standingBook.vue

@@ -136,8 +136,8 @@
             },
             outList() {
                 let param = new FormData();
-                let startDate = this.searchList[0].value ? this.$formatDate(this.searchList[0].value, "YYYY-MM") : '';
-                let endDate = this.searchList[1].value ? this.$formatDate(this.searchList[1].value, "YYYY-MM") : '';
+                let startDate = this.searchList[0].value ? this.$formatDate(this.searchList[0].value, "YYYY-MM") + '-01' : '';
+                let endDate = this.searchList[1].value ? this.$formatDate(this.searchList[1].value, "YYYY-MM") + '-01' : '';
                 param.append("startDate", startDate);
                 param.append("endDate", endDate);
                 this.$http({