|
|
|
|
|
<template>
|
|
|
|
|
|
<div class="student-training-page student-training-shell" :class="{ 'product-development-process-page': isProductDevelopmentProcess }">
|
|
|
|
|
|
<main class="training-core">
|
|
|
|
|
|
<section class="task-header">
|
|
|
|
|
|
<div class="task-badge">核心实训 · 产品开发基础</div>
|
|
|
|
|
|
<h1 class="task-title">{{ page.title }}</h1>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<TrainingTaskBrief :background="page.background" :goals="page.goals" :requirements="page.requirements" :show-material="false" />
|
|
|
|
|
|
|
|
|
|
|
|
<section class="task-card">
|
|
|
|
|
|
<div class="workbench-head">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<p class="section-eyebrow">Training Task</p>
|
|
|
|
|
|
<h3>任务实训</h3>
|
|
|
|
|
|
<p v-if="page.requirements || page.task" class="workbench-description">{{ page.requirements || page.task }}</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="workbench-actions">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
class="material-download"
|
|
|
|
|
|
:plain="!page.material?.url"
|
|
|
|
|
|
@click="handleMaterialDownload"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-icon><Download /></el-icon>
|
|
|
|
|
|
{{ page.material?.name || "案例文档" }}
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
<el-button class="outline-action" @click="exportOutcome">
|
|
|
|
|
|
<el-icon><Download /></el-icon>
|
|
|
|
|
|
导出实训成果
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<nav v-if="configuredSteps.length" class="step-indicator" aria-label="实训步骤">
|
|
|
|
|
|
<span v-for="(step, index) in configuredSteps" :key="`${step}-${index}`" class="step-tab" :class="{ active: currentStep === index + 1 }">
|
|
|
|
|
|
{{ step }}
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
|
|
<section v-if="processRows.length" class="process-step-card">
|
|
|
|
|
|
<div v-if="configuredSteps.length" class="step-title-row">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<p class="section-eyebrow">Step {{ String(currentStep).padStart(2, "0") }}</p>
|
|
|
|
|
|
<h3>{{ activeStepName }}</h3>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="process-training">
|
|
|
|
|
|
<p class="process-intro">{{ page.task }}</p>
|
|
|
|
|
|
<div class="process-table-wrap">
|
|
|
|
|
|
<table class="process-table">
|
|
|
|
|
|
<thead>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<th class="serial-col">序号</th>
|
|
|
|
|
|
<th class="name-col">任务名称</th>
|
|
|
|
|
|
<th class="desc-col">任务说明</th>
|
|
|
|
|
|
<th>工作内容</th>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
<tr v-for="row in processRows" :key="row.no">
|
|
|
|
|
|
<td class="serial-cell">{{ row.no }}</td>
|
|
|
|
|
|
<td class="task-name-cell">{{ row.taskName }}</td>
|
|
|
|
|
|
<td class="desc-cell">{{ row.description }}</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<textarea
|
|
|
|
|
|
v-model="row.workContent"
|
|
|
|
|
|
class="process-textarea"
|
|
|
|
|
|
placeholder="填写该阶段需要完成的具体工作、产出物、参与角色和预计周期"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<p class="upload-tip">{{ page.processUploadTip }}</p>
|
|
|
|
|
|
<div class="upload-action">
|
|
|
|
|
|
<input ref="uploadInputRef" class="hidden-file-input" type="file" accept="image/*,.xlsx,.xls,.pdf" @change="handleProcessFileChange" />
|
|
|
|
|
|
<button type="button" class="upload-btn" :disabled="uploading" @click="triggerUpload">
|
|
|
|
|
|
<el-icon><Upload /></el-icon>
|
|
|
|
|
|
{{ uploading ? "上传中..." : "上传产品开发全流程甘特图" }}
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<span v-if="form.ganttFileName" class="upload-file-name">{{ form.ganttFileName }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<section v-if="!processRows.length" class="generic-step-card">
|
|
|
|
|
|
<div v-if="configuredSteps.length" class="step-title-row">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<p class="section-eyebrow">Step {{ String(currentStep).padStart(2, "0") }}</p>
|
|
|
|
|
|
<h3>{{ activeStepName }}</h3>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="page.keyPoints?.length" class="key-point-grid">
|
|
|
|
|
|
<article v-for="item in page.keyPoints" :key="item" class="key-point-card">
|
|
|
|
|
|
{{ item }}
|
|
|
|
|
|
</article>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<el-form class="training-form" label-position="top">
|
|
|
|
|
|
<div class="form-grid">
|
|
|
|
|
|
<el-form-item v-for="field in page.fields" :key="field.key" :label="field.label">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
v-if="field.type === 'textarea'"
|
|
|
|
|
|
v-model="form[field.key]"
|
|
|
|
|
|
type="textarea"
|
|
|
|
|
|
:autosize="{ minRows: 4, maxRows: 8 }"
|
|
|
|
|
|
:placeholder="field.placeholder"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<el-input v-else v-model="form[field.key]" :placeholder="field.placeholder" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="workRows.length" class="table-panel">
|
|
|
|
|
|
<div class="panel-title">
|
|
|
|
|
|
<h4>{{ page.tableTitle || "实训工作表" }}</h4>
|
|
|
|
|
|
<p>请结合自己的产品对象,在每一项后填写分析内容,形成可提交的实训成果。</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<el-table :data="workRows" border class="training-table">
|
|
|
|
|
|
<el-table-column label="项目" prop="name" width="190" />
|
|
|
|
|
|
<el-table-column label="说明" prop="description" min-width="280" />
|
|
|
|
|
|
<el-table-column label="学生填写" min-width="360">
|
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
|
<el-input v-model="row.answer" type="textarea" :autosize="{ minRows: 3, maxRows: 6 }" placeholder="填写本项分析内容" />
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="training-actions">
|
|
|
|
|
|
<el-button class="training-action training-action--save" :loading="saving" @click="saveCurrentProgress">保存当前进度</el-button>
|
|
|
|
|
|
<el-button class="training-action training-action--submit" :loading="saving" @click="submitTask">提交任务</el-button>
|
|
|
|
|
|
<el-button class="training-action training-action--reset" @click="resetTraining">重新实训</el-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="processRows.length" class="training-actions">
|
|
|
|
|
|
<el-button class="training-action training-action--save" :loading="saving" @click="saveCurrentProgress">保存当前进度</el-button>
|
|
|
|
|
|
<el-button class="training-action training-action--submit" :loading="saving" @click="submitTask">提交任务</el-button>
|
|
|
|
|
|
<el-button class="training-action training-action--reset" @click="resetTraining">重新实训</el-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
|
|
|
|
<TrainingAiSidebar
|
|
|
|
|
|
:study-tip="`当前任务建议:围绕“${page.title}”先明确产品对象,再按任务流程逐步补全分析内容。`"
|
|
|
|
|
|
:progress-items="progressItems"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
|
import { Download, Upload } from "@element-plus/icons-vue";
|
|
|
|
|
|
import { getTrainingTaskByKey } from "@/api/trainingTask";
|
|
|
|
|
|
import { getStudentTrainingAnswer, saveStudentTrainingAnswer, uploadStudentTrainingFile } from "@/api/studentTrainingAnswer";
|
|
|
|
|
|
import { getStudentTrainingPage } from "./studentTrainingPages";
|
|
|
|
|
|
import TrainingAiSidebar from "@/views/components/TrainingAiSidebar.vue";
|
|
|
|
|
|
import TrainingTaskBrief from "@/views/components/TrainingTaskBrief.vue";
|
|
|
|
|
|
|
|
|
|
|
|
const route = useRoute();
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
|
|
|
|
|
|
|
|
const pageKey = computed(() => route.meta?.pageKey || route.params?.pageKey);
|
|
|
|
|
|
const isProductDevelopmentProcess = computed(() => pageKey.value === "product-development-process");
|
|
|
|
|
|
const remoteTask = ref(null);
|
|
|
|
|
|
const page = computed(() => mergeTrainingPage(getStudentTrainingPage(pageKey.value), remoteTask.value));
|
|
|
|
|
|
|
|
|
|
|
|
const buildInitialForm = () =>
|
|
|
|
|
|
Object.fromEntries((page.value.fields || []).map((field) => [field.key, ""]));
|
|
|
|
|
|
|
|
|
|
|
|
const buildInitialRows = () =>
|
|
|
|
|
|
(page.value.tableRows || []).map(([name, description]) => ({
|
|
|
|
|
|
name,
|
|
|
|
|
|
description,
|
|
|
|
|
|
answer: "",
|
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
|
|
const buildInitialProcessRows = () =>
|
|
|
|
|
|
(page.value.processRows || []).map((row) => ({
|
|
|
|
|
|
...row,
|
|
|
|
|
|
workContent: "",
|
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
|
|
const form = ref(buildInitialForm());
|
|
|
|
|
|
const workRows = ref(buildInitialRows());
|
|
|
|
|
|
const processRows = ref(buildInitialProcessRows());
|
|
|
|
|
|
const uploadInputRef = ref(null);
|
|
|
|
|
|
const saving = ref(false);
|
|
|
|
|
|
const uploading = ref(false);
|
|
|
|
|
|
const currentStep = ref(1);
|
|
|
|
|
|
const configuredSteps = computed(() => parseArray(remoteTask.value?.steps));
|
|
|
|
|
|
const activeStepName = computed(() => configuredSteps.value[currentStep.value - 1] || configuredSteps.value[0] || "");
|
|
|
|
|
|
const progressItems = computed(() => [
|
|
|
|
|
|
{ text: `进行中:${page.value.title}`, status: "doing" },
|
|
|
|
|
|
{ text: "待完成:提交实训成果", status: "" },
|
|
|
|
|
|
{ text: "可选:导出实训成果", status: "" },
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
|
watch(
|
|
|
|
|
|
() => pageKey.value,
|
|
|
|
|
|
async () => {
|
|
|
|
|
|
await loadRemoteTask();
|
|
|
|
|
|
form.value = buildInitialForm();
|
|
|
|
|
|
workRows.value = buildInitialRows();
|
|
|
|
|
|
processRows.value = buildInitialProcessRows();
|
|
|
|
|
|
await loadSavedAnswer();
|
|
|
|
|
|
},
|
|
|
|
|
|
{ immediate: true }
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
async function loadRemoteTask() {
|
|
|
|
|
|
remoteTask.value = null;
|
|
|
|
|
|
if (!pageKey.value) return;
|
|
|
|
|
|
try {
|
|
|
|
|
|
const res = await getTrainingTaskByKey(pageKey.value);
|
|
|
|
|
|
remoteTask.value = res?.data || null;
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
remoteTask.value = null;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function mergeTrainingPage(basePage, task) {
|
|
|
|
|
|
if (!task) {
|
|
|
|
|
|
return {
|
|
|
|
|
|
...basePage,
|
|
|
|
|
|
requirements: basePage.requirements || basePage.task,
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
const goals = parseArray(task.objectives);
|
|
|
|
|
|
const flow = parseArray(task.steps);
|
|
|
|
|
|
const material = normalizeMaterial(task.materialName, task.materialUrl);
|
|
|
|
|
|
return {
|
|
|
|
|
|
...basePage,
|
|
|
|
|
|
title: task.taskName || basePage.title,
|
|
|
|
|
|
background: task.background || basePage.background,
|
|
|
|
|
|
goals: goals.length ? goals : basePage.goals,
|
|
|
|
|
|
requirements: task.requirements || basePage.task,
|
|
|
|
|
|
task: basePage.processRows?.length ? basePage.task : task.requirements || basePage.task,
|
|
|
|
|
|
flow: flow.length ? flow : basePage.flow,
|
|
|
|
|
|
material,
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function normalizeMaterial(materialName, materialUrl) {
|
|
|
|
|
|
const name = String(materialName || "").trim();
|
|
|
|
|
|
const url = String(materialUrl || "").trim();
|
|
|
|
|
|
if (!name || !url || (name === "案例资料.rar" && url === "/file/example.rar")) {
|
|
|
|
|
|
return null;
|
|
|
|
|
|
}
|
|
|
|
|
|
return { name, url };
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function parseArray(value) {
|
|
|
|
|
|
if (Array.isArray(value)) {
|
|
|
|
|
|
return value.filter(Boolean);
|
|
|
|
|
|
}
|
|
|
|
|
|
if (!value) {
|
|
|
|
|
|
return [];
|
|
|
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
|
|
|
const parsed = JSON.parse(value);
|
|
|
|
|
|
return Array.isArray(parsed) ? parsed.filter(Boolean) : [];
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
return String(value)
|
|
|
|
|
|
.split(/[;;||]/)
|
|
|
|
|
|
.map((item) => item.trim())
|
|
|
|
|
|
.filter(Boolean);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function buildOutcome() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
title: page.value.title,
|
|
|
|
|
|
form: form.value,
|
|
|
|
|
|
rows: workRows.value,
|
|
|
|
|
|
processRows: processRows.value,
|
|
|
|
|
|
file: form.value.ganttFileUrl
|
|
|
|
|
|
? {
|
|
|
|
|
|
name: form.value.ganttFileName || "",
|
|
|
|
|
|
url: form.value.ganttFileUrl,
|
|
|
|
|
|
originalFilename: form.value.ganttOriginalFilename || form.value.ganttFileName || "",
|
|
|
|
|
|
}
|
|
|
|
|
|
: null,
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function applySavedAnswer(value) {
|
|
|
|
|
|
if (!value) return;
|
|
|
|
|
|
try {
|
|
|
|
|
|
const parsed = JSON.parse(value);
|
|
|
|
|
|
if (parsed?.currentStep && Number(parsed.currentStep) > 0) {
|
|
|
|
|
|
currentStep.value = Number(parsed.currentStep);
|
|
|
|
|
|
}
|
|
|
|
|
|
if (parsed?.form) {
|
|
|
|
|
|
form.value = {
|
|
|
|
|
|
...form.value,
|
|
|
|
|
|
...parsed.form,
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
if (Array.isArray(parsed?.rows) && parsed.rows.length) {
|
|
|
|
|
|
workRows.value = buildInitialRows().map((row, index) => ({
|
|
|
|
|
|
...row,
|
|
|
|
|
|
answer: parsed.rows[index]?.answer || "",
|
|
|
|
|
|
}));
|
|
|
|
|
|
}
|
|
|
|
|
|
if (Array.isArray(parsed?.processRows) && parsed.processRows.length) {
|
|
|
|
|
|
const savedByNo = parsed.processRows.reduce((map, row) => {
|
|
|
|
|
|
if (row?.no != null) {
|
|
|
|
|
|
map[row.no] = row;
|
|
|
|
|
|
}
|
|
|
|
|
|
return map;
|
|
|
|
|
|
}, {});
|
|
|
|
|
|
processRows.value = buildInitialProcessRows().map((row, index) => ({
|
|
|
|
|
|
...row,
|
|
|
|
|
|
workContent: savedByNo[row.no]?.workContent || parsed.processRows[index]?.workContent || "",
|
|
|
|
|
|
}));
|
|
|
|
|
|
}
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
// Ignore malformed historical answers.
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async function loadSavedAnswer() {
|
|
|
|
|
|
if (!pageKey.value) return;
|
|
|
|
|
|
try {
|
|
|
|
|
|
const res = await getStudentTrainingAnswer(pageKey.value);
|
|
|
|
|
|
const answer = res?.data;
|
|
|
|
|
|
if (answer?.currentStep && Number(answer.currentStep) > 0) {
|
|
|
|
|
|
currentStep.value = Number(answer.currentStep);
|
|
|
|
|
|
}
|
|
|
|
|
|
if (answer?.step1Answer) {
|
|
|
|
|
|
applySavedAnswer(answer.step1Answer);
|
|
|
|
|
|
}
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
// Keep the page usable when the answer endpoint is unavailable.
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function buildAnswerPayload(saveAction = "SAVE") {
|
|
|
|
|
|
return {
|
|
|
|
|
|
step1Answer: JSON.stringify(buildOutcome()),
|
|
|
|
|
|
currentStep: currentStep.value,
|
|
|
|
|
|
submitted: saveAction === "SUBMIT",
|
|
|
|
|
|
saveAction,
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async function saveAnswer(saveAction = "SAVE") {
|
|
|
|
|
|
if (!pageKey.value || saving.value) return;
|
|
|
|
|
|
saving.value = true;
|
|
|
|
|
|
try {
|
|
|
|
|
|
await saveStudentTrainingAnswer(pageKey.value, buildAnswerPayload(saveAction));
|
|
|
|
|
|
proxy?.$modal?.msgSuccess(saveAction === "SUBMIT" ? "提交成功" : "已保存");
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
proxy?.$modal?.msgError?.(saveAction === "SUBMIT" ? "提交失败" : "保存失败");
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
saving.value = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function saveCurrentProgress() {
|
|
|
|
|
|
return saveAnswer("SAVE");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function submitTask() {
|
|
|
|
|
|
return saveAnswer("SUBMIT");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function handleMaterialDownload() {
|
|
|
|
|
|
const material = page.value.material;
|
|
|
|
|
|
if (!material?.url) {
|
|
|
|
|
|
proxy?.$modal?.msgWarning?.("暂无案例文档");
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
const link = document.createElement("a");
|
|
|
|
|
|
link.href = material.url;
|
|
|
|
|
|
link.target = "_blank";
|
|
|
|
|
|
link.rel = "noopener";
|
|
|
|
|
|
if (material.name) {
|
|
|
|
|
|
link.download = material.name;
|
|
|
|
|
|
}
|
|
|
|
|
|
document.body.appendChild(link);
|
|
|
|
|
|
link.click();
|
|
|
|
|
|
document.body.removeChild(link);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async function resetTraining() {
|
|
|
|
|
|
form.value = buildInitialForm();
|
|
|
|
|
|
workRows.value = buildInitialRows();
|
|
|
|
|
|
processRows.value = buildInitialProcessRows();
|
|
|
|
|
|
try {
|
|
|
|
|
|
await saveAnswer("RESET");
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
// saveAnswer already reports failures.
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function triggerUpload() {
|
|
|
|
|
|
uploadInputRef.value?.click();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async function handleProcessFileChange(event) {
|
|
|
|
|
|
const file = event.target.files?.[0];
|
|
|
|
|
|
if (!file) return;
|
|
|
|
|
|
const formData = new FormData();
|
|
|
|
|
|
formData.append("file", file);
|
|
|
|
|
|
uploading.value = true;
|
|
|
|
|
|
try {
|
|
|
|
|
|
const res = await uploadStudentTrainingFile(formData);
|
|
|
|
|
|
form.value = {
|
|
|
|
|
|
...form.value,
|
|
|
|
|
|
ganttFileName: res?.originalFilename || file.name,
|
|
|
|
|
|
ganttOriginalFilename: res?.originalFilename || file.name,
|
|
|
|
|
|
ganttFileUrl: res?.url || res?.fileName || "",
|
|
|
|
|
|
};
|
|
|
|
|
|
proxy?.$modal?.msgSuccess("文件已上传");
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
proxy?.$modal?.msgError?.("文件上传失败");
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
uploading.value = false;
|
|
|
|
|
|
if (event.target) {
|
|
|
|
|
|
event.target.value = "";
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function exportOutcome() {
|
|
|
|
|
|
const blob = new Blob([JSON.stringify(buildOutcome(), null, 2)], { type: "application/json;charset=utf-8" });
|
|
|
|
|
|
const url = URL.createObjectURL(blob);
|
|
|
|
|
|
const link = document.createElement("a");
|
|
|
|
|
|
link.href = url;
|
|
|
|
|
|
link.download = `${page.value.title}-实训成果.json`;
|
|
|
|
|
|
document.body.appendChild(link);
|
|
|
|
|
|
link.click();
|
|
|
|
|
|
document.body.removeChild(link);
|
|
|
|
|
|
URL.revokeObjectURL(url);
|
|
|
|
|
|
proxy?.$modal?.msgSuccess("导出成功");
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
.student-training-page {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
z-index: 2;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: minmax(720px, 1fr) 340px;
|
|
|
|
|
|
gap: 24px;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
|
min-height: calc(100vh - 106px);
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
padding: 0 0 32px;
|
|
|
|
|
|
color: #e8f7ff;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.training-core,
|
|
|
|
|
|
.ai-card {
|
|
|
|
|
|
border: 1px solid rgba(0, 180, 255, 0.25);
|
|
|
|
|
|
background: rgba(8, 18, 28, 0.6);
|
|
|
|
|
|
box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(169, 229, 255, 0.08);
|
|
|
|
|
|
backdrop-filter: blur(8px);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.training-core {
|
|
|
|
|
|
padding: 28px;
|
|
|
|
|
|
border-radius: 36px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-header {
|
|
|
|
|
|
margin-bottom: 24px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-badge {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
padding: 4px 14px;
|
|
|
|
|
|
border: 1px solid rgba(0, 170, 255, 0.5);
|
|
|
|
|
|
border-radius: 30px;
|
|
|
|
|
|
color: #d6f6ff;
|
|
|
|
|
|
background: rgba(0, 170, 255, 0.2);
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-title {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
color: transparent;
|
|
|
|
|
|
background: linear-gradient(135deg, #ffffff, #8bcbff);
|
|
|
|
|
|
-webkit-background-clip: text;
|
|
|
|
|
|
background-clip: text;
|
|
|
|
|
|
font-size: 30px;
|
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.goal-bg {
|
|
|
|
|
|
margin-bottom: 28px;
|
|
|
|
|
|
padding: 16px 20px;
|
|
|
|
|
|
border: 1px solid #2d5f7e;
|
|
|
|
|
|
border-radius: 24px;
|
|
|
|
|
|
background: rgba(0, 35, 55, 0.6);
|
|
|
|
|
|
|
|
|
|
|
|
p,
|
|
|
|
|
|
li {
|
|
|
|
|
|
color: #d7ecff;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
line-height: 1.8;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
p,
|
|
|
|
|
|
ol {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ol {
|
|
|
|
|
|
padding-left: 18px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.subtitle-icon {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
|
color: #b9e2ff;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.subtitle-icon--spaced {
|
|
|
|
|
|
margin-top: 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-card,
|
|
|
|
|
|
.generic-step-card,
|
|
|
|
|
|
.process-step-card {
|
|
|
|
|
|
padding: 18px 22px;
|
|
|
|
|
|
border: 1px solid rgba(82, 174, 226, 0.42);
|
|
|
|
|
|
border-radius: 26px;
|
|
|
|
|
|
background: rgba(0, 25, 42, 0.64);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-card {
|
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.generic-step-card,
|
|
|
|
|
|
.process-step-card {
|
|
|
|
|
|
margin-top: 32px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.training-form,
|
|
|
|
|
|
.table-panel {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
border: 0;
|
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.workbench-head {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
gap: 18px;
|
|
|
|
|
|
margin-bottom: 22px;
|
|
|
|
|
|
padding-bottom: 18px;
|
|
|
|
|
|
border-bottom: 1px solid rgba(0, 180, 255, 0.2);
|
|
|
|
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
|
|
margin: 4px 0 8px;
|
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
|
font-size: 26px !important;
|
|
|
|
|
|
font-weight: 800 !important;
|
|
|
|
|
|
line-height: 1.3 !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
p {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
color: #d7ecff;
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
line-height: 1.8;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.workbench-actions {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex: 0 0 auto;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
gap: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.material-download {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 6px;
|
|
|
|
|
|
max-width: 260px;
|
|
|
|
|
|
min-height: 32px;
|
|
|
|
|
|
padding: 0 12px;
|
|
|
|
|
|
border: 1px solid rgba(97, 219, 255, 0.55);
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
color: #a9ecff;
|
|
|
|
|
|
background: rgba(7, 54, 78, 0.72);
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
line-height: 1.2;
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
|
border-color: rgba(119, 232, 255, 0.92);
|
|
|
|
|
|
background: rgba(10, 82, 116, 0.82);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.section-eyebrow {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
color: #71dfff;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.step-indicator {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: 6px;
|
|
|
|
|
|
margin-bottom: 32px;
|
|
|
|
|
|
padding: 6px;
|
|
|
|
|
|
border: 1px solid rgba(0, 180, 255, 0.3);
|
|
|
|
|
|
border-radius: 60px;
|
|
|
|
|
|
background: rgba(0, 0, 0, 0.3);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.step-tab {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
flex: 1 1 0;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
min-height: 46px;
|
|
|
|
|
|
padding: 0 14px;
|
|
|
|
|
|
border: 1px solid transparent;
|
|
|
|
|
|
border-radius: 40px;
|
|
|
|
|
|
color: #9ab3d0;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
line-height: 1.2;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
|
|
border-color: rgba(0, 170, 255, 0.55);
|
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
|
background: linear-gradient(95deg, #0a6b9e, #0a5c86);
|
|
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.step-title-row {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: 18px;
|
|
|
|
|
|
margin-bottom: 14px;
|
|
|
|
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
|
|
margin: 4px 0 0;
|
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.flow-rail {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
|
|
|
|
|
gap: 12px;
|
|
|
|
|
|
margin-top: 18px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.process-training {
|
|
|
|
|
|
margin-top: 4px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.process-intro,
|
|
|
|
|
|
.upload-tip {
|
|
|
|
|
|
margin: 0 0 18px;
|
|
|
|
|
|
color: #d7ecff;
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
line-height: 1.8;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.process-table-wrap {
|
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
|
border: 1px solid rgba(82, 174, 226, 0.45);
|
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
|
background: rgba(0, 13, 24, 0.68);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.process-table {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
min-width: 1080px;
|
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
|
table-layout: fixed;
|
|
|
|
|
|
|
|
|
|
|
|
th {
|
|
|
|
|
|
padding: 14px 16px;
|
|
|
|
|
|
border-right: 1px solid rgba(134, 220, 255, 0.24);
|
|
|
|
|
|
color: #effdff;
|
|
|
|
|
|
background: linear-gradient(180deg, #0b7fb3, #075c88);
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
td {
|
|
|
|
|
|
padding: 16px;
|
|
|
|
|
|
border-top: 1px solid rgba(87, 159, 200, 0.38);
|
|
|
|
|
|
border-right: 1px solid rgba(87, 159, 200, 0.28);
|
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
th:last-child,
|
|
|
|
|
|
td:last-child {
|
|
|
|
|
|
border-right: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.serial-col {
|
|
|
|
|
|
width: 72px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.name-col {
|
|
|
|
|
|
width: 190px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.desc-col {
|
|
|
|
|
|
width: 280px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.serial-cell,
|
|
|
|
|
|
.task-name-cell {
|
|
|
|
|
|
color: #eafaff;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.desc-cell {
|
|
|
|
|
|
color: #d1e8f5;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
line-height: 1.75;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.process-textarea {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
min-height: 112px;
|
|
|
|
|
|
padding: 12px 14px;
|
|
|
|
|
|
border: 1px solid rgba(84, 177, 230, 0.62);
|
|
|
|
|
|
border-radius: 18px;
|
|
|
|
|
|
outline: none;
|
|
|
|
|
|
resize: vertical;
|
|
|
|
|
|
color: #f4fbff;
|
|
|
|
|
|
background: rgba(9, 24, 36, 0.94);
|
|
|
|
|
|
line-height: 1.65;
|
|
|
|
|
|
transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
|
|
|
|
|
|
|
|
|
|
|
|
&::placeholder {
|
|
|
|
|
|
color: #6f8da3;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
|
border-color: #5fe7ff;
|
|
|
|
|
|
background: rgba(10, 31, 46, 0.98);
|
|
|
|
|
|
box-shadow: 0 0 0 3px rgba(34, 207, 255, 0.14);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.upload-tip {
|
|
|
|
|
|
margin-top: 26px;
|
|
|
|
|
|
margin-bottom: 22px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.upload-action {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
gap: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.hidden-file-input {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.upload-btn {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
min-height: 46px;
|
|
|
|
|
|
padding: 0 26px;
|
|
|
|
|
|
border: 1px solid rgba(61, 221, 255, 0.9);
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
|
background: linear-gradient(95deg, #10a7d5, #0878af);
|
|
|
|
|
|
box-shadow: 0 12px 24px rgba(0, 138, 220, 0.24);
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.upload-file-name {
|
|
|
|
|
|
color: #9fe8ff;
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.flow-step,
|
|
|
|
|
|
.key-point-card {
|
|
|
|
|
|
border: 1px solid rgba(75, 184, 232, 0.24);
|
|
|
|
|
|
border-radius: 24px;
|
|
|
|
|
|
background: rgba(0, 20, 35, 0.65);
|
|
|
|
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.flow-step {
|
|
|
|
|
|
min-height: 86px;
|
|
|
|
|
|
padding: 18px 16px;
|
|
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
|
color: #69ddff;
|
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
strong {
|
|
|
|
|
|
color: #f1fbff;
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.key-point-grid {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
|
|
|
|
|
gap: 12px;
|
|
|
|
|
|
margin: 0 0 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.key-point-card {
|
|
|
|
|
|
padding: 16px;
|
|
|
|
|
|
border: 1px solid rgba(0, 180, 255, 0.22);
|
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
|
color: #d7ecff;
|
|
|
|
|
|
background: rgba(1, 14, 26, 0.72);
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
line-height: 1.7;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.form-grid {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
|
|
|
|
gap: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.panel-title {
|
|
|
|
|
|
margin: 22px 0 16px;
|
|
|
|
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
|
|
margin: 0 0 8px;
|
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
p {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
color: #d7ecff;
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
line-height: 1.8;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.el-form-item__label) {
|
|
|
|
|
|
color: #dff5ff;
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
line-height: 1.8;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.el-input__wrapper),
|
|
|
|
|
|
:deep(.el-textarea__inner) {
|
|
|
|
|
|
border: 1px solid #2d5f7e;
|
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
background: #0f1a24;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.el-textarea__inner) {
|
|
|
|
|
|
padding: 12px 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.el-input__inner),
|
|
|
|
|
|
:deep(.el-textarea__inner) {
|
|
|
|
|
|
color: #f2fbff;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.el-input__inner::placeholder),
|
|
|
|
|
|
:deep(.el-textarea__inner::placeholder) {
|
|
|
|
|
|
color: #6f8da3;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.training-table {
|
|
|
|
|
|
--el-table-border-color: rgba(77, 167, 220, 0.24);
|
|
|
|
|
|
--el-table-header-bg-color: rgba(8, 55, 82, 0.98);
|
|
|
|
|
|
--el-table-header-text-color: #eaffff;
|
|
|
|
|
|
--el-table-row-hover-bg-color: rgba(21, 107, 151, 0.42);
|
|
|
|
|
|
--el-table-bg-color: rgba(1, 14, 26, 0.72);
|
|
|
|
|
|
--el-table-tr-bg-color: rgba(1, 14, 26, 0.72);
|
|
|
|
|
|
--el-table-text-color: #d7f1ff;
|
|
|
|
|
|
border-radius: 22px;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.training-actions {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
gap: 52px;
|
|
|
|
|
|
margin-top: 36px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.training-actions :deep(.training-action) {
|
|
|
|
|
|
min-width: 172px;
|
|
|
|
|
|
height: 64px;
|
|
|
|
|
|
padding: 0 28px;
|
|
|
|
|
|
border: 1px solid #2c83aa;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
color: #dff7ff;
|
|
|
|
|
|
background: rgba(13, 64, 88, 0.62);
|
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
|
line-height: 1;
|
|
|
|
|
|
letter-spacing: 0;
|
|
|
|
|
|
text-shadow: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.training-actions :deep(.training-action span) {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
color: inherit;
|
|
|
|
|
|
font-size: inherit;
|
|
|
|
|
|
line-height: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.training-actions :deep(.training-action--submit),
|
|
|
|
|
|
.training-actions :deep(.training-action--reset) {
|
|
|
|
|
|
border-color: #2c83aa;
|
|
|
|
|
|
color: #dff7ff;
|
|
|
|
|
|
background: rgba(13, 64, 88, 0.62);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.training-actions :deep(.training-action:hover:not(.is-disabled)) {
|
|
|
|
|
|
border-color: #46b5e7;
|
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
|
background: rgba(18, 85, 116, 0.78);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.product-development-process-page {
|
|
|
|
|
|
.goal-bg {
|
|
|
|
|
|
margin-bottom: 28px;
|
|
|
|
|
|
padding: 18px 22px;
|
|
|
|
|
|
border: 1px solid rgba(82, 174, 226, 0.42);
|
|
|
|
|
|
border-radius: 26px;
|
|
|
|
|
|
background: rgba(0, 25, 42, 0.64);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.task-card {
|
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
|
padding: 18px 22px;
|
|
|
|
|
|
border: 1px solid rgba(82, 174, 226, 0.42);
|
|
|
|
|
|
border-radius: 26px;
|
|
|
|
|
|
background: rgba(0, 25, 42, 0.64);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.workbench-head h3 {
|
|
|
|
|
|
font-size: 26px !important;
|
|
|
|
|
|
font-weight: 800 !important;
|
|
|
|
|
|
line-height: 1.3 !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.workbench-head .section-eyebrow {
|
|
|
|
|
|
color: #71dfff;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.workbench-description {
|
|
|
|
|
|
color: #d7ecff !important;
|
|
|
|
|
|
font-size: 15px !important;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
line-height: 1.8 !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.workbench-actions :deep(.material-download),
|
|
|
|
|
|
.workbench-actions :deep(.outline-action) {
|
|
|
|
|
|
min-width: 0 !important;
|
|
|
|
|
|
min-height: 40px !important;
|
|
|
|
|
|
height: 40px !important;
|
|
|
|
|
|
padding: 0 18px !important;
|
|
|
|
|
|
border: 1px solid rgba(99, 217, 255, 0.55) !important;
|
|
|
|
|
|
border-radius: 999px !important;
|
|
|
|
|
|
color: #e9fbff !important;
|
|
|
|
|
|
background: rgba(17, 126, 178, 0.36) !important;
|
|
|
|
|
|
box-shadow: none !important;
|
|
|
|
|
|
font-size: 14px !important;
|
|
|
|
|
|
font-weight: 800 !important;
|
|
|
|
|
|
line-height: 1 !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.step-indicator {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: 6px;
|
|
|
|
|
|
margin-bottom: 32px;
|
|
|
|
|
|
padding: 6px;
|
|
|
|
|
|
border: 1px solid rgba(0, 180, 255, 0.3);
|
|
|
|
|
|
border-radius: 60px;
|
|
|
|
|
|
background: rgba(0, 0, 0, 0.3);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.step-tab {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
flex: 1 1 0;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
min-height: 46px;
|
|
|
|
|
|
padding: 0 14px;
|
|
|
|
|
|
border: 1px solid transparent;
|
|
|
|
|
|
border-radius: 40px;
|
|
|
|
|
|
color: #9ab3d0;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
|
|
border-color: rgba(0, 170, 255, 0.55);
|
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
|
background: linear-gradient(95deg, #0a6b9e, #0a5c86);
|
|
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.process-step-card {
|
|
|
|
|
|
padding: 18px 22px;
|
|
|
|
|
|
border: 1px solid rgba(82, 174, 226, 0.42);
|
|
|
|
|
|
border-radius: 26px;
|
|
|
|
|
|
background: rgba(0, 25, 42, 0.64);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.step-title-row {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: 18px;
|
|
|
|
|
|
margin-bottom: 14px;
|
|
|
|
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
|
|
margin: 4px 0 0;
|
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.process-intro,
|
|
|
|
|
|
.upload-tip {
|
|
|
|
|
|
color: #d7ecff;
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
line-height: 1.8;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.process-table-wrap {
|
|
|
|
|
|
border: 1px solid rgba(0, 180, 255, 0.22);
|
|
|
|
|
|
border-radius: 22px;
|
|
|
|
|
|
background: rgba(1, 14, 26, 0.72);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.process-table {
|
|
|
|
|
|
th {
|
|
|
|
|
|
padding: 12px;
|
|
|
|
|
|
border-right-color: rgba(77, 167, 220, 0.2);
|
|
|
|
|
|
background: rgba(8, 55, 82, 0.98);
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
td {
|
|
|
|
|
|
padding: 12px;
|
|
|
|
|
|
border-top-color: rgba(77, 167, 220, 0.2);
|
|
|
|
|
|
border-right-color: rgba(77, 167, 220, 0.2);
|
|
|
|
|
|
background: rgba(1, 14, 26, 0.48);
|
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.serial-cell,
|
|
|
|
|
|
.task-name-cell,
|
|
|
|
|
|
.desc-cell {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.process-textarea {
|
|
|
|
|
|
min-height: 110px;
|
|
|
|
|
|
padding: 12px 14px;
|
|
|
|
|
|
border: 1px solid rgba(45, 95, 126, 0.95);
|
|
|
|
|
|
border-radius: 14px;
|
|
|
|
|
|
color: #eef5ff;
|
|
|
|
|
|
background: #0f1a24;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.upload-action {
|
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.upload-btn {
|
|
|
|
|
|
min-width: 0 !important;
|
|
|
|
|
|
min-height: 40px !important;
|
|
|
|
|
|
height: 40px !important;
|
|
|
|
|
|
padding: 0 18px !important;
|
|
|
|
|
|
border: 1px solid rgba(92, 224, 255, 0.7) !important;
|
|
|
|
|
|
border-radius: 999px !important;
|
|
|
|
|
|
background: linear-gradient(95deg, #0b84bd, #096491) !important;
|
|
|
|
|
|
box-shadow: none !important;
|
|
|
|
|
|
font-size: 14px !important;
|
|
|
|
|
|
font-weight: 800 !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.upload-file-name {
|
|
|
|
|
|
color: #9fe8ff;
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 900px) {
|
|
|
|
|
|
.student-training-page {
|
|
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
|
max-width: 980px;
|
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 900px) {
|
|
|
|
|
|
.workbench-head {
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.form-grid {
|
|
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.product-development-process-page {
|
|
|
|
|
|
.workbench-actions,
|
|
|
|
|
|
.step-indicator,
|
|
|
|
|
|
.step-title-row,
|
|
|
|
|
|
.upload-action {
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: stretch;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.step-tab,
|
|
|
|
|
|
.upload-btn {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|