From 6e78d2b1b00eceac3ee6222b713f749e21428f9a Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期一, 30 十月 2023 09:09:07 +0800 Subject: [PATCH] Merge branch 'dev' of http://139.186.142.91:10010/r/productDev/parkBike into dev --- admin/src/views/business/wxBillDetail.vue | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/admin/src/views/business/wxBillDetail.vue b/admin/src/views/business/wxBillDetail.vue index f152f2a..121ea0e 100644 --- a/admin/src/views/business/wxBillDetail.vue +++ b/admin/src/views/business/wxBillDetail.vue @@ -9,6 +9,7 @@ range-separator="鑷�" start-placeholder="寮�濮嬫棩鏈�" end-placeholder="缁撴潫鏃ユ湡" + :picker-options="pickerOptions" format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss" @change="selectDate" ></el-date-picker> @@ -73,12 +74,13 @@ components: { TableLayout, BillDetailWindow }, data () { return { - value1: [new Date(), new Date()], + value1: [], // 鎼滅储 searchForm: { endDate: '', startDate: '', }, + pickerOptions: {} } }, created () { @@ -88,7 +90,16 @@ 'field.id': 'id', 'field.main': 'id' }) - this.searchForm.startDate = formatDateTime(new Date(), 'yyyy-MM-dd') + ' 00:00:00' + this.pickerOptions.disabledDate = (time) => { + // 涓�澶� + let tempTime = 3600 * 1000 * 24 + return time.getTime() > new Date() - tempTime + } + // let tempTime = new Date().getTime() - 3600 * 1000 * 24 + // this.searchForm.startDate = formatDateTime(new Date(tempTime), 'yyyy-MM-dd') + ' 00:00:00' + // this.searchForm.endDate = formatDateTime(new Date(tempTime), 'yyyy-MM-dd') + ' 23:59:59' + // this.value1 = [this.searchForm.startDate, this.searchForm.endDate] + this.search() }, methods: { -- Gitblit v1.9.3