feat(knowledge): 优化知识构建预处理页面

- 添加预处理和 OCR 协助处理的 tooltip 说明
- 调整表单项的样式和布局
- 优化底部按钮的显示逻辑- 添加数据来源为本地文件时的预处理选项
This commit is contained in:
du.meimei
2025-04-14 11:32:22 +08:00
parent 0fd180a1e2
commit 5a239bd794
2 changed files with 22 additions and 6 deletions

View File

@@ -12,17 +12,19 @@
</el-steps>
<div class="components">
<step-preprocessing v-if="active === 0" @getForm="getForm" @getDocumentId="getDocumentId"></step-preprocessing>
<step-preprocessing ref="stepPreprocessing" v-if="active === 0" @getForm="getForm" @getDocumentId="getDocumentId"></step-preprocessing>
<split-config v-if="active === 1"></split-config>
<words v-if="active === 2"></words>
</div>
</div>
<div class="card-bottom">
<el-button type="primary" size="medium" @click="fetchApi">一键处理</el-button>
<el-button type="primary" size="medium" @click="active++" v-if="active < 2">下一步</el-button>
<el-button v-if="active === 0 && $refs.stepPreprocessing && $refs.stepPreprocessing.form.radio === '2'" type="primary" size="medium" @click="fetchApi">
一键处理
</el-button>
<el-button type="primary" size="medium" v-if="active === 2">确定</el-button>
<el-button type="primary" size="medium" @click="active--" v-if="active >= 1">上一步</el-button>
<el-button size="medium" @click="active--" v-if="active >= 1">上一步</el-button>
<el-button type="primary" size="medium" @click="active++" v-if="active < 2">下一步</el-button>
<el-button type="primary" size="medium">取消</el-button>
</div>
</el-card>
@@ -44,7 +46,7 @@ export default {
name: 'create',
data() {
return {
visible: true,
visible: false,
active: 0,
documentId: ''
}