Переглянути джерело

统计页面undefined问题

soft5566 1 рік тому
батько
коміт
3ac652f555
1 змінених файлів з 3 додано та 3 видалено
  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 !== '') {