Commit 0f41837d authored by Data Governance Dev's avatar Data Governance Dev

feat(web): 去掉启用 LLM 开关,前端固定开启

Step 2 / 5 是 LLM-required 步骤,前端暴露开关容易让人误以为可以关闭、
跑出残缺结果。本轮简化前端:固定开启 LLM。

- 删除「启用 LLM」el-switch UI 块(原来与「执行步骤」并排 col 12)
- 执行步骤 col 升级为 24 整行,避免复选框拥挤
- 删除 form.enable_llm 字段(form reactive 状态里)
- 提示语扩展:'Step 2 / 5 需 LLM(已在 web/configs/llm.yaml 配置)'
- 后端无需改:ConnectRequest.enable_llm 默认 True,
  即使前端忘了带字段也会走默认值,不会降级到 False

验证:前端启用 LLM / enable_llm / el-switch 标记全部清除(65222 字节)
本地 == HTTP 服务返回一致。
parent 83695b0f
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="24">
<el-form-item label="执行步骤"> <el-form-item label="执行步骤">
<el-checkbox-group v-model="form.steps"> <el-checkbox-group v-model="form.steps">
<el-checkbox v-for="s in stepsList" :key="s.num" :label="s.num" :disabled="s.required"> <el-checkbox v-for="s in stepsList" :key="s.num" :label="s.num" :disabled="s.required">
...@@ -108,13 +108,7 @@ ...@@ -108,13 +108,7 @@
</span> </span>
</el-checkbox> </el-checkbox>
</el-checkbox-group> </el-checkbox-group>
<div class="form-hint">Step 1 为数据基础,必选且不可取消;其他步骤可并行执行</div> <div class="form-hint">Step 1 为数据基础,必选且不可取消;其他步骤可并行执行;Step 2 / 5 需 LLM(已在 web/configs/llm.yaml 配置)</div>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="启用 LLM">
<el-switch v-model="form.enable_llm" active-text="启用" inactive-text="关闭" />
<span class="form-hint">(缺 Key 时自动降级为规则推理)</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -709,7 +703,6 @@ ...@@ -709,7 +703,6 @@
charset: 'utf8mb4', charset: 'utf8mb4',
connect_timeout: 10, connect_timeout: 10,
steps: [1, 2, 3, 4, 5, 6, 7, 8], steps: [1, 2, 3, 4, 5, 6, 7, 8],
enable_llm: true,
}); });
const testing = ref(false); const testing = ref(false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment