refactor(knowledge): 通用模板上传解析excel逻辑处理

- 注释掉 create.vue 中的 beMinerU 和 saveMarkDown 方法
- 在 create.vue 中添加跳转逻辑,保存文档 ID 到 sessionStorage
- 在 DocumentDrawer.vue 中添加文档来源标签获取方法
- 优化 rules/Index.vue 中的表单布局和规则类型选择
- 在 knowledge/detail/index.vue 中处理文档 ID 的获取和查看逻辑
This commit is contained in:
du.meimei
2025-04-17 19:10:28 +08:00
parent 895fc79d0e
commit bb3503f101
5 changed files with 50 additions and 31 deletions

View File

@@ -74,10 +74,14 @@ export default {
})
},
getForm(form) {
if (form.beMinerU) {
this.beMinerU()
} else {
this.saveMarkDown()
// if (form.beMinerU) {
// this.beMinerU()
// } else {
// this.saveMarkDown()
// }
if (form.radio == 2) {
this.$router.go(-1)
sessionStorage.setItem('documentId', this.documentId)
}
},
fetchApi() {},