|
|
|
|
@ -11,17 +11,16 @@
|
|
|
|
|
:goals="taskGoals"
|
|
|
|
|
:requirements="taskRequirement"
|
|
|
|
|
:show-material="false"
|
|
|
|
|
:show-toolbar="false"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<section class="task-card">
|
|
|
|
|
<div class="workbench-head workbench-head--actions-only">
|
|
|
|
|
<div class="workbench-actions">
|
|
|
|
|
<TrainingMaterialButton :material-name="taskConfig?.materialName" :material-url="taskConfig?.materialUrl" />
|
|
|
|
|
<button type="button" class="outline-action" @click="exportOutcome">
|
|
|
|
|
<el-icon><Download /></el-icon>
|
|
|
|
|
导出实训成果
|
|
|
|
|
</button>
|
|
|
|
|
<div class="workbench-head">
|
|
|
|
|
<div>
|
|
|
|
|
<p class="section-eyebrow">Target user profile</p>
|
|
|
|
|
<h3>{{ activeStepName || taskTitle }}</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<TrainingTaskToolbar class="target-profile-toolbar" :task-key="TASK_KEY" :on-export="exportOutcome" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<nav v-if="steps.length" class="step-indicator" aria-label="目标用户画像步骤">
|
|
|
|
|
@ -333,10 +332,10 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
import { ArrowLeft, ArrowRight, CircleCheck, Document, Download, Upload } from "@element-plus/icons-vue";
|
|
|
|
|
import { ArrowLeft, ArrowRight, CircleCheck, Document, Upload } from "@element-plus/icons-vue";
|
|
|
|
|
import * as XLSX from "xlsx";
|
|
|
|
|
import TrainingAiSidebar from "@/views/components/TrainingAiSidebar.vue";
|
|
|
|
|
import TrainingMaterialButton from "@/views/components/TrainingMaterialButton.vue";
|
|
|
|
|
import TrainingTaskToolbar from "@/views/components/TrainingTaskToolbar.vue";
|
|
|
|
|
import TrainingTaskBrief from "@/views/components/TrainingTaskBrief.vue";
|
|
|
|
|
import { getTrainingTaskByKey } from "@/api/trainingTask";
|
|
|
|
|
import { parseTrainingArray } from "@/views/training/taskKeyMap";
|
|
|
|
|
@ -2476,4 +2475,14 @@ function exportOutcome() {
|
|
|
|
|
padding-bottom: 0;
|
|
|
|
|
border-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.target-profile-toolbar {
|
|
|
|
|
flex: 0 0 auto;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 900px) {
|
|
|
|
|
.target-profile-toolbar { width: 100%; justify-content: flex-start; }
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|