无人机管理后台前端(已迁走)
shuishen
2025-07-17 aed141813bc64c7afdf3a337d631585b0a3cf42e
src/views/job/components/TaskTop/TaskTotal.vue
@@ -51,13 +51,14 @@
   totalJobNum().then(res => {
      if (res.data.code !== 0) returen
      total.value = res.data.data.job_total_num
      numTotal.value = res.data.data.deal_job_num
   })
}
// 获取其他任务统计
const getJobStatistics = value => {
   jobStatistics(value).then(res => {
      if (res.data.code !== 0) returen
    const {executed = 0,failed_executions = 0,go_home_executions = 0} = res.data?.data || {}
    numTotal.value = executed + failed_executions + go_home_executions
      list.value[0].value = res.data.data.planned_executions || 0
      list.value[1].value = res.data.data.executed || 0
      list.value[2].value = res.data.data.running_num || 0
@@ -79,9 +80,6 @@
   { immediate: true,deep: true }
)
onMounted(() => {
   getTotalJobNum()
})
</script>
<style scoped lang="scss">
@@ -136,7 +134,7 @@
      height: 160px;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-content: space-evenly;
      .total {