diff --git a/src/utils/trainingOutcomePdf.js b/src/utils/trainingOutcomePdf.js index 4b510b3..70e2513 100644 --- a/src/utils/trainingOutcomePdf.js +++ b/src/utils/trainingOutcomePdf.js @@ -850,7 +850,7 @@ export function collectTrainingOutcomeDetails(task, studentAnswer) { const content = readableContent(nodes[index]); return { name, - content: content.text || (content.tables.length ? "" : "当前步骤内容以页面实训说明为准。"), + content: content.text || (content.tables.length ? "" : "本步骤内容以页面实训说明为准。"), tables: content.tables, answers: domAnswers[index]?.length ? domAnswers[index] : savedAnswers[index], }; @@ -894,7 +894,7 @@ function createPrintDocument(task) { const title = normalizeText(task?.taskName || task?.title || "实训成果"); const objectives = normalizeList(task?.objectives); const steps = normalizeList(task?.steps); - const stepDetails = Array.isArray(task?.stepDetails) && task.stepDetails.length ? task.stepDetails : steps.map((name) => ({ name, content: "当前步骤内容以页面实训说明为准。", tables: [], answers: [] })); + const stepDetails = Array.isArray(task?.stepDetails) && task.stepDetails.length ? task.stepDetails : steps.map((name) => ({ name, content: "本步骤内容以页面实训说明为准。", tables: [], answers: [] })); const generatedAt = new Intl.DateTimeFormat("zh-CN", { year: "numeric", month: "2-digit", diff --git a/src/views/AI/index.vue b/src/views/AI/index.vue index 1d1e2a8..1a75d4f 100644 --- a/src/views/AI/index.vue +++ b/src/views/AI/index.vue @@ -758,7 +758,7 @@ const onClick = (type, idx) => { inputMessage.value = type.com } } - currentNode.value = type //记录当前步骤节点 + currentNode.value = type //记录步骤节点 scrollToElement(type.name) } const changeTab = (type) => { diff --git a/src/views/assessment/diagnosis.vue b/src/views/assessment/diagnosis.vue index cac039e..6843990 100644 --- a/src/views/assessment/diagnosis.vue +++ b/src/views/assessment/diagnosis.vue @@ -483,7 +483,7 @@ function runSentimentAnalysis() { })) proxy?.$modal?.msgSuccess?.("情感评论数量与占比已自动计算") } -async function saveStepTwoDraft() { if (saving.value) return false; saving.value = true; try { await saveStudentTrainingAnswer(TASK_KEY, { step2Answer: JSON.stringify(buildStepTwo()), currentStep: 2, submitted: false, saveAction: "SAVE" }); proxy?.$modal?.msgSuccess?.("当前步骤已保存"); return true } catch (error) { proxy?.$modal?.msgError?.(error?.message || "保存失败,请重试"); return false } finally { saving.value = false } } async function validateStepTwo() { if (saving.value) return false; saving.value = true; try { const data = buildStepTwo(); await validateProductDiagnosisIterationStepTwo(buildStepTwoValidationPayload(data)); await saveStudentTrainingAnswer(TASK_KEY, { step2Answer: JSON.stringify(data), currentStep: 2, submitted: false, saveAction: "SAVE" }); proxy?.$modal?.msgSuccess?.("第 2 步校验通过,已保存"); return true } catch (error) { proxy?.$modal?.msgError?.(diagnosisErrorMessage(error, "请检查词云、情感占比和根因分析")); return false } finally { saving.value = false } } +async function saveStepTwoDraft() { if (saving.value) return false; saving.value = true; try { await saveStudentTrainingAnswer(TASK_KEY, { step2Answer: JSON.stringify(buildStepTwo()), currentStep: 2, submitted: false, saveAction: "SAVE" }); proxy?.$modal?.msgSuccess?.("已保存"); return true } catch (error) { proxy?.$modal?.msgError?.(error?.message || "保存失败,请重试"); return false } finally { saving.value = false } } async function validateStepTwo() { if (saving.value) return false; saving.value = true; try { const data = buildStepTwo(); await validateProductDiagnosisIterationStepTwo(buildStepTwoValidationPayload(data)); await saveStudentTrainingAnswer(TASK_KEY, { step2Answer: JSON.stringify(data), currentStep: 2, submitted: false, saveAction: "SAVE" }); proxy?.$modal?.msgSuccess?.("第 2 步校验通过,已保存"); return true } catch (error) { proxy?.$modal?.msgError?.(diagnosisErrorMessage(error, "请检查词云、情感占比和根因分析")); return false } finally { saving.value = false } } function clearAbChart() { if (abChart.value.url.startsWith("blob:")) URL.revokeObjectURL(abChart.value.url); abChart.value = { url: "", name: "" } } async function handleAbChartUpload(event) { const file = event.target?.files?.[0]; if (!file) return; const accepted = ["image/jpeg", "image/png", "image/webp"]; if (!accepted.includes(file.type) || file.size > 5 * 1024 * 1024) { proxy?.$modal?.msgError?.("请上传不超过 5MB 的 PNG、JPG 或 WEBP 图片"); event.target.value = ""; return } uploading.value = true; try { let url = ""; if (isStudentDemo()) url = URL.createObjectURL(file); else { const data = new FormData(); data.append("file", file); const response = await uploadStudentTrainingFile(data); url = response?.url || response?.data?.url || "" } if (!url) throw new Error("上传成功但未返回图片地址"); clearAbChart(); abChart.value = { url, name: file.name }; proxy?.$modal?.msgSuccess?.("AB 测试结果对比图上传成功,可点击图片预览") } catch (error) { proxy?.$modal?.msgError?.(error?.message || "图片上传失败,请重试") } finally { uploading.value = false; event.target.value = "" } } async function saveStepThreeDraft() { if (saving.value) return; saving.value = true; try { await saveStudentTrainingAnswer(TASK_KEY, { step3Answer: JSON.stringify(buildStepThree()), currentStep: 3, submitted: false, saveAction: "SAVE" }); proxy?.$modal?.msgSuccess?.("草稿已保存") } catch (error) { proxy?.$modal?.msgError?.(error?.message || "保存失败,请重试") } finally { saving.value = false } } @@ -1713,7 +1713,7 @@ button.is-disabled { } } - /* 当前步骤:教育蓝实底 */ + /* 步骤:教育蓝实底 */ &.active { border-color: #2563eb !important; background: #2563eb !important; diff --git a/src/views/assessment/optimization.vue b/src/views/assessment/optimization.vue index acb3293..99b3796 100644 --- a/src/views/assessment/optimization.vue +++ b/src/views/assessment/optimization.vue @@ -1588,7 +1588,7 @@ button:disabled { } } - /* 当前步骤:教育蓝实底 */ + /* 步骤:教育蓝实底 */ &.active { border-color: #2563eb !important; background: #2563eb !important; diff --git a/src/views/channel/supplier.vue b/src/views/channel/supplier.vue index 4c5011c..8397397 100644 --- a/src/views/channel/supplier.vue +++ b/src/views/channel/supplier.vue @@ -507,7 +507,7 @@ async function saveStepOne(advance = false) { currentStep.value = 2 ElMessage.success("权重已保存,请继续完成渠道评分") } else { - ElMessage.success("当前步骤已保存") + ElMessage.success("已保存") } } catch (error) { ElMessage.error(error?.message || "保存失败,请检查权重填写") diff --git a/src/views/demand/competitive-environment-analysis.vue b/src/views/demand/competitive-environment-analysis.vue index bf89ee2..5d0905d 100644 --- a/src/views/demand/competitive-environment-analysis.vue +++ b/src/views/demand/competitive-environment-analysis.vue @@ -32,7 +32,7 @@ :class="['step-tab', { active: currentStep === index + 1, complete: currentStep > index + 1 }]" @click="switchStep(index + 1)">{{ String(index + 1).padStart(2, '0') }}{{ step }}{{ currentStep - === index + 1 ? '当前步骤' : '点击切换' }} →
diff --git a/src/views/demand/consumer-behavior.vue b/src/views/demand/consumer-behavior.vue index 75038db..22bdf1f 100644 --- a/src/views/demand/consumer-behavior.vue +++ b/src/views/demand/consumer-behavior.vue @@ -348,7 +348,7 @@
- @@ -1079,7 +1079,7 @@ function exportOutcome() { const lines = [ `任务:${taskTitle.value}`, "", - `当前步骤:${flowSteps.value[form.value.activeStep] || ""}`, + `步骤:${flowSteps.value[form.value.activeStep] || ""}`, "", "问卷调查目标人群与核心假设:", ...form.value.targetHypotheses.map((item, index) => `${index + 1}. 目标人群:${item.targetGroup || ""}\n实训8关键发现:${item.keyFinding || ""}\n核心假设:${item.coreHypothesis || ""}`), diff --git a/src/views/demand/consumer-scenario.vue b/src/views/demand/consumer-scenario.vue index 4450d86..701888f 100644 --- a/src/views/demand/consumer-scenario.vue +++ b/src/views/demand/consumer-scenario.vue @@ -35,7 +35,7 @@ {{ String(index + 1).padStart(2, '0') }} {{ step }} - {{ form.activeStep === index + 1 ? "当前步骤" : "点击切换" }} {{ form.activeStep === index + 1 ? "" : "" }} @@ -251,7 +251,7 @@ - @@ -1908,7 +1908,7 @@ function exportOutcome() { } } - /* 当前步骤 */ + /* 步骤 */ &.active { border-color: #2563eb !important; background: #2563eb !important; diff --git a/src/views/demand/environment.vue b/src/views/demand/environment.vue index 4de9528..119484b 100644 --- a/src/views/demand/environment.vue +++ b/src/views/demand/environment.vue @@ -37,7 +37,7 @@ {{ step }} - {{ currentStep === index + 1 ? '当前步骤' : '点击切换' }} {{ currentStep === index + 1 ? '' : '' }} diff --git a/src/views/demand/feature-conversion.vue b/src/views/demand/feature-conversion.vue index c5bf5a0..4e0e8b9 100644 --- a/src/views/demand/feature-conversion.vue +++ b/src/views/demand/feature-conversion.vue @@ -35,7 +35,7 @@ {{ String(index + 1).padStart(2, '0') }} {{ step }} - {{ form.activeStep === index + 1 ? "当前步骤" : "点击切换" }} {{ form.activeStep === index + 1 ? "" : "" }} diff --git a/src/views/demand/index.vue b/src/views/demand/index.vue index 611489c..1d8ec76 100644 --- a/src/views/demand/index.vue +++ b/src/views/demand/index.vue @@ -37,7 +37,7 @@ {{ step }} - {{ currentStep === index + 1 ? "当前步骤" : "点击切换" }} {{ currentStep === index + 1 ? "" : "" }} diff --git a/src/views/demand/industry-demand-analysis.vue b/src/views/demand/industry-demand-analysis.vue index e3c5fdc..5675ec1 100644 --- a/src/views/demand/industry-demand-analysis.vue +++ b/src/views/demand/industry-demand-analysis.vue @@ -34,7 +34,7 @@ @click="switchStep(index + 1)"> {{ String(index + 1).padStart(2, '0') }} {{ step }}{{ currentStep === index + 1 ? '当前步骤' : '点击切换' }} + class="step-action">{{ currentStep === index + 1 ? '' : '' }} → @@ -370,9 +370,9 @@ async function saveCurrentProgress(showMessage = true) { if (currentStep.value === 2) stepTwoPassed.value = true if (currentStep.value === 3) stepThreePassed.value = true clearDraft() - if (showMessage) proxy?.$modal?.msgSuccess("当前步骤已保存") + if (showMessage) proxy?.$modal?.msgSuccess("已保存") return true - } catch (error) { proxy?.$modal?.msgError?.(error?.message || "请完整填写当前步骤内容"); return false } finally { saving.value = false } + } catch (error) { proxy?.$modal?.msgError?.(error?.message || "请完整填写本步骤内容"); return false } finally { saving.value = false } } function previousStep() { if (currentStep.value > 1) currentStep.value -= 1 } async function nextStep() { if (currentStep.value < trainingSteps.value.length && await saveCurrentProgress(false)) currentStep.value += 1 } diff --git a/src/views/demand/people.vue b/src/views/demand/people.vue index 16b9ca8..dd781e8 100644 --- a/src/views/demand/people.vue +++ b/src/views/demand/people.vue @@ -342,7 +342,7 @@ - diff --git a/src/views/foundation/new-product-survey.vue b/src/views/foundation/new-product-survey.vue index 3bbcbe7..62a8dd8 100644 --- a/src/views/foundation/new-product-survey.vue +++ b/src/views/foundation/new-product-survey.vue @@ -453,10 +453,10 @@ const stepOneQuestions = computed(() => parseStepOneChoiceQuestions(taskConfig.v const currentStudyTip = computed(() => { const tips = { - 1: "当前步骤建议:先从案例或电商详情页中拆出核心层、有形层、延伸层,不要把功能和用户利益混在一起。", - 2: "当前步骤建议:选择一个主流电商平台与真实 AI 产品,用“核心词 + 属性词 + 场景词”搜索并保留主图、详情页截图。", - 3: "当前步骤建议:将上一步选定产品的卖点按核心层、有形层、延伸层拆分,每层至少记录两条可核对的分析要点。", - 4: "当前步骤建议:把前面三步的发现收束为产品开发启发,说明哪些价值值得继续强化。", + 1: "建议:先从案例或电商详情页中拆出核心层、有形层、延伸层,不要把功能和用户利益混在一起。", + 2: "建议:选择一个主流电商平台与真实 AI 产品,用“核心词 + 属性词 + 场景词”搜索并保留主图、详情页截图。", + 3: "建议:将上一步选定产品的卖点按核心层、有形层、延伸层拆分,每层至少记录两条可核对的分析要点。", + 4: "建议:把前面三步的发现收束为产品开发启发,说明哪些价值值得继续强化。", } return tips[currentStep.value] }) diff --git a/src/views/foundation/product-development-factors.vue b/src/views/foundation/product-development-factors.vue index 56b958a..5b20074 100644 --- a/src/views/foundation/product-development-factors.vue +++ b/src/views/foundation/product-development-factors.vue @@ -1258,7 +1258,7 @@ async function nextStep() { } } - /* 当前步骤:教育蓝实底白字,白色编号徽章蓝字 */ + /* 步骤:教育蓝实底白字,白色编号徽章蓝字 */ &.active { border-color: #2563eb !important; background: #2563eb !important; diff --git a/src/views/foundation/product-development-process.vue b/src/views/foundation/product-development-process.vue index 1a0e308..8a1d54a 100644 --- a/src/views/foundation/product-development-process.vue +++ b/src/views/foundation/product-development-process.vue @@ -1705,7 +1705,7 @@ tr.is-incorrect .classification-feedback { } } - /* 当前步骤:教育蓝实底白字 */ + /* 步骤:教育蓝实底白字 */ &.active { border-color: #2563eb !important; background: #2563eb !important; diff --git a/src/views/product/after-sales-service.vue b/src/views/product/after-sales-service.vue index c57b393..30b402b 100644 --- a/src/views/product/after-sales-service.vue +++ b/src/views/product/after-sales-service.vue @@ -34,7 +34,7 @@ @click="switchStep(index + 1)"> {{ String(index + 1).padStart(2, '0') }} {{ step }}{{ currentStep === index + 1 ? '当前步骤' : '点击切换' }} + class="step-action">{{ currentStep === index + 1 ? '' : '' }} → @@ -1557,7 +1557,7 @@ button:disabled { } } - /* 当前步骤:教育蓝实底 */ + /* 步骤:教育蓝实底 */ &.active { border-color: #2563eb !important; background: #2563eb !important; diff --git a/src/views/product/components/ProductStandardTrainingPage.vue b/src/views/product/components/ProductStandardTrainingPage.vue index 33439de..ba4d79b 100644 --- a/src/views/product/components/ProductStandardTrainingPage.vue +++ b/src/views/product/components/ProductStandardTrainingPage.vue @@ -44,7 +44,7 @@ :aria-label="`第${index + 1}步:${step}`" @click="setCurrentStep(index + 1)"> {{ String(index + 1).padStart(2, '0') }} {{ step }}{{ activeStep === index + 1 ? "当前步骤" : "点击切换" }} {{ activeStep === index + 1 ? "" : "" }} {{ String(index + 1).padStart(2, '0') }} {{ step }} - {{ form.activeStep === index + 1 ? "当前步骤" : "点击切换" }} {{ form.activeStep === index + 1 ? "" : "" }} diff --git a/src/views/product/hardware-cost.vue b/src/views/product/hardware-cost.vue index bf00a27..9676263 100644 --- a/src/views/product/hardware-cost.vue +++ b/src/views/product/hardware-cost.vue @@ -35,7 +35,7 @@ @click="goToStepFromTab(index + 1)"> {{ step }}{{ currentStep === index + 1 ? '当前步骤' : '点击切换' }} {{ currentStep === index + 1 ? '' : '' }}