|
@@ -87,13 +87,13 @@ const handleSubmit = () => {
|
|
|
}
|
|
|
const formatter = (day) => {
|
|
|
if(day.length>0){
|
|
|
- return dayjs(day[0]).format('YYYY-MM-DD HH:mm')+" - " + dayjs(day[1]).format('YYYY-MM-DD HH:mm')
|
|
|
+ return dayjs(day[0]).format('YYYY-MM-DD')+" - " + dayjs(day[1]).format('YYYY-MM-DD')
|
|
|
}
|
|
|
}
|
|
|
const timeChange = (value) => {
|
|
|
console.log(value)
|
|
|
if(value.value.length>0){
|
|
|
- filterQuery.value.createTime = dayjs(value.value[0]).format('YYYY-MM-DD HH:mm:ss')+"," + dayjs(value.value[1]).format('YYYY-MM-DD HH:mm:ss')
|
|
|
+ filterQuery.value.createTime = dayjs(value.value[0]).format('YYYY-MM-DD HH:mm:ss')+"," + dayjs(value.value[1]).endOf('d').format('YYYY-MM-DD HH:mm:ss')
|
|
|
console.log(filterQuery.value)
|
|
|
}
|
|
|
}
|
|
@@ -151,7 +151,7 @@ onLoad(async (options?: Record<string | 'id', any>) => {
|
|
|
<wd-checkbox custom-class="w-50%!" :model-value="tag.value">{{ tag.label }}</wd-checkbox>
|
|
|
</template>
|
|
|
</wd-checkbox-group>
|
|
|
-
|
|
|
+
|
|
|
<SectionHeading title="时间区间"></SectionHeading>
|
|
|
<div class="flex items-center justify-between py-4">
|
|
|
<wd-calendar type="daterange" v-model="timeRange" :display-format="formatter" @confirm="timeChange" />
|