This commit is contained in:
yangsy
2025-09-10 15:01:29 +08:00
parent fda7c2c8ce
commit db7aab7880

View File

@@ -77,7 +77,7 @@ const stationSelectOptions = computed(() => {
const searchFields = reactive({
stationCode: undefined as string | undefined,
logType_in: [] as number[],
createdTime: [dayjs().startOf('date').subtract(7, 'day').format('YYYY-MM-DD HH:mm:ss'), dayjs().endOf('date').format('YYYY-MM-DD HH:mm:ss')] as [string, string],
createdTime: [dayjs().startOf('date').subtract(1, 'week').format('YYYY-MM-DD HH:mm:ss'), dayjs().endOf('date').format('YYYY-MM-DD HH:mm:ss')] as [string, string],
});
const resetSearchFields = () => {
searchFields.stationCode = stationList.value.find((station) => station.online)?.code;