riku
2024-10-10 46566d05cb156d40323078133191595d2a2f11c4
src/api/fysp/taskApi.js
@@ -9,6 +9,22 @@
  },
  /**
   * 获取总任务的监管场景版本信息
   */
  fetchMonitorObjectVersion(taskId) {
    return $fysp.get(`monitorobjectversion/task/${taskId}`).then((res) => res.data);
  },
  /**
   * 查询总任务
   * @param {Object} param
   * @returns
   */
  fetchTopTasks(param) {
    return $fysp.post('task/find', param).then((res) => res.data);
  },
  /**
   * 获取子任务统计信息
   */
  getSubtaskSummary({ topTaskId = undefined, sceneTypeId = undefined }) {
@@ -16,8 +32,8 @@
      .get('subtask/summary', {
        params: {
          topTaskId: topTaskId,
          sceneTypeId: sceneTypeId,
        },
          sceneTypeId: sceneTypeId
        }
      })
      .then((res) => res.data);
  },
@@ -29,9 +45,9 @@
    return $fysp
      .get('problemlist/subtask', {
        params: {
          stGuid: id,
        },
          stGuid: id
        }
      })
      .then((res) => res.data);
  },
  }
};