feat(knowledge): 优化知识库文件上传功能

- 添加通用模板上传功能
- 优化上传接口调用逻辑
- 增加上传进度显示和模板下载功能
- 调整预处理结果预览对话框逻辑
- 优化文档详情查看功能
This commit is contained in:
陈昱达
2025-04-14 13:26:15 +08:00
parent 5a239bd794
commit 868598cee2
4 changed files with 69 additions and 50 deletions

View File

@@ -12,7 +12,7 @@
</el-steps>
<div class="components">
<step-preprocessing ref="stepPreprocessing" v-if="active === 0" @getForm="getForm" @getDocumentId="getDocumentId"></step-preprocessing>
<step-preprocessing v-if="active === 0" @getForm="getForm" @getDocumentId="getDocumentId" @beMinerU="beMinerU"></step-preprocessing>
<split-config v-if="active === 1"></split-config>
<words v-if="active === 2"></words>
</div>
@@ -30,7 +30,7 @@
</el-card>
<!-- 添加预处理结果预览对话框 -->
<el-drawer :visible.sync="visible" size="80%" title="预处理结果预览" :before-close="handleClose">
<el-drawer :visible.sync="visible" size="80%" title="预处理结果预览">
<div style="height:calc(100% - 55px);">
<r-miner-u :documentId="documentId"></r-miner-u>
</div>
@@ -60,6 +60,9 @@ export default {
},
filters: {},
methods: {
beMinerU() {
this.visible = true
},
getForm() {},
fetchApi() {},
getDocumentId(id) {