diff --git a/event/web/src/App.vue b/event/web/src/App.vue index 8c4f812abc4c7c53f0ae9f7af2e6464c8ec3204b..da166cf28780eb435843eefc8d8fb265523e1b1c 100644 --- a/event/web/src/App.vue +++ b/event/web/src/App.vue @@ -8,6 +8,18 @@ @@ -36,6 +48,42 @@ const zhCn = ref(locale); const tableRef = ref() +const dateRange = ref('') + +const shortcuts = [ + { + text: '前1个周', + value: () => { + const end = new Date() + const start = new Date() + start.setDate(start.getDate() - 7) + return [start, end] + }, + }, + { + text: '前1个月', + value: () => { + const end = new Date() + const start = new Date() + start.setMonth(start.getMonth() - 1) + return [start, end] + }, + }, + { + text: '前3个月', + value: () => { + const end = new Date() + const start = new Date() + start.setMonth(start.getMonth() - 3) + return [start, end] + }, + }, +] +// 时间范围筛选 +const handleDate = (value:[Date]) => { + +} + // 输入框搜索方法 const input = ref(''); const handleSearch = () => {