无人机管理后台前端(已迁走)
chenyao
2025-12-06 9fd78e3b40529514636b9a67f0858ff9b9882841
feat:更新个人工作台点击日期进入任务管理查询条件只有搜索日期有值
2 files modified
10 ■■■■■ changed files
src/views/job/components/SearchBox.vue 8 ●●●●● patch | view | raw | blame | history
src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue 2 ●●● patch | view | raw | blame | history
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>
src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue
@@ -273,7 +273,7 @@
})
onBeforeUnmount(() => {
  clearInterval(polling)
  // clearInterval(polling)
})
onMounted(() => {