diff --git a/src/api/generatedApi/index.js b/src/api/generatedApi/index.js index 2151dac..447a2a4 100644 --- a/src/api/generatedApi/index.js +++ b/src/api/generatedApi/index.js @@ -111,6 +111,14 @@ export function updateRuleSplit(data) { data }) } +// 拆分规则-下一步校验 +export function execSplit(data) { + return request({ + url: getUrl(`/datasetDocumentEx/execSplit`), + method: 'post', + data + }) +} // 题词-新增 export function addRuleExtract(data) { diff --git a/src/views/knowledge/detail/create.vue b/src/views/knowledge/detail/create.vue index 19e781a..dd1adfe 100644 --- a/src/views/knowledge/detail/create.vue +++ b/src/views/knowledge/detail/create.vue @@ -13,8 +13,8 @@
- - + +
@@ -24,7 +24,8 @@ 确定 上一步 - 下一步 + + 下一步 取消 @@ -54,9 +55,9 @@ export default { props: {}, watch: {}, components: { - SplitConfig, + StepSplitConfig: SplitConfig, StepPreprocessing, - Words + StepWords: Words }, filters: {}, methods: { @@ -67,6 +68,13 @@ export default { fetchApi() {}, getDocumentId(id) { this.documentId = id + }, + nextStep() { + if (this.active === 0) { + this.active++ + } else if (this.active === 1) { + this.$refs.splitConfig.nextStep() + } } }, created() {},