From 805fcd4d881ac13d0fe9961076ead66a71c20b2d Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期六, 28 十月 2023 18:12:21 +0800
Subject: [PATCH] 10.28
---
admin/src/views/business/wxBillDetail.vue | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/admin/src/views/business/wxBillDetail.vue b/admin/src/views/business/wxBillDetail.vue
index cca6660..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>
@@ -66,6 +67,7 @@
import TableLayout from '@/layouts/TableLayout'
import { fetchList } from '@/api/business/wxBillDetail'
import BillDetailWindow from '@/components/business/BillDetailWindow'
+import { formatDateTime } from '@/utils/util'
export default {
name: 'WxBillDetail',
extends: BaseTable,
@@ -78,6 +80,7 @@
endDate: '',
startDate: '',
},
+ pickerOptions: {}
}
},
created () {
@@ -87,6 +90,16 @@
'field.id': 'id',
'field.main': 'id'
})
+ 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: {
@@ -94,6 +107,7 @@
this.searchForm.startDate = ''
this.searchForm.endDate = ''
this.value1 = []
+ this.$refs.searchForm.resetFields()
this.search()
},
--
Gitblit v1.9.3