style:甘特图查询时间默认本月

pull/1/head
黄伟杰 1 month ago
parent 2fb7265888
commit cca089efc4

@ -73,8 +73,8 @@ const scheduleList = ref<DevicePlanView[]>([])
const activeDevice = ref<DevicePlanView>() const activeDevice = ref<DevicePlanView>()
const buildDefaultRange = () => { const buildDefaultRange = () => {
const start = dayjs().startOf('day') const start = dayjs().startOf('month').startOf('day')
const end = start.add(7, 'day').endOf('day') const end = dayjs().endOf('month').endOf('day')
return [start.format('YYYY-MM-DD HH:mm:ss'), end.format('YYYY-MM-DD HH:mm:ss')] return [start.format('YYYY-MM-DD HH:mm:ss'), end.format('YYYY-MM-DD HH:mm:ss')]
} }

Loading…
Cancel
Save