refactor: 简化评测创建向导规则来源

移除已有维度/基线两种规则来源,评测创建仅保留新建维度流程并自动生成维度名称;维度名称字段回归独立创建页,表单校验改为返回精确布尔值并启用 scroll-to-error。
This commit is contained in:
caoxiaozhu
2026-07-12 22:49:05 +08:00
parent 687831870c
commit 862a7972cf
5 changed files with 14 additions and 92 deletions

View File

@@ -57,8 +57,8 @@ watch(
async function validate() {
if (!formRef.value) return false
try {
await formRef.value.validate()
return true
const valid = await formRef.value.validate()
return !!valid
} catch {
return false
}
@@ -75,6 +75,7 @@ defineExpose({ validate })
label-width="120px"
class="step-form"
:disabled="disabled"
scroll-to-error
>
<el-form-item label="任务名称" prop="eval_task_name">
<el-input v-model="form.eval_task_name" placeholder="请输入任务名称" maxlength="50" show-word-limit />