无人机管理后台前端(已迁走)
罗广辉
2025-10-11 02409bfbe15f22fc3b5dccadabfd860a660a49d9
src/views/job/components/TaskTop/TaskTime.vue
@@ -31,6 +31,8 @@
      formatter: '{b}: {c} 件',
   },
   legend: {
      itemWidth: 8,
      itemHeight: 12,
      top: '2%',
      textStyle: {
         color: '#6B90B5',
@@ -121,21 +123,13 @@
   })
}
const changeKey = inject('changeKey')
// 添加监听
watch(
   () => store.state.task.taskSearchParams,
   newVal => {
      if (newVal) {
         getJobNumBar(newVal)
         newVal
      }
   },
   { deep: true }
  () => [store.state.task.taskSearchParams,changeKey.value],
  () => getJobNumBar(store.state.task.taskSearchParams),
  { deep: true }
)
onMounted(() => {
   getJobNumBar({ date_enum: 'TODAY' })
})
</script>
<style lang="scss" scoped>