Browse Source

报表查询时间优化

yangyd 3 years ago
parent
commit
cdb7998da5

+ 1 - 1
src/pages/main/antiSpoofing/channel.vue

@@ -144,7 +144,7 @@
             //搜索数据
             searchInfo(v) {
                 this.params = new FormData();
-                this.params.append("date", v[0] ?  this.$formatDate(v[0], "YYYY-MM") : '');
+                this.params.append("date", v[0] ?  this.$formatDate(v[0], "YYYY-MM") + '-01' : '');
                 this.getList(this.params, this.pageSize);
             },
             //获取列表

+ 1 - 1
src/pages/main/antiSpoofing/districtCounty.vue

@@ -134,7 +134,7 @@
             //搜索数据
             searchInfo(v) {
                 this.params = new FormData();
-                this.params.append("date", v[0] ?  this.$formatDate(v[0], "YYYY-MM") : '');
+                this.params.append("date", v[0] ?  this.$formatDate(v[0], "YYYY-MM") + '-01'  : '');
                 this.getList(this.params, this.pageSize);
             },
             //获取列表

+ 1 - 1
src/pages/main/antiSpoofing/personnel.vue

@@ -141,7 +141,7 @@
             //搜索数据
             searchInfo(v) {
                 this.params = new FormData();
-                this.params.append("date", v[0] ?  this.$formatDate(v[0], "YYYY-MM") : '');
+                this.params.append("date", v[0] ?  this.$formatDate(v[0], "YYYY-MM") + '-01'  : '');
                 this.getList(this.params, this.pageSize);
             },
             //获取列表

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

@@ -95,7 +95,7 @@
             },
             handleClick(row){
                 window.sessionStorage.setItem("antiSpoofingSearchParams", JSON.stringify({
-                    queryTime:[this.$formatDate(this.searchList[0].value, "YYYY-MM"), this.$formatDate(this.searchList[1].value, "YYYY-MM")],
+                    queryTime:[this.$formatDate(this.searchList[0].value, "YYYY-MM") + '-01', this.$formatDate(this.searchList[1].value, "YYYY-MM") + '-01'],
                     city:row.cityName
                 }))
                 this.$router.push({
@@ -105,8 +105,8 @@
             //搜索数据
             searchInfo(v) {
                 this.params = new FormData();
-                this.params.append("startDate", v[0] ?  this.$formatDate(v[0], "YYYY-MM") : '');
-                this.params.append("endDate", v[1] ? this.$formatDate(v[1], "YYYY-MM") : '');
+                this.params.append("startDate", v[0] ?  this.$formatDate(v[0], "YYYY-MM") + '-01'  : '');
+                this.params.append("endDate", v[1] ? this.$formatDate(v[1], "YYYY-MM") + '-01'  : '');
                 this.getList(this.params, this.pageSize);
             },
             //获取列表