fix: align product factors toolbar layout

bugfix/ai-assessment-evidence-rescore
陈沅 1 month ago
parent 7312c169c2
commit 3c815e6d27

@ -9,17 +9,15 @@
<h1 class="task-title">{{ taskTitle }}</h1> <h1 class="task-title">{{ taskTitle }}</h1>
</section> </section>
<TrainingTaskBrief :background="taskBackground" :goals="taskGoals" :requirements="taskRequirement" :show-material="false" /> <TrainingTaskBrief :background="taskBackground" :goals="taskGoals" :requirements="taskRequirement" :show-material="false" :show-toolbar="false" />
<section class="factors-workbench"> <section class="factors-workbench">
<div class="workbench-head workbench-head--actions-only"> <div class="workbench-head">
<div class="workbench-actions"> <div>
<TrainingMaterialButton :material-name="taskConfig?.materialName" :material-url="taskConfig?.materialUrl" /> <p class="workbench-eyebrow">PRODUCT DEVELOPMENT · KEY FACTORS</p>
<button type="button" class="outline-action" @click="exportOutcome"> <h2>{{ trainingSteps[currentStep] || taskTitle }}</h2>
<el-icon><Download /></el-icon>
导出实训成果
</button>
</div> </div>
<TrainingTaskToolbar class="product-factors-toolbar" :task-key="TASK_KEY" :on-export="exportOutcome" />
</div> </div>
<nav v-if="trainingSteps.length" class="step-indicator" aria-label="实训步骤"> <nav v-if="trainingSteps.length" class="step-indicator" aria-label="实训步骤">
@ -137,14 +135,14 @@
</template> </template>
<script setup> <script setup>
import { Download, Operation, RefreshLeft } from "@element-plus/icons-vue"; import { 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 TrainingMaterialButton from "@/views/components/TrainingMaterialButton.vue";
import TrainingTaskBrief from "@/views/components/TrainingTaskBrief.vue"; import TrainingTaskBrief from "@/views/components/TrainingTaskBrief.vue";
import TrainingTaskToolbar from "@/views/components/TrainingTaskToolbar.vue";
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const TASK_KEY = "product-development-factors"; const TASK_KEY = "product-development-factors";
@ -1078,10 +1076,31 @@ function exportOutcome() {
} }
} }
.workbench-head--actions-only { .workbench-eyebrow {
margin: 0 0 6px;
color: #59dcff;
font-size: 12px;
font-weight: 800;
letter-spacing: .1em;
}
.workbench-head h2 {
margin: 0;
color: #fff;
font-size: 25px;
line-height: 1.25;
}
.product-factors-toolbar {
flex: 0 0 auto;
justify-content: flex-end; justify-content: flex-end;
margin-bottom: 18px; max-width: 100%;
padding-bottom: 0; }
border-bottom: 0;
@media (max-width: 900px) {
.product-factors-toolbar {
width: 100%;
justify-content: flex-start;
}
} }
</style> </style>

Loading…
Cancel
Save