功能: 完善风电功率方案计算
- 新增计算方案保存与方案二筛选参数 - 支持方案二桨角规则和有效数据导出 - 优化功率曲线绘制和设计功率展示
This commit is contained in:
@@ -54,6 +54,27 @@ export function getHealth() {
|
||||
return request('/system/health');
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取计算方案列表
|
||||
* @returns {Promise<{default_scheme_id: string, schemes: Array<object>}>}
|
||||
*/
|
||||
export function getWindSchemes() {
|
||||
return request('/wind/schemes');
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存计算方案描述
|
||||
* @param {string} schemeId
|
||||
* @param {{description: string}} payload
|
||||
* @returns {Promise<{scheme: object}>}
|
||||
*/
|
||||
export function saveWindSchemeDescription(schemeId, payload) {
|
||||
return request(`/wind/schemes/${encodeURIComponent(schemeId)}/description`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(payload),
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建风功率计算任务
|
||||
* @param {{files: Array<{file_name: string, row_count: number}>, mapping: object}} payload
|
||||
|
||||
Reference in New Issue
Block a user