@ -21,26 +21,22 @@
< / div >
< / div >
< / section >
< / section >
< section class = "factors-workbench" >
< section class = "task-action-strip" >
< div class = "workbench-head workbench-head--actions-only" >
< TrainingTaskToolbar
< div class = "workbench-actions" >
: task - key = "TASK_KEY"
< TrainingMaterialButton
: material - name = "taskConfig?.materialName"
: material - name = "taskConfig?.materialName"
: material - url = "taskConfig?.materialUrl"
: material - url = "taskConfig?.materialUrl"
: training - data - name = "taskConfig?.trainingDataName"
: training - data - name = "taskConfig?.trainingDataName"
: training - data - url = "taskConfig?.trainingDataUrl"
: training - data - url = "taskConfig?.trainingDataUrl"
: guide - manual - name = "taskConfig?.guideManualName"
: guide - manual - name = "taskConfig?.guideManualName"
: guide - manual - url = "taskConfig?.guideManualUrl"
: guide - manual - url = "taskConfig?.guideManualUrl"
: ai - manual - name = "taskConfig?.aiManualName"
: ai - manual - name = "taskConfig?.aiManualName"
: ai - manual - url = "taskConfig?.aiManualUrl"
: ai - manual - url = "taskConfig?.aiManualUrl"
: on - export = "exportOutcome"
/ >
/ >
< button type = "button" class = "outline-action" @click ="exportOutcome" >
< / section >
< el -icon > < Download / > < / e l - i c o n >
导出实训成果
< / button >
< / div >
< / div >
< section class = "factors-workbench" >
< nav v-if ="trainingSteps.length" class="step-indicator" aria-label="实训步骤" >
< nav v-if ="trainingSteps.length" class="step-indicator" aria-label="实训步骤" >
< button
< button
v - for = "(step, index) in trainingSteps"
v - for = "(step, index) in trainingSteps"
@ -134,7 +130,6 @@
< p class = "factor-intro" > 结合案例信息及前述步骤 , 分析案例资料中产品一成功的关键因素是什么 , 产品二失败的关键因素是什么 。 < / p >
< p class = "factor-intro" > 结合案例信息及前述步骤 , 分析案例资料中产品一成功的关键因素是什么 , 产品二失败的关键因素是什么 。 < / p >
< label class = "factor-intro" > 产品成功的关键因素 : < / label > < textarea v -model = " stepFourForm.successFactors " class = "table-textarea summary-textarea" / >
< label class = "factor-intro" > 产品成功的关键因素 : < / label > < textarea v -model = " stepFourForm.successFactors " class = "table-textarea summary-textarea" / >
< label class = "factor-intro" > 产品失败的关键因素 : < / label > < textarea v -model = " stepFourForm.failedFactors " class = "table-textarea summary-textarea" / >
< label class = "factor-intro" > 产品失败的关键因素 : < / label > < textarea v -model = " stepFourForm.failedFactors " class = "table-textarea summary-textarea" / >
< div class = "task-actions" > < button type = "button" class = "btn-nav btn-submit" :disabled ="saving" @click ="submitTraining" > 提 交 任 务 < el -icon > < CircleCheck / > < / e l - i c o n > < / b u t t o n > < b u t t o n t y p e = " b u t t o n " c l a s s = " b t n - n a v " : d i s a b l e d = " s a v i n g " @ c l i c k = " r e s e t T r a i n i n g " > 清 空 填 写 < / b u t t o n > < / d i v >
< / template >
< / template >
< div v -else class = "step-placeholder" >
< div v -else class = "step-placeholder" >
< p > 第 { { currentStep + 1 } } 步内容待配置 < / p >
< p > 第 { { currentStep + 1 } } 步内容待配置 < / p >
@ -155,13 +150,13 @@
< / template >
< / template >
< script setup >
< script setup >
import { ArrowRight , CircleCheck , Download, Operation, RefreshLeft } from "@element-plus/icons-vue" ;
import { ArrowRight , CircleCheck , Operation, RefreshLeft } from "@element-plus/icons-vue" ;
import { getTrainingTaskByKey } from "@/api/trainingTask" ;
import { getTrainingTaskByKey } from "@/api/trainingTask" ;
import { parseTrainingArray } from "@/views/training/taskKeyMap" ;
import { parseTrainingArray } from "@/views/training/taskKeyMap" ;
import { checkProductDevelopmentFactorsStepOne , checkProductDevelopmentFactorsStepTwo , checkProductDevelopmentFactorsStepThree , checkProductDevelopmentFactorsStepFour , getStudentTrainingAnswer , saveStudentTrainingAnswer } from "@/api/studentTrainingAnswer" ;
import { checkProductDevelopmentFactorsStepOne , checkProductDevelopmentFactorsStepTwo , checkProductDevelopmentFactorsStepThree , checkProductDevelopmentFactorsStepFour , getStudentTrainingAnswer , saveStudentTrainingAnswer } from "@/api/studentTrainingAnswer" ;
import useUserStore from "@/store/modules/user" ;
import useUserStore from "@/store/modules/user" ;
import TrainingAiSidebar from "@/views/components/TrainingAiSidebar.vue" ;
import TrainingAiSidebar from "@/views/components/TrainingAiSidebar.vue" ;
import Training MaterialButton from "@/views/components/TrainingMaterialButton .vue";
import Training TaskToolbar from "@/views/components/TrainingTaskToolbar .vue";
const { proxy } = getCurrentInstance ( ) ;
const { proxy } = getCurrentInstance ( ) ;
const TASK _KEY = "product-development-factors" ;
const TASK _KEY = "product-development-factors" ;
@ -651,21 +646,28 @@ function exportOutcome() {
}
}
}
}
/* 仅含操作按钮的头部:右对齐,无分隔线 */
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
. workbench - head -- actions - only {
* 操作工具栏横条 : 独立白卡 + 吸顶 + 按钮组右对齐
display : flex ;
* === === === === === === === === === === === === === === === === === === === === * /
justify - content : flex - end ;
. task - action - strip {
margin - bottom : 10 px ;
position : sticky ;
padding - bottom : 0 ;
top : 12 px ;
border - bottom : 0 ;
z - index : 10 ;
}
margin : 0 ;
padding : 10 px 16 px ;
. workbench - actions {
border : 1 px solid var ( -- student - panel - border ) ;
display : flex ;
border - radius : 12 px ;
flex : 0 0 auto ;
background : var ( -- student - card - bg ) ;
flex - wrap : wrap ;
box - shadow : 0 2 px 8 px rgba ( 37 , 99 , 235 , 0.08 ) ;
justify - content : flex - end ;
transition : box - shadow 0.2 s ease ;
gap : 8 px ;
: deep ( . training - task - toolbar ) {
display : flex ;
flex - wrap : wrap ;
align - items : center ;
justify - content : flex - end ;
gap : 8 px ;
}
}
}
/* 步骤导航(极简文字下划线)的换肤见非 scoped 块 */
/* 步骤导航(极简文字下划线)的换肤见非 scoped 块 */
@ -916,36 +918,6 @@ function exportOutcome() {
}
}
}
}
/* 工作台顶部"导出实训成果"按钮:白底教育蓝描边次按钮 */
. outline - action {
display : inline - flex ;
align - items : center ;
justify - content : center ;
gap : 7 px ;
min - height : 36 px ;
height : 36 px ;
padding : 0 14 px ;
border : 1 px solid rgba ( 37 , 99 , 235 , 0.35 ) ;
border - radius : 8 px ;
color : # 2563 eb ;
background : # ffffff ;
font - family : inherit ;
font - size : 13 px ;
font - weight : 600 ;
line - height : 1 ;
cursor : pointer ;
transition : border - color 0.16 s ease , background 0.16 s ease , color 0.16 s ease , box - shadow 0.16 s ease ;
& : hover {
border - color : # 2563 eb ;
color : # 2563 eb ;
background : # eff6ff ;
box - shadow : 0 2 px 6 px rgba ( 37 , 99 , 235 , 0.12 ) ;
}
}
/* 案例资料按钮( TrainingMaterialButton 子组件)的换肤见非 scoped 块 */
@ media ( max - width : 900 px ) {
@ media ( max - width : 900 px ) {
/* 窄屏全宽规则的强制覆盖见非 scoped 块( scoped 打不赢全局 !important) */
/* 窄屏全宽规则的强制覆盖见非 scoped 块( scoped 打不赢全局 !important) */
@ -960,44 +932,6 @@ function exportOutcome() {
< style lang = "scss" >
< style lang = "scss" >
/* ===== AI 侧栏样式已收敛进 TrainingAiSidebar 组件(教育蓝极简),此处不再覆盖 ===== */
/* ===== AI 侧栏样式已收敛进 TrainingAiSidebar 组件(教育蓝极简),此处不再覆盖 ===== */
/* ===== 共用组件换肤: TrainingMaterialButton 资料按钮 → 教育蓝 ===== */
. product - factors . workbench - actions . material - button . el - button {
height : 34 px ! important ;
min - height : 34 px ! important ;
border : 1 px solid rgba ( 37 , 99 , 235 , 0.35 ) ! important ;
border - radius : 8 px ! important ;
color : # 2563 eb ! important ;
background : # ffffff ! important ;
font - size : 13 px ! important ;
font - weight : 600 ! important ;
transition : border - color 0.16 s ease , background 0.16 s ease , color 0.16 s ease , box - shadow 0.16 s ease ! important ;
& : hover {
border - color : # 2563 eb ! important ;
color : # 2563 eb ! important ;
background : # eff6ff ! important ;
box - shadow : 0 2 px 6 px rgba ( 37 , 99 , 235 , 0.12 ) ! important ;
}
/* is-plain: 无资料, 弱化态 */
& . is - plain {
border - color : # e5e7eb ! important ;
color : # 9 ca3af ! important ;
& : hover {
border - color : # e5e7eb ! important ;
color : # 9 ca3af ! important ;
background : # ffffff ! important ;
box - shadow : none ! important ;
}
}
}
. product - factors . workbench - actions . material - button . el - button . material - icon {
color : inherit ! important ;
font - size : 14 px ! important ;
}
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* 步骤导航 : 胶囊分段 + 连接 ( 教育蓝主题 )
* 步骤导航 : 胶囊分段 + 连接 ( 教育蓝主题 )
* 与 new - product - survey . vue 完全一致 , 覆盖全局 ! important 规则
* 与 new - product - survey . vue 完全一致 , 覆盖全局 ! important 规则
@ -1137,42 +1071,10 @@ function exportOutcome() {
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* 按钮风格强制同步 :
* 按钮风格强制同步 :
* 全局 student - training . scss 用 ! important 把 . workbench - actions /
* 全局 student - training . scss 用 ! important 把 . task - actions 按钮锁成浅蓝大胶囊 ,
* . task - actions 按钮锁成浅蓝大胶囊 , scoped 规则无法取胜 。
* scoped 规则无法取胜 。 这里用 id 锚点 ( 特异性含 # app ) + ! important 稳定覆盖 。
* 这里用 id 锚点 ( 特异性含 # app ) + ! important 稳定覆盖 。
* === === === === === === === === === === === === === === === === === === === === * /
* === === === === === === === === === === === === === === === === === === === === * /
/* 顶部"导出实训成果"原生按钮:全局 L592 锁为 34px 浅蓝胶囊 */
# app . studentLayout section . app - main : has ( . product - factors ) . workbench - actions > button . outline - action {
display : inline - flex ! important ;
align - items : center ! important ;
justify - content : center ! important ;
gap : 6 px ! important ;
width : auto ! important ;
height : 34 px ! important ;
min - height : 34 px ! important ;
max - height : none ! important ;
padding : 0 14 px ! important ;
border : 1 px solid rgba ( 37 , 99 , 235 , 0.35 ) ! important ;
border - radius : 8 px ! important ;
color : # 2563 eb ! important ;
background : # ffffff ! important ;
box - shadow : none ! important ;
text - shadow : none ! important ;
font - size : 13 px ! important ;
font - weight : 600 ! important ;
line - height : 1 ! important ;
transition : border - color 0.16 s ease , background 0.16 s ease , color 0.16 s ease , box - shadow 0.16 s ease ! important ;
}
# app . studentLayout section . app - main : has ( . product - factors ) . workbench - actions > button . outline - action : hover {
border - color : # 2563 eb ! important ;
color : # 2563 eb ! important ;
background : # eff6ff ! important ;
box - shadow : 0 2 px 6 px rgba ( 37 , 99 , 235 , 0.12 ) ! important ;
transform : none ! important ;
}
/* --- 底部步骤按钮: 36px 标准按钮(位置 A) --- */
/* --- 底部步骤按钮: 36px 标准按钮(位置 A) --- */
# app . studentLayout section . app - main : has ( . product - factors ) . task - actions {
# app . studentLayout section . app - main : has ( . product - factors ) . task - actions {
gap : 14 px ! important ;
gap : 14 px ! important ;
@ -1237,27 +1139,26 @@ function exportOutcome() {
/* 窄屏:按钮纵向全宽(全局容器 min-width/布局均为 !important, 须在此覆盖) */
/* 窄屏:按钮纵向全宽(全局容器 min-width/布局均为 !important, 须在此覆盖) */
@ media ( max - width : 900 px ) {
@ media ( max - width : 900 px ) {
# app . studentLayout section . app - main : has ( . product - factors ) . workbench - head ,
# app . studentLayout section . app - main : has ( . product - factors ) . task - actions {
# app . studentLayout section . app - main : has ( . product - factors ) . workbench - actions {
flex - direction : column ! important ;
flex - direction : column ! important ;
align - items : stretch ! important ;
align - items : stretch ! important ;
min - width : 0 ! important ;
width : 100 % ! important ;
}
}
# app . studentLayout section . app - main : has ( . product - factors ) . workbench - actions . material - actions {
# app . studentLayout section . app - main : has ( . product - factors ) . task - actions > button {
display : grid ! important ;
width : 100 % ! important ;
width : 100 % ! important ;
}
}
# app . studentLayout section . app - main : has ( . product - factors ) . workbench - actions > button . outline - action ,
/* task-action-strip 响应式 */
# app . studentLayout section . app - main : has ( . product - factors ) . task - action s > button {
# app . studentLayout section . app - main : has ( . product - factors ) . task - action - strip {
width: 100 % ! important ;
position: static ! important ;
}
}
# app . studentLayout section . app - main : has ( . product - factors ) . task - actions {
# app . studentLayout section . app - main : has ( . product - factors ) . task - action - strip : deep ( . training - task - toolbar ) {
flex - direction : column ! important ;
justify - content : stretch ! important ;
align - items : stretch ! important ;
}
# app . studentLayout section . app - main : has ( . product - factors ) . task - action - strip : deep ( . training - task - toolbar > * ) {
flex : 1 1 auto ! important ;
}
}
}
}
< / style >
< / style >