无人机管理后台前端(已迁走)
张含笑
2025-07-17 754156a5a5b8155a9114d375d2e734c6f9c9ae4e
feat:任务成果添加总数
1 files modified
6 ■■■■ changed files
src/views/wel/components/taskOutcome.vue 6 ●●●● patch | view | raw | blame | history
src/views/wel/components/taskOutcome.vue
@@ -3,7 +3,7 @@
    <div class="card-title">
      <div class="cardtotal">
        <p>任务成果</p>
        <span class="total-number">1856</span>
        <span class="total-number">{{totalNum}}</span>
        <p>个</p>
        <img @click="refresh" src="/src/assets/images/workbench/st1.svg" alt="" />
      </div>
@@ -37,6 +37,7 @@
  end_date: undefined,
  start_date: undefined,
});
const totalNum = ref(0)
const dateSelect = ref('CURRENT_YEAR');
const refresh = () => {
  params.value.dateEnum = 'CURRENT_YEAR';
@@ -172,6 +173,9 @@
    
    // 遍历所有月份
    list.forEach(month => {
    totalNum.value = month.total
      // 创建一个临时映射存储当月的数据
      const monthData = new Map();
      month.data.forEach(item => {