linyang 3 周之前
父节点
当前提交
5d43af3719
共有 3 个文件被更改,包括 9 次插入9 次删除
  1. 4 4
      src/api/knowledge-base.ts
  2. 4 4
      src/views/documents/KnowledgeBase.vue
  3. 1 1
      src/views/documents/SearchEngine.vue

+ 4 - 4
src/api/knowledge-base.ts

@@ -4,16 +4,16 @@ import request from './request'
 export interface KnowledgeBase {
   id: string
   name: string
-  collection_name1: string
-  collection_name2?: string
+  collection_name_parent: string
+  collection_name_children?: string
   description?: string
   status: string
   document_count: number
   is_synced?: boolean
   created_by?: string
   updated_by?: string
-  created_at: string
-  updated_at: string
+  created_time: string
+  updated_time: string
 }
 
 export interface KnowledgeBaseParams {

+ 4 - 4
src/views/documents/KnowledgeBase.vue

@@ -482,8 +482,8 @@ const handleAdd = () => {
   dialogType.value = 'create'
   formData.id = ''
   formData.name = ''
-  formData.collection_name1 = ''
-  formData.collection_name2 = ''
+  formData.collection_name_parent = ''
+  formData.collection_name_children = ''
   formData.description = ''
   formData.dimension = 768
   formData.status = 'normal'
@@ -494,8 +494,8 @@ const handleEdit = async (row: KnowledgeBase) => {
   dialogType.value = 'edit'
   formData.id = row.id
   formData.name = row.name
-  formData.collection_name1 = row.collection_name1
-  formData.collection_name2 = row.collection_name2 || ''
+  formData.collection_name_parent = row.collection_name_parent
+  formData.collection_name_children = row.collection_name_children || ''
   formData.description = row.description || ''
   formData.status = row.status
   

+ 1 - 1
src/views/documents/SearchEngine.vue

@@ -29,7 +29,7 @@
                         v-for="kb in kbList" 
                         :key="kb.id" 
                         :label="kb.name" 
-                        :value="kb.collection_name2 || kb.collection_name1 || kb.collection_name" 
+                        :value="kb.collection_name_children || kb.collection_name_parent || kb.collection_name" 
                     >
                         <span>{{ kb.name }}</span>
                     </el-option>