diff --git a/src/views/consume/bean/articleVideo.vue b/src/views/consume/bean/articleVideo.vue index 49a7a2c..caef933 100644 --- a/src/views/consume/bean/articleVideo.vue +++ b/src/views/consume/bean/articleVideo.vue @@ -6,7 +6,10 @@ import API from '@/util/http.js' import moment from 'moment' import { ar } from 'element-plus/es/locales.mjs' // 之后整理一下 - +const defaultTime = [ + new Date(2000, 1, 1, 0, 0, 0), + new Date(2000, 2, 1,23 , 59, 59), +] /* ====================工具方法============================== */ @@ -504,6 +507,7 @@ const getTagText = (state) => { style="width: 400px" @change="handleDatePickerChange" value-format="YYYY-MM-DD HH:mm:ss" + :default-time="defaultTime" /> diff --git a/src/views/consume/bean/dieHardFan.vue b/src/views/consume/bean/dieHardFan.vue index b98237c..9c871b6 100644 --- a/src/views/consume/bean/dieHardFan.vue +++ b/src/views/consume/bean/dieHardFan.vue @@ -12,7 +12,10 @@ import moment from 'moment' // 时间格式化 const formatTime = (val) => val ? dayjs(val).format('YYYY-MM-DD HH:mm:ss') : '' - +const defaultTime = [ + new Date(2000, 1, 1, 0, 0, 0), + new Date(2000, 2, 1,23 , 59, 59), +] /* ====================数据================================= */ @@ -499,6 +502,7 @@ const getTagText = (state) => { style="width: 400px" @change="handleDatePickerChange" value-format="YYYY-MM-DD HH:mm:ss" + :default-time="defaultTime" /> diff --git a/src/views/consume/bean/liveStream.vue b/src/views/consume/bean/liveStream.vue index 7d248b0..22510da 100644 --- a/src/views/consume/bean/liveStream.vue +++ b/src/views/consume/bean/liveStream.vue @@ -9,7 +9,10 @@ import moment from 'moment' /* ====================工具方法============================== */ - +const defaultTime = [ + new Date(2000, 1, 1, 0, 0, 0), + new Date(2000, 2, 1,23 , 59, 59), +] // 时间格式化 const formatTime = (val) => val ? dayjs(val).format('YYYY-MM-DD HH:mm:ss') : '' @@ -549,7 +552,7 @@ const getTagText = (state) => {
消费时间: + end-placeholder="结束时间" style="width: 400px" @change="handleDatePickerChange" :default-time="defaultTime"/> 充值时间: + @change="handleDatePickerChange" :default-time="defaultTime"/> diff --git a/src/views/recharge/beanSystemRecharge.vue b/src/views/recharge/beanSystemRecharge.vue index 619311f..5141fdb 100644 --- a/src/views/recharge/beanSystemRecharge.vue +++ b/src/views/recharge/beanSystemRecharge.vue @@ -17,7 +17,10 @@ const selectData = ref({ const permanentBeans = ref(0) const beanNum = ref(0) const money = ref(0) - +const defaultTime = [ + new Date(2000, 1, 1, 0, 0, 0), + new Date(2000, 2, 1,23 , 59, 59), +] //时间格式化 const formatTime = (val) => val ? moment(val).format('YYYY-MM-DD HH:mm:ss') : '' const tableData = ref([]) @@ -335,7 +338,7 @@ onMounted(async function () { 充值时间: + @change="handleDatePickerChange" :default-time="defaultTime"/>