From 03805f3cfd53cbb2f94e4b67bba4728ca22dfc80 Mon Sep 17 00:00:00 2001
From: jiaosong <jiaosong6760@dingtalk.com>
Date: 星期五, 03 十一月 2023 15:36:21 +0800
Subject: [PATCH] # log日志
---
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