From a98aa2989939aeed97c3d3d0703e867ca8dded38 Mon Sep 17 00:00:00 2001 From: chenyuan Date: Fri, 7 Aug 2026 19:36:28 +0800 Subject: [PATCH] feat: add market opportunity selection step four --- src/api/studentTrainingAnswer.js | 9 ++++++ .../product/market-opportunity-selection.vue | 30 +++++++++++++++---- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/src/api/studentTrainingAnswer.js b/src/api/studentTrainingAnswer.js index 00a5308..4be51d4 100644 --- a/src/api/studentTrainingAnswer.js +++ b/src/api/studentTrainingAnswer.js @@ -136,6 +136,15 @@ export function checkMarketOpportunitySelectionStepThree(payload) { return request({ url: "/api/student-training-answers/market-opportunity-selection/step-3/validate", method: "post", data: { scores }, headers: { repeatSubmit: false } }); } +export function checkMarketOpportunitySelectionStepFour(payload) { + const visualizationUrl = String(payload?.visualizationUrl || "").trim(); + if (isStudentDemo()) { + if (!visualizationUrl) return Promise.reject(new Error("请上传数据可视化结果图")); + return Promise.resolve({ code: 200, data: { valid: true, message: "校验通过" } }); + } + return request({ url: "/api/student-training-answers/market-opportunity-selection/step-4/validate", method: "post", data: { visualizationUrl }, headers: { repeatSubmit: false } }); +} + function validateNewProductSurveyStepTwoDemo(form) { const value = form || {}; const images = Array.isArray(value.images) ? value.images : []; diff --git a/src/views/product/market-opportunity-selection.vue b/src/views/product/market-opportunity-selection.vue index 4dc7982..fb80dcb 100644 --- a/src/views/product/market-opportunity-selection.vue +++ b/src/views/product/market-opportunity-selection.vue @@ -29,6 +29,19 @@

推荐工具及方法如下,自行选择:

1. Excel/WPS 表格,自行操作计算,可参考《实训操作说明》完成。

2. 下载 Excel 模板,填写关键数据,完成指标计算。

3. 导出实训数据表,上传到通用 AI 大模型,参考提示词完成计算。

请根据数据表及各指标权重设定表,通过 Min-Max 归一法计算各二级指标得分,采用加权评分法计算综合得分。

+

第 {{ currentStep }} 步内容待配置

已保存的步骤可从上方步骤栏返回查看。
@@ -38,9 +51,10 @@