diff --git a/ui/src/api/dataset.ts b/ui/src/api/dataset.ts index 667033c12..a3ebca6f1 100644 --- a/ui/src/api/dataset.ts +++ b/ui/src/api/dataset.ts @@ -162,6 +162,28 @@ const delDocument: (dataset_id: string, document_id: string) => Promise Promise> = ( + dataset_id, + document_id +) => { + return get(`${prefix}/${dataset_id}/document/${document_id}`) +} + +/** + * 段落列表 + * @param 参数 dataset_id + */ +const getParagraph: (dataset_id: string, document_id: string) => Promise> = ( + dataset_id, + document_id +) => { + return get(`${prefix}/${dataset_id}/document/${document_id}/paragraph`) +} + export default { getDateset, getAllDateset, @@ -173,5 +195,7 @@ export default { getDocument, postDocument, putDocument, - delDocument + delDocument, + getDocumentDetail, + getParagraph } diff --git a/ui/src/components/card-box/index.vue b/ui/src/components/card-box/index.vue index 7a53e97bc..98e027215 100644 --- a/ui/src/components/card-box/index.vue +++ b/ui/src/components/card-box/index.vue @@ -3,7 +3,7 @@
- +

{{ title }}

@@ -33,6 +33,10 @@ const props = defineProps({ description: { type: String, default: '' + }, + showIcon: { + type: Boolean, + default: true } }) diff --git a/ui/src/components/layout-container/index.vue b/ui/src/components/layout-container/index.vue index b548756b3..8ce1f322c 100644 --- a/ui/src/components/layout-container/index.vue +++ b/ui/src/components/layout-container/index.vue @@ -17,7 +17,7 @@ import { computed, useSlots } from 'vue' defineOptions({ name: 'LayoutContainer' }) const slots = useSlots() const props = defineProps({ - header: String, + header: String || null, backTo: String }) const showBack = computed(() => { diff --git a/ui/src/components/read-write/index.vue b/ui/src/components/read-write/index.vue index d0c06433d..93719dcb4 100644 --- a/ui/src/components/read-write/index.vue +++ b/ui/src/components/read-write/index.vue @@ -3,7 +3,7 @@
{{ data }} - +
@@ -12,12 +12,12 @@
- +