无人机管理后台前端(已迁走)
chenyao
2025-12-06 2f652f22c7e46d73aff2053685f41665d1ece88f
src/views/job/components/SearchBox.vue
@@ -318,7 +318,7 @@
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) {
@@ -464,13 +464,15 @@
    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>