From 5f728de55ce37e70dfb364dfe714f1517a35e977 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Thu, 16 Nov 2023 15:23:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E6=95=B0=E6=8D=AE=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/api/dataset.ts | 2 +- ui/src/views/document/DatasetSetting.vue | 2 +- ui/src/views/template/index.vue | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/api/dataset.ts b/ui/src/api/dataset.ts index 845ddf6e..5254a0b8 100644 --- a/ui/src/api/dataset.ts +++ b/ui/src/api/dataset.ts @@ -75,7 +75,7 @@ const getDatesetDetail: (dataset_id: string) => Promise> = (dataset_ /** * 修改数据集信息 * @param 参数 - * dataset_id, document_id, + * dataset_id * { "name": "string", "desc": true diff --git a/ui/src/views/document/DatasetSetting.vue b/ui/src/views/document/DatasetSetting.vue index d49d52c0..909a6596 100644 --- a/ui/src/views/document/DatasetSetting.vue +++ b/ui/src/views/document/DatasetSetting.vue @@ -29,7 +29,7 @@ async function submit() { if (await BaseFormRef.value?.validate()) { loading.value = true datasetApi - .postDocument(datasetId, BaseFormRef.value.form) + .putDateset(datasetId, BaseFormRef.value.form) .then((res) => { MsgSuccess('保存成功') loading.value = false diff --git a/ui/src/views/template/index.vue b/ui/src/views/template/index.vue index b4019ed7..fc6f31e0 100644 --- a/ui/src/views/template/index.vue +++ b/ui/src/views/template/index.vue @@ -14,6 +14,7 @@

全部模型

+
From c83d7586d2de6a554c057c3ee0a35a3b00ffe361 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Fri, 17 Nov 2023 11:36:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E5=BA=94=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/ai-dialog/index.vue | 20 +++++++++++++++++++ ui/src/components/card-box/index.vue | 2 +- ui/src/components/tag-ellipsis/index.vue | 2 +- ui/src/router/modules/application.ts | 2 +- ui/src/router/routes.ts | 2 +- .../views/application/CreateApplication.vue | 7 ++++--- .../dataset/component/EditParagraphDialog.vue | 2 +- ui/src/views/dataset/step/StepSecond.vue | 4 ++-- .../paragraph/component/ParagraphDialog.vue | 3 +-- 9 files changed, 32 insertions(+), 12 deletions(-) create mode 100644 ui/src/components/ai-dialog/index.vue diff --git a/ui/src/components/ai-dialog/index.vue b/ui/src/components/ai-dialog/index.vue new file mode 100644 index 00000000..9a9d0fa3 --- /dev/null +++ b/ui/src/components/ai-dialog/index.vue @@ -0,0 +1,20 @@ + + + diff --git a/ui/src/components/card-box/index.vue b/ui/src/components/card-box/index.vue index 34ead065..aed8ea2a 100644 --- a/ui/src/components/card-box/index.vue +++ b/ui/src/components/card-box/index.vue @@ -53,7 +53,7 @@ function cardLeave() { font-size: 14px; position: relative; min-height: var(--card-min-height); - + border: 1px solid #ffffff; .description { display: -webkit-box; -webkit-box-orient: vertical; diff --git a/ui/src/components/tag-ellipsis/index.vue b/ui/src/components/tag-ellipsis/index.vue index 098774af..09ec24de 100644 --- a/ui/src/components/tag-ellipsis/index.vue +++ b/ui/src/components/tag-ellipsis/index.vue @@ -16,7 +16,7 @@ import { ref, computed, useSlots } from 'vue' defineOptions({ name: 'TagEllipsis' }) const slots = useSlots() -const tooltipContent = slots.default()?.[0].children || '' +const tooltipContent = slots.default?.()?.[0].children || '' const tagLabel = ref() const isShowTooltip = computed(() => { const containerWeight = tagLabel.value?.scrollWidth diff --git a/ui/src/router/modules/application.ts b/ui/src/router/modules/application.ts index da630133..763243d6 100644 --- a/ui/src/router/modules/application.ts +++ b/ui/src/router/modules/application.ts @@ -11,7 +11,7 @@ const applicationRouter = { component: () => import('@/views/application/index.vue') }, { - path: '/application/create', // create + path: '/application/create', name: 'CreateApplication', meta: { activeMenu: '/application' }, component: () => import('@/views/application/CreateApplication.vue'), diff --git a/ui/src/router/routes.ts b/ui/src/router/routes.ts index b127cfe5..b894a740 100644 --- a/ui/src/router/routes.ts +++ b/ui/src/router/routes.ts @@ -9,7 +9,7 @@ export const routes: Array = [ path: '/', name: 'home', component: () => import('@/layout/app-layout/index.vue'), - redirect: '/dataset', + redirect: '/application', children: [ // { // path: '/first', diff --git a/ui/src/views/application/CreateApplication.vue b/ui/src/views/application/CreateApplication.vue index 9e07d960..6d3a66b3 100644 --- a/ui/src/views/application/CreateApplication.vue +++ b/ui/src/views/application/CreateApplication.vue @@ -1,8 +1,9 @@ diff --git a/ui/src/views/dataset/component/EditParagraphDialog.vue b/ui/src/views/dataset/component/EditParagraphDialog.vue index ca9d1d6f..99a09b49 100644 --- a/ui/src/views/dataset/component/EditParagraphDialog.vue +++ b/ui/src/views/dataset/component/EditParagraphDialog.vue @@ -1,6 +1,6 @@