2026-08-03 17:34:21 +08:00
|
|
|
|
<script setup lang="ts">
|
2026-07-12 15:39:59 +08:00
|
|
|
|
import { onMounted, ref, watch } from 'vue'
|
2026-07-10 16:45:55 +08:00
|
|
|
|
import { useRouter } from 'vue-router'
|
2026-07-12 15:39:59 +08:00
|
|
|
|
import { ElMessage } from 'element-plus'
|
2026-07-10 16:45:55 +08:00
|
|
|
|
import PageCard from '@/components/PageCard.vue'
|
2026-07-12 15:39:59 +08:00
|
|
|
|
import EvalTaskSetupStep, { type EvalTaskSetupDraft } from './create/EvalTaskSetupStep.vue'
|
|
|
|
|
|
import EvalRuleSetupStep, { type EvalRuleSetupDraft } from './create/EvalRuleSetupStep.vue'
|
2026-07-14 09:40:17 +08:00
|
|
|
|
import BasicMetricSetupStep, { type BasicMetricSetupDraft } from './create/BasicMetricSetupStep.vue'
|
|
|
|
|
|
import StartEvalStep from './create/StartEvalStep.vue'
|
|
|
|
|
|
import { createDimension, startEval } from '@/api/modules/eval'
|
2026-07-12 15:39:59 +08:00
|
|
|
|
import { getTrainedModels, getModelList } from '@/api/modules/model'
|
2026-07-10 16:45:55 +08:00
|
|
|
|
import { getDatasetList } from '@/api/modules/dataset'
|
2026-08-03 17:34:21 +08:00
|
|
|
|
import { getComputeGpus } from '@/api/modules/compute'
|
2026-07-12 15:39:59 +08:00
|
|
|
|
import type { DatasetItem, Dimension, GpuInfo, ModelItem, TrainedModel } from '@/types'
|
|
|
|
|
|
|
|
|
|
|
|
type StepExposed = { validate: () => Promise<boolean> }
|
2026-07-10 16:45:55 +08:00
|
|
|
|
|
|
|
|
|
|
const router = useRouter()
|
2026-07-12 15:39:59 +08:00
|
|
|
|
const loading = ref(false)
|
2026-07-10 16:45:55 +08:00
|
|
|
|
const submitting = ref(false)
|
2026-07-13 10:31:40 +08:00
|
|
|
|
const currentStep = ref(0)
|
2026-07-12 15:39:59 +08:00
|
|
|
|
const taskStepRef = ref<StepExposed>()
|
|
|
|
|
|
const ruleStepRef = ref<StepExposed>()
|
2026-07-14 09:40:17 +08:00
|
|
|
|
const basicMetricStepRef = ref<StepExposed>()
|
2026-07-10 16:45:55 +08:00
|
|
|
|
|
2026-07-13 10:31:40 +08:00
|
|
|
|
const WIZARD_STEPS = [
|
|
|
|
|
|
{ title: '任务配置', description: '选择模型、算力与评测数据' },
|
2026-07-14 09:40:17 +08:00
|
|
|
|
{ title: '大模型评测指标', description: '配置评测模型、方式与标准' },
|
|
|
|
|
|
{ title: '基础评测指标', description: '选择 BLEU、ROUGE 等参考指标' },
|
|
|
|
|
|
{ title: '开始评测', description: '确认配置并启动评测任务' },
|
2026-07-13 10:31:40 +08:00
|
|
|
|
] as const
|
|
|
|
|
|
|
2026-07-10 16:45:55 +08:00
|
|
|
|
const trainedModels = ref<TrainedModel[]>([])
|
|
|
|
|
|
const evalDatasets = ref<DatasetItem[]>([])
|
2026-07-12 15:39:59 +08:00
|
|
|
|
const evalModels = ref<ModelItem[]>([])
|
2026-07-10 16:45:55 +08:00
|
|
|
|
const gpus = ref<GpuInfo[]>([])
|
2026-07-12 15:39:59 +08:00
|
|
|
|
const createdDimensionId = ref<string | number>('')
|
2026-07-10 16:45:55 +08:00
|
|
|
|
|
2026-07-12 15:39:59 +08:00
|
|
|
|
const taskForm = ref<EvalTaskSetupDraft>({
|
2026-07-10 16:45:55 +08:00
|
|
|
|
eval_task_name: '',
|
2026-07-12 15:39:59 +08:00
|
|
|
|
model_id: '',
|
2026-07-10 16:45:55 +08:00
|
|
|
|
gpu_id: '',
|
2026-07-12 15:39:59 +08:00
|
|
|
|
data_source: 'dataset',
|
|
|
|
|
|
dataset_id: '',
|
|
|
|
|
|
leaderboard: false,
|
2026-07-10 16:45:55 +08:00
|
|
|
|
})
|
|
|
|
|
|
|
2026-07-12 15:39:59 +08:00
|
|
|
|
const ruleForm = ref<EvalRuleSetupDraft>({
|
2026-07-14 09:40:17 +08:00
|
|
|
|
type: '',
|
|
|
|
|
|
description: '',
|
|
|
|
|
|
eval_model: '',
|
|
|
|
|
|
eval_method: '',
|
|
|
|
|
|
eval_prompt: '',
|
|
|
|
|
|
is_active: true,
|
|
|
|
|
|
is_default: false,
|
|
|
|
|
|
bleu_n: 1,
|
|
|
|
|
|
output_precision: 3,
|
|
|
|
|
|
score_min: 0,
|
|
|
|
|
|
score_max: 5,
|
|
|
|
|
|
pass_threshold: 3,
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const basicMetricForm = ref<BasicMetricSetupDraft>({
|
|
|
|
|
|
bleu_enabled: false,
|
|
|
|
|
|
bleu_n: 4,
|
|
|
|
|
|
rouge_enabled: false,
|
|
|
|
|
|
rouge_methods: ['rouge_1', 'rouge_2'],
|
|
|
|
|
|
cosine_enabled: false,
|
|
|
|
|
|
output_precision: 3,
|
2026-07-12 15:39:59 +08:00
|
|
|
|
})
|
2026-07-10 16:45:55 +08:00
|
|
|
|
|
2026-07-12 15:39:59 +08:00
|
|
|
|
watch(
|
2026-07-14 09:40:17 +08:00
|
|
|
|
ruleForm,
|
2026-07-12 15:39:59 +08:00
|
|
|
|
() => {
|
|
|
|
|
|
createdDimensionId.value = ''
|
|
|
|
|
|
},
|
|
|
|
|
|
{ deep: true },
|
2026-07-10 16:45:55 +08:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
async function loadData() {
|
2026-07-12 15:39:59 +08:00
|
|
|
|
loading.value = true
|
|
|
|
|
|
const results = await Promise.allSettled([
|
|
|
|
|
|
getTrainedModels(),
|
|
|
|
|
|
getDatasetList(),
|
|
|
|
|
|
getModelList(),
|
2026-08-03 17:34:21 +08:00
|
|
|
|
getComputeGpus(),
|
2026-07-12 15:39:59 +08:00
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
if (results[0].status === 'fulfilled') trainedModels.value = results[0].value?.models || []
|
2026-07-14 09:40:17 +08:00
|
|
|
|
if (results[1].status === 'fulfilled') {
|
|
|
|
|
|
evalDatasets.value = (results[1].value || []).filter((dataset) => dataset.type === 'eval')
|
2026-07-12 15:39:59 +08:00
|
|
|
|
}
|
2026-07-28 19:34:41 +08:00
|
|
|
|
if (results[2].status === 'fulfilled') {
|
2026-08-03 17:34:21 +08:00
|
|
|
|
evalModels.value = (results[2].value || []).filter(
|
|
|
|
|
|
(model) => model.purpose === 'evaluation' || (model.model_source === 'api' && !!model.api_url),
|
2026-07-28 19:34:41 +08:00
|
|
|
|
)
|
|
|
|
|
|
}
|
2026-07-14 09:40:17 +08:00
|
|
|
|
if (results[3].status === 'fulfilled') {
|
2026-08-03 17:34:21 +08:00
|
|
|
|
gpus.value = ((results[3].value || []) as unknown as GpuInfo[]).filter((g) => g.status === 'idle')
|
2026-07-12 15:39:59 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const failedCount = results.filter((result) => result.status === 'rejected').length
|
|
|
|
|
|
if (failedCount > 0) {
|
|
|
|
|
|
ElMessage.error(`部分基础数据加载失败(${failedCount} 项),请刷新页面后重试`)
|
2026-07-10 16:45:55 +08:00
|
|
|
|
}
|
2026-07-12 15:39:59 +08:00
|
|
|
|
loading.value = false
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function buildDimensionPayload() {
|
2026-07-14 09:40:17 +08:00
|
|
|
|
const draft = ruleForm.value
|
2026-07-12 15:39:59 +08:00
|
|
|
|
const payload: Partial<Dimension> = {
|
2026-07-12 22:49:05 +08:00
|
|
|
|
name: `Custom_Dim_${Date.now()}`,
|
2026-07-12 15:39:59 +08:00
|
|
|
|
type: draft.type,
|
|
|
|
|
|
description: draft.description,
|
2026-07-14 09:40:17 +08:00
|
|
|
|
eval_model: draft.eval_model,
|
2026-07-12 15:39:59 +08:00
|
|
|
|
eval_method: draft.eval_method,
|
2026-07-14 09:40:17 +08:00
|
|
|
|
eval_prompt: draft.eval_prompt,
|
2026-07-12 15:39:59 +08:00
|
|
|
|
is_active: draft.is_active,
|
|
|
|
|
|
is_default: draft.is_default,
|
|
|
|
|
|
create_time: new Date().toISOString(),
|
|
|
|
|
|
}
|
|
|
|
|
|
if (draft.type === 'metric') {
|
|
|
|
|
|
payload.score_min = draft.score_min
|
|
|
|
|
|
payload.score_max = draft.score_max
|
|
|
|
|
|
payload.pass_threshold = draft.pass_threshold
|
|
|
|
|
|
}
|
|
|
|
|
|
return payload
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async function resolveDimensionId() {
|
|
|
|
|
|
if (createdDimensionId.value !== '') return createdDimensionId.value
|
|
|
|
|
|
|
|
|
|
|
|
const created = await createDimension(buildDimensionPayload())
|
|
|
|
|
|
if (created?.id === undefined || created.id === null || created.id === '') {
|
|
|
|
|
|
throw new Error('评测维度已提交,但未返回维度 ID,无法启动评测任务')
|
|
|
|
|
|
}
|
|
|
|
|
|
createdDimensionId.value = created.id
|
|
|
|
|
|
return created.id
|
2026-07-10 16:45:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async function handleSubmit() {
|
2026-07-12 15:39:59 +08:00
|
|
|
|
if (loading.value || submitting.value) return
|
|
|
|
|
|
submitting.value = true
|
|
|
|
|
|
try {
|
|
|
|
|
|
const dimensionId = await resolveDimensionId()
|
2026-08-04 18:21:16 +08:00
|
|
|
|
// GPU 选择为「节点:GPU序号」复合值,解析出节点与 GPU 序号,
|
|
|
|
|
|
// 多算力节点时必须把节点信息传给后端,否则会派发到错误的算力节点
|
|
|
|
|
|
const [gpuNodeId, gpuIndex] = String(taskForm.value.gpu_id).split(':')
|
|
|
|
|
|
const evalResult: any = await startEval({
|
2026-07-12 15:39:59 +08:00
|
|
|
|
eval_task_name: taskForm.value.eval_task_name,
|
2026-07-14 09:40:17 +08:00
|
|
|
|
eval_type: 'custom',
|
2026-07-12 15:39:59 +08:00
|
|
|
|
model_id: taskForm.value.model_id,
|
2026-08-04 18:21:16 +08:00
|
|
|
|
gpu_id: Number(gpuIndex) || 0,
|
|
|
|
|
|
compute_node_id: gpuNodeId || '',
|
2026-07-12 15:39:59 +08:00
|
|
|
|
dataset_id: taskForm.value.data_source === 'dataset' ? taskForm.value.dataset_id : '',
|
|
|
|
|
|
dimension_id: dimensionId,
|
|
|
|
|
|
data_source: taskForm.value.data_source,
|
|
|
|
|
|
leaderboard: taskForm.value.leaderboard,
|
2026-07-14 09:40:17 +08:00
|
|
|
|
basic_metrics: {
|
|
|
|
|
|
bleu: {
|
|
|
|
|
|
enabled: basicMetricForm.value.bleu_enabled,
|
|
|
|
|
|
ngram: basicMetricForm.value.bleu_n,
|
|
|
|
|
|
},
|
|
|
|
|
|
rouge: {
|
|
|
|
|
|
enabled: basicMetricForm.value.rouge_enabled,
|
|
|
|
|
|
methods: basicMetricForm.value.rouge_methods,
|
|
|
|
|
|
},
|
|
|
|
|
|
cosine: {
|
|
|
|
|
|
enabled: basicMetricForm.value.cosine_enabled,
|
|
|
|
|
|
},
|
|
|
|
|
|
output_precision: basicMetricForm.value.output_precision,
|
|
|
|
|
|
},
|
2026-07-12 15:39:59 +08:00
|
|
|
|
})
|
2026-08-04 18:21:16 +08:00
|
|
|
|
if (evalResult?.status === 'failed' || evalResult?.error) {
|
|
|
|
|
|
ElMessage.error(`评测启动失败:${evalResult?.error || '请检查算力节点与模型路径'}`)
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
2026-07-12 15:39:59 +08:00
|
|
|
|
ElMessage.success('评测任务已创建并启动')
|
|
|
|
|
|
router.push('/model-eval')
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
const message = error instanceof Error ? error.message : '创建评测任务失败,请稍后重试'
|
|
|
|
|
|
ElMessage.error(message)
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
submitting.value = false
|
|
|
|
|
|
}
|
2026-07-10 16:45:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-13 10:31:40 +08:00
|
|
|
|
async function handleNext() {
|
|
|
|
|
|
if (loading.value || submitting.value) return
|
2026-07-14 09:40:17 +08:00
|
|
|
|
if (currentStep.value === 0) {
|
|
|
|
|
|
const taskValid = await taskStepRef.value?.validate()
|
|
|
|
|
|
if (!taskValid) {
|
|
|
|
|
|
ElMessage.warning('请检查并完善任务配置')
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
if (currentStep.value === 1) {
|
|
|
|
|
|
const ruleValid = await ruleStepRef.value?.validate()
|
|
|
|
|
|
if (!ruleValid) {
|
|
|
|
|
|
ElMessage.warning('请检查并完善大模型评测指标')
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
if (currentStep.value === 2) {
|
|
|
|
|
|
const basicMetricValid = await basicMetricStepRef.value?.validate()
|
|
|
|
|
|
if (!basicMetricValid) {
|
|
|
|
|
|
ElMessage.warning('请检查并完善基础评测指标')
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
2026-07-13 10:31:40 +08:00
|
|
|
|
}
|
2026-07-14 09:40:17 +08:00
|
|
|
|
currentStep.value = Math.min(currentStep.value + 1, WIZARD_STEPS.length - 1)
|
2026-07-13 10:31:40 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function handleBack() {
|
|
|
|
|
|
if (submitting.value) return
|
2026-07-14 09:40:17 +08:00
|
|
|
|
currentStep.value = Math.max(currentStep.value - 1, 0)
|
2026-07-13 10:31:40 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-10 16:45:55 +08:00
|
|
|
|
function handleCancel() {
|
|
|
|
|
|
router.back()
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
onMounted(loadData)
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
2026-07-14 09:40:17 +08:00
|
|
|
|
<PageCard
|
|
|
|
|
|
title="新建评测任务"
|
|
|
|
|
|
subtitle="依次配置任务、大模型评测指标与基础评测指标,确认后开始评测"
|
|
|
|
|
|
>
|
2026-07-13 10:31:40 +08:00
|
|
|
|
<div class="create-wizard-layout">
|
|
|
|
|
|
<main v-loading="loading" class="wizard-main">
|
|
|
|
|
|
<div class="wizard-steps-container" aria-label="评测任务创建步骤">
|
|
|
|
|
|
<div class="custom-wizard-steps">
|
2026-07-13 17:12:49 +08:00
|
|
|
|
<template v-for="(step, index) in WIZARD_STEPS" :key="step.title">
|
|
|
|
|
|
<div
|
|
|
|
|
|
v-if="index !== 0"
|
|
|
|
|
|
class="step-connector"
|
|
|
|
|
|
:class="{ 'is-active': currentStep >= index }"
|
|
|
|
|
|
></div>
|
|
|
|
|
|
<div
|
|
|
|
|
|
class="step-item"
|
|
|
|
|
|
:class="{
|
|
|
|
|
|
'is-active': currentStep === index,
|
|
|
|
|
|
'is-completed': currentStep > index,
|
|
|
|
|
|
}"
|
|
|
|
|
|
:aria-current="currentStep === index ? 'step' : undefined"
|
2026-07-14 09:40:17 +08:00
|
|
|
|
:aria-label="`${index + 1}. ${step.title}:${step.description}`"
|
2026-07-13 17:12:49 +08:00
|
|
|
|
>
|
|
|
|
|
|
<div class="step-node">
|
|
|
|
|
|
<div class="step-icon" aria-hidden="true">
|
|
|
|
|
|
<i v-if="currentStep > index" class="fa fa-check" />
|
|
|
|
|
|
<span v-else>{{ index + 1 }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="step-text">
|
|
|
|
|
|
<div class="step-title">{{ step.title }}</div>
|
|
|
|
|
|
<div class="step-description">{{ step.description }}</div>
|
|
|
|
|
|
</div>
|
2026-07-13 10:31:40 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-07-13 17:12:49 +08:00
|
|
|
|
</template>
|
2026-07-13 10:31:40 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="wizard-content">
|
2026-07-14 09:40:17 +08:00
|
|
|
|
<EvalTaskSetupStep
|
|
|
|
|
|
v-if="currentStep === 0"
|
|
|
|
|
|
ref="taskStepRef"
|
|
|
|
|
|
v-model="taskForm"
|
|
|
|
|
|
:trained-models="trainedModels"
|
|
|
|
|
|
:eval-datasets="evalDatasets"
|
|
|
|
|
|
:gpus="gpus"
|
|
|
|
|
|
:loading="loading"
|
|
|
|
|
|
:disabled="submitting"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<EvalRuleSetupStep
|
|
|
|
|
|
v-else-if="currentStep === 1"
|
|
|
|
|
|
ref="ruleStepRef"
|
|
|
|
|
|
v-model="ruleForm"
|
|
|
|
|
|
:eval-models="evalModels"
|
|
|
|
|
|
:disabled="submitting"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<BasicMetricSetupStep
|
|
|
|
|
|
v-else-if="currentStep === 2"
|
|
|
|
|
|
ref="basicMetricStepRef"
|
|
|
|
|
|
v-model="basicMetricForm"
|
|
|
|
|
|
:disabled="submitting"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<StartEvalStep
|
|
|
|
|
|
v-else
|
|
|
|
|
|
:task="taskForm"
|
|
|
|
|
|
:llm-metric="ruleForm"
|
|
|
|
|
|
:basic-metrics="basicMetricForm"
|
|
|
|
|
|
:trained-models="trainedModels"
|
|
|
|
|
|
:eval-datasets="evalDatasets"
|
|
|
|
|
|
:eval-models="evalModels"
|
|
|
|
|
|
:gpus="gpus"
|
|
|
|
|
|
/>
|
2026-07-13 10:31:40 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
|
|
|
|
<footer class="wizard-footer">
|
|
|
|
|
|
<el-button
|
2026-07-14 09:40:17 +08:00
|
|
|
|
v-if="currentStep > 0"
|
2026-07-13 10:31:40 +08:00
|
|
|
|
class="footer-back"
|
|
|
|
|
|
:disabled="submitting"
|
|
|
|
|
|
@click="handleBack"
|
|
|
|
|
|
>
|
2026-07-14 09:40:17 +08:00
|
|
|
|
<i class="fa fa-arrow-left footer-button-icon" />返回:{{ WIZARD_STEPS[currentStep - 1].title }}
|
2026-07-13 10:31:40 +08:00
|
|
|
|
</el-button>
|
|
|
|
|
|
<el-button v-else class="footer-back" :disabled="submitting" @click="handleCancel">
|
|
|
|
|
|
取消
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
<el-button
|
2026-07-14 09:40:17 +08:00
|
|
|
|
v-if="currentStep < WIZARD_STEPS.length - 1"
|
2026-07-13 10:31:40 +08:00
|
|
|
|
type="primary"
|
|
|
|
|
|
:disabled="loading || submitting"
|
|
|
|
|
|
@click="handleNext"
|
|
|
|
|
|
>
|
2026-07-14 09:40:17 +08:00
|
|
|
|
下一步:{{ WIZARD_STEPS[currentStep + 1].title }}<i
|
|
|
|
|
|
class="fa fa-arrow-right footer-button-icon is-right"
|
|
|
|
|
|
/>
|
2026-07-13 10:31:40 +08:00
|
|
|
|
</el-button>
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
v-else
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
:loading="submitting"
|
|
|
|
|
|
:disabled="loading || submitting"
|
|
|
|
|
|
@click="handleSubmit"
|
|
|
|
|
|
>
|
2026-07-14 09:40:17 +08:00
|
|
|
|
开始评测
|
2026-07-13 10:31:40 +08:00
|
|
|
|
</el-button>
|
|
|
|
|
|
</footer>
|
2026-07-14 09:40:17 +08:00
|
|
|
|
</div>
|
2026-07-10 16:45:55 +08:00
|
|
|
|
</PageCard>
|
|
|
|
|
|
</template>
|
2026-07-12 15:39:59 +08:00
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
2026-07-13 10:31:40 +08:00
|
|
|
|
.create-wizard-layout {
|
2026-07-12 15:39:59 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-07-13 10:31:40 +08:00
|
|
|
|
min-height: 620px;
|
|
|
|
|
|
margin: -20px;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.wizard-main {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
padding: 32px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.wizard-steps-container {
|
|
|
|
|
|
margin-bottom: 32px;
|
|
|
|
|
|
padding-bottom: 24px;
|
|
|
|
|
|
border-bottom: 1px dashed #e2e8f0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.custom-wizard-steps {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
2026-07-14 09:40:17 +08:00
|
|
|
|
max-width: 1120px;
|
2026-07-13 10:31:40 +08:00
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
padding: 0 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.step-item {
|
|
|
|
|
|
display: flex;
|
2026-07-13 17:12:49 +08:00
|
|
|
|
flex: none;
|
2026-07-13 10:31:40 +08:00
|
|
|
|
align-items: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.step-connector {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
height: 2px;
|
2026-07-14 09:40:17 +08:00
|
|
|
|
margin: 0 12px;
|
2026-07-13 10:31:40 +08:00
|
|
|
|
background: #e2e8f0;
|
|
|
|
|
|
transition: background-color 0.2s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-13 17:12:49 +08:00
|
|
|
|
.step-connector.is-active {
|
2026-07-13 10:31:40 +08:00
|
|
|
|
background: #5146e5;
|
2026-07-12 15:39:59 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-13 10:31:40 +08:00
|
|
|
|
.step-node {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.step-icon {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
width: 30px;
|
|
|
|
|
|
height: 30px;
|
|
|
|
|
|
flex: 0 0 30px;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
border: 2px solid #cbd5e1;
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
color: #64748b;
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
font-weight: 650;
|
|
|
|
|
|
transition: all 0.2s ease;
|
2026-07-12 15:39:59 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-13 10:31:40 +08:00
|
|
|
|
.step-title {
|
|
|
|
|
|
color: #64748b;
|
|
|
|
|
|
font-size: 15px;
|
2026-07-12 15:39:59 +08:00
|
|
|
|
font-weight: 600;
|
2026-07-13 10:31:40 +08:00
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.step-description {
|
|
|
|
|
|
margin-top: 3px;
|
|
|
|
|
|
color: #94a3b8;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.step-item.is-active .step-icon {
|
|
|
|
|
|
border-color: #5146e5;
|
|
|
|
|
|
background: #eef2ff;
|
|
|
|
|
|
color: #5146e5;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.step-item.is-active .step-title,
|
|
|
|
|
|
.step-item.is-completed .step-title {
|
|
|
|
|
|
color: #1e293b;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.step-item.is-completed .step-icon {
|
|
|
|
|
|
border-color: #5146e5;
|
|
|
|
|
|
background: #5146e5;
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.wizard-content {
|
|
|
|
|
|
max-width: 920px;
|
|
|
|
|
|
min-height: 400px;
|
|
|
|
|
|
margin: 0 auto;
|
2026-07-12 15:39:59 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-13 10:31:40 +08:00
|
|
|
|
.wizard-footer {
|
2026-07-12 15:39:59 +08:00
|
|
|
|
display: flex;
|
2026-07-13 10:31:40 +08:00
|
|
|
|
min-height: 64px;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
align-items: center;
|
2026-07-12 15:39:59 +08:00
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
gap: 12px;
|
2026-07-13 10:31:40 +08:00
|
|
|
|
padding: 0 32px;
|
|
|
|
|
|
border-top: 1px solid #e2e8f0;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
box-shadow: 0 -4px 6px -1px rgb(15 23 42 / 2%);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.footer-back {
|
|
|
|
|
|
margin-right: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.footer-button-icon {
|
|
|
|
|
|
margin-right: 6px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.footer-button-icon.is-right {
|
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
|
margin-left: 6px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-14 09:40:17 +08:00
|
|
|
|
@media (max-width: 1100px) {
|
|
|
|
|
|
.step-description {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-13 10:31:40 +08:00
|
|
|
|
@media (max-width: 760px) {
|
|
|
|
|
|
.wizard-main {
|
|
|
|
|
|
padding: 24px 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.custom-wizard-steps {
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.step-connector {
|
2026-07-14 09:40:17 +08:00
|
|
|
|
margin: 0 8px;
|
2026-07-13 10:31:40 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-14 09:40:17 +08:00
|
|
|
|
.step-text {
|
2026-07-13 10:31:40 +08:00
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.wizard-footer {
|
|
|
|
|
|
padding: 0 20px;
|
|
|
|
|
|
}
|
2026-07-12 15:39:59 +08:00
|
|
|
|
}
|
|
|
|
|
|
</style>
|