diff --git a/ui/src/components/auto-tooltip/index.vue b/ui/src/components/auto-tooltip/index.vue new file mode 100644 index 000000000..4fe7f0be9 --- /dev/null +++ b/ui/src/components/auto-tooltip/index.vue @@ -0,0 +1,37 @@ + + + diff --git a/ui/src/components/index.ts b/ui/src/components/index.ts index 4502e9033..114ad716c 100644 --- a/ui/src/components/index.ts +++ b/ui/src/components/index.ts @@ -17,6 +17,7 @@ import dynamicsForm from './dynamics-form' import CardCheckbox from './card-checkbox/index.vue' import AiChat from './ai-chat/index.vue' import InfiniteScroll from './infinite-scroll/index.vue' +import AutoTooltip from './auto-tooltip/index.vue' export default { install(app: App) { @@ -38,5 +39,6 @@ export default { app.component(CardCheckbox.name, CardCheckbox) app.component(AiChat.name, AiChat) app.component(InfiniteScroll.name, InfiniteScroll) + app.component(AutoTooltip.name, AutoTooltip) } } diff --git a/ui/src/components/read-write/index.vue b/ui/src/components/read-write/index.vue index 71762873a..28758ec70 100644 --- a/ui/src/components/read-write/index.vue +++ b/ui/src/components/read-write/index.vue @@ -2,7 +2,10 @@
- {{ data }} + + {{ data }} + + diff --git a/ui/src/components/tag-ellipsis/index.vue b/ui/src/components/tag-ellipsis/index.vue index 72cdedaee..fb39c40ad 100644 --- a/ui/src/components/tag-ellipsis/index.vue +++ b/ui/src/components/tag-ellipsis/index.vue @@ -1,15 +1,8 @@ diff --git a/ui/src/views/document/index.vue b/ui/src/views/document/index.vue index e5dfc4c8c..50400b7b6 100644 --- a/ui/src/views/document/index.vue +++ b/ui/src/views/document/index.vue @@ -13,11 +13,12 @@ 导入文档 + 同步知识库 批量同步同步文档 批量删除
+
@@ -158,6 +160,7 @@ import { useRouter, useRoute } from 'vue-router' import { ElTable } from 'element-plus' import documentApi from '@/api/document' import ImportDocumentDialog from './component/ImportDocumentDialog.vue' +import SyncWebDialog from '@/views/dataset/component/SyncWebDialog.vue' import { numberFormat } from '@/utils/utils' import { datetimeFormat } from '@/utils/time' import { MsgSuccess, MsgConfirm } from '@/utils/message' @@ -169,6 +172,8 @@ const { } = route as any const { dataset } = useStore() + +const SyncWebDialogRef = ref() const loading = ref(false) let interval: any const filterText = ref('') @@ -187,6 +192,10 @@ const multipleTableRef = ref>() const multipleSelection = ref([]) const title = ref('') +function syncDataset() { + SyncWebDialogRef.value.open(id) +} + function importDoc() { title.value = '导入文档' ImportDocumentDialogRef.value.open() @@ -271,7 +280,7 @@ function syncMulDocument() { } }) documentApi.delMulSyncDocument(id, arr, loading).then(() => { - MsgSuccess('批量同步成功') + MsgSuccess('同步文档成功') getList() }) } diff --git a/ui/src/views/log/component/ChatRecordDrawer.vue b/ui/src/views/log/component/ChatRecordDrawer.vue index d79efb1c8..336d26521 100644 --- a/ui/src/views/log/component/ChatRecordDrawer.vue +++ b/ui/src/views/log/component/ChatRecordDrawer.vue @@ -61,7 +61,7 @@ const props = withDefaults( {} ) -const emit = defineEmits(['update:chartId', 'update:currentAbstract']) +const emit = defineEmits(['update:chartId', 'update:currentAbstract', 'refresh']) const route = useRoute() const { @@ -106,6 +106,7 @@ watch(visible, (bool) => { if (!bool) { emit('update:chartId', '') emit('update:currentAbstract', '') + emit('refresh') } }) diff --git a/ui/src/views/log/index.vue b/ui/src/views/log/index.vue index 68e8c904d..a9ea2fb78 100644 --- a/ui/src/views/log/index.vue +++ b/ui/src/views/log/index.vue @@ -73,6 +73,7 @@ :application="detail" :pre_disable="pre_disable" :next_disable="next_disable" + @refresh="refresh" /> @@ -248,6 +249,10 @@ function getDetail() { }) } +function refresh() { + getList() +} + onMounted(() => { getList() getDetail()