mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-11 03:46:50 +08:00
feat(knowledge): 添加文档拆分和题词配置步骤、调整表格组件,支持单选功能
- 新增文件导入功能,支持手动和自动两种方式 - 添加文档拆分和题词配置步骤 - 优化导入流程,增加状态提示和错误处理 - 调整表格组件,支持单选功能
This commit is contained in:
@@ -17,12 +17,11 @@
|
||||
<step-words v-show="active === 2"></step-words>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-bottom">
|
||||
<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="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>
|
||||
@@ -81,12 +80,24 @@ export default {
|
||||
getDocumentId(id) {
|
||||
this.documentId = id
|
||||
},
|
||||
nextStep() {
|
||||
async nextStep() {
|
||||
if (this.active === 0) {
|
||||
// this.active++
|
||||
this.$refs.stepPreProcessing.uploadFiled()
|
||||
} else if (this.active === 1) {
|
||||
this.$refs.splitConfig.nextStep()
|
||||
const res = await this.$refs.splitConfig.nextStep(this.documentId)
|
||||
if (res.result === '0') {
|
||||
// 处理成功的情况
|
||||
console.log('拆分成功', res.content)
|
||||
this.active++
|
||||
}
|
||||
} else if (this.active === 2) {
|
||||
const res = await this.$refs.words.nextStep(this.documentId)
|
||||
if (res.result === '0') {
|
||||
// 处理成功的情况
|
||||
console.log('拆分成功', res.content)
|
||||
this.$message.success('创建成功')
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user