feat(knowledge): 文件上传组件添加提示

- 重构文件上传成功后的显示界面,使用 el-result组件展示上传成功信息
- 添加重新上传按钮
- 优化上传文件的样式和交互
This commit is contained in:
du.meimei
2025-04-15 11:17:26 +08:00
parent 67d375ce79
commit 9f0a5ca238
2 changed files with 15 additions and 5 deletions

View File

@@ -12,9 +12,9 @@
</el-steps>
<div class="components">
<step-preprocessing v-show="active === 0" @getForm="getForm" @getDocumentId="getDocumentId" ref="stepPreProcessing"></step-preprocessing>
<step-preprocessing ref="stepPreProcessing" v-show="active === 0" @getForm="getForm" @getDocumentId="getDocumentId"></step-preprocessing>
<step-split-config ref="splitConfig" v-show="active === 1"></step-split-config>
<step-words v-show="active === 2"></step-words>
<step-words ref="words" v-show="active === 2"></step-words>
</div>
</div>
<div class="card-bottom">
@@ -23,7 +23,6 @@
</el-button>
<el-button type="primary" size="medium" @click="nextStep" v-if="active === 2">确定</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" @click="nextStep" v-if="active < 2">下一步</el-button>
<el-button type="primary" size="medium" @click="$router.history.go(-1)">取消</el-button>
</div>