| | |
| | | let timeList = ['today', 'week', 'month', 'year']; |
| | | let timeListStr = ['今日', '本周', '本月', '本年']; |
| | | let timeListEnum = ['TODAY', 'CURRENT_WEEK', 'CURRENT_MONTH', 'CURRENT_YEAR']; |
| | | let checked = ref('month'); |
| | | let checked = ref(''); |
| | | |
| | | // 根据 周期 获取时间段 |
| | | function getDateRange(date_enum) { |
| | |
| | | const dateArray = [date, date]; |
| | | |
| | | dateRange.value = dateArray; |
| | | searchForm.date_enum = '' |
| | | const find = store.state.tags.bsTagList.find(i => i.path === '/job/jobstatistics') |
| | | find && (find.query = {}) |
| | | } else { |
| | | checked.value = 'month' |
| | | getDateRange('month') |
| | | } |
| | | // 查询一次 |
| | | handleSearch() |
| | | // 查询一次 |
| | | // handleSearch() |
| | | }); |
| | | </script> |
| | | <style lang="scss"></style> |