From bf68ac2b8c5dcc8d7fcb3fea2df813a86a858aee Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 22 Nov 2023 11:05:06 +0800 Subject: [PATCH] feat: --- ui/src/api/team.ts | 1 - ui/src/components/ai-dialog/index.vue | 73 +++++++++++++------ ui/src/components/back-button/index.vue | 3 +- ui/src/components/card-box/index.vue | 2 +- ui/src/components/common-list/index.vue | 2 +- ui/src/components/tag-ellipsis/index.vue | 6 +- ui/src/components/tags-input/index.vue | 6 +- ui/src/request/index.ts | 2 +- ui/src/styles/app.scss | 48 +++++++++--- ui/src/styles/element-plus.scss | 6 +- ui/src/styles/variables.scss | 2 +- ui/src/utils/utils.ts | 11 ++- ui/src/views/dataset/component/BaseForm.vue | 5 +- .../dataset/component/ParagraphPreview.vue | 1 - .../dataset/component/UploadComponent.vue | 4 +- ui/src/views/dataset/step/StepFirst.vue | 9 ++- ui/src/views/document/index.vue | 8 +- .../paragraph/component/ParagraphForm.vue | 5 +- .../paragraph/component/ProblemComponent.vue | 1 - 19 files changed, 129 insertions(+), 66 deletions(-) diff --git a/ui/src/api/team.ts b/ui/src/api/team.ts index 03c6b18d7..9e6ef896b 100644 --- a/ui/src/api/team.ts +++ b/ui/src/api/team.ts @@ -1,7 +1,6 @@ import { Result } from '@/request/Result' import { get, post, del, put } from '@/request/index' import type { TeamMember } from '@/api/type/team' -// import type { Ref } from 'vue' const prefix = '/team/member' diff --git a/ui/src/components/ai-dialog/index.vue b/ui/src/components/ai-dialog/index.vue index 1b5016371..f1c38dff7 100644 --- a/ui/src/components/ai-dialog/index.vue +++ b/ui/src/components/ai-dialog/index.vue @@ -2,35 +2,35 @@
-
- - - - -
+
-
- -

您好,我是 MaxKB 智能小助手

-
- 回答用户提出的 MaxKB 产品使用问题 -
-
- -

您可以尝试输入以下问题:

- - - DataEase支持哪些类型的数据源? - - +
+ +

您好,我是 MaxKB 智能小助手

+
+ 回答用户提出的 MaxKB 产品使用问题 +
+
+ +

您可以尝试输入以下问题:

+
+ DataEase支持哪些类型的数据源?XXXXXXXXXXX +
+ +
DataEase支持哪些类型的数据源?XXXXXXXXXXX
- -
+ - +
+
+
+
+ + + +
+
+
+ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +
+
+
+
+
+ + + +
+
+ XXXXXXXXX +
@@ -89,6 +112,10 @@ const inputValue = ref('') .content { padding-left: var(--padding-left); } + .text { + word-break: break-all; + padding: 6px 0; + } .problem-button { width: 100%; border: none; diff --git a/ui/src/components/back-button/index.vue b/ui/src/components/back-button/index.vue index 9f52e8475..f5640ad67 100644 --- a/ui/src/components/back-button/index.vue +++ b/ui/src/components/back-button/index.vue @@ -12,7 +12,8 @@ const props = defineProps({ to: String }) -const back: any = router.options.history.state.back // 上一层路由 +/* 上一层路由 */ +const back: any = router.options.history.state.back function jump() { if (props.to === '-1') { back ? router.push(back) : router.go(-1) diff --git a/ui/src/components/card-box/index.vue b/ui/src/components/card-box/index.vue index 995d4d94d..0663b2cae 100644 --- a/ui/src/components/card-box/index.vue +++ b/ui/src/components/card-box/index.vue @@ -6,7 +6,7 @@ -

{{ title }}

+

{{ title }}

diff --git a/ui/src/components/common-list/index.vue b/ui/src/components/common-list/index.vue index a214a027a..01c4f7412 100644 --- a/ui/src/components/common-list/index.vue +++ b/ui/src/components/common-list/index.vue @@ -36,7 +36,7 @@ function clickHandle(row: any, index: number) { }