Explorar o código

统计页面undefined问题

soft5566 hai 1 ano
pai
achega
3ac652f555
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/views/order/index.vue

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

@@ -720,11 +720,11 @@
 					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
 				} 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 !== '') {