Browse Source

统计页面undefined问题

soft5566 1 year atrás
parent
commit
3ac652f555
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/order/index.vue

+ 3 - 3
src/views/order/index.vue

@@ -720,11 +720,11 @@
 					rows: this.pagination_tongji.pageSize
 					rows: this.pagination_tongji.pageSize
 				}
 				}
 
 
-				if (this.formInline_tongji.date !== '' && this.formInline_tongji.date !== null) {
+				if (typeof this.formInline_tongji.date !== undefined && this.formInline_tongji.date !== '' && this.formInline_tongji.date !== null) {
 					data.date = this.formInline_tongji.date
 					data.date = this.formInline_tongji.date
 				} else {
 				} else {
-					let d = getDateComponents(new Date(), 'yyyy-mm-dd').date
-					this.formInline_tongji.date = data.date
+					let d = getDateComponents(new Date(), 'yyyy-mm-dd')
+					this.formInline_tongji.date = d.date
 				}
 				}
 
 
 				if (this.formInline_tongji.h_type !== '') {
 				if (this.formInline_tongji.h_type !== '') {