From 3df0de6532ad1c438acf24d739b980764b090271 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Thu, 27 Jun 2024 11:35:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=AE=B5=E8=90=BD=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ai-chat/ExecutionDetailDialog.vue | 83 +++++++------------ .../ai-chat/ParagraphSourceDialog.vue | 49 +---------- .../ai-chat/component/ParagraphCard.vue | 58 +++++++++++++ ui/src/views/application-workflow/index.vue | 2 +- ui/src/workflow/common/CustomLine.vue | 4 +- 5 files changed, 95 insertions(+), 101 deletions(-) create mode 100644 ui/src/components/ai-chat/component/ParagraphCard.vue diff --git a/ui/src/components/ai-chat/ExecutionDetailDialog.vue b/ui/src/components/ai-chat/ExecutionDetailDialog.vue index 386546c66..848691c05 100644 --- a/ui/src/components/ai-chat/ExecutionDetailDialog.vue +++ b/ui/src/components/ai-chat/ExecutionDetailDialog.vue @@ -1,5 +1,12 @@ @@ -193,6 +155,7 @@ diff --git a/ui/src/components/ai-chat/ParagraphSourceDialog.vue b/ui/src/components/ai-chat/ParagraphSourceDialog.vue index 4543e92c3..4034c7cac 100644 --- a/ui/src/components/ai-chat/ParagraphSourceDialog.vue +++ b/ui/src/components/ai-chat/ParagraphSourceDialog.vue @@ -19,46 +19,7 @@ @@ -71,9 +32,9 @@ import { ref, watch, onBeforeUnmount } from 'vue' import { cloneDeep } from 'lodash' import { arraySort } from '@/utils/utils' +import ParagraphCard from './component/ParagraphCard.vue' const emit = defineEmits(['refresh']) -const ParagraphDialogRef = ref() const dialogVisible = ref(false) const detail = ref({}) @@ -109,9 +70,6 @@ defineExpose({ open }) .paragraph-source-height { max-height: calc(100vh - 260px); } - .paragraph-source-card { - height: 260px; - } } @media only screen and (max-width: 768px) { .paragraph-source { @@ -119,9 +77,6 @@ defineExpose({ open }) .footer-content { display: block; } - .paragraph-source-card { - height: 285px; - } } } diff --git a/ui/src/components/ai-chat/component/ParagraphCard.vue b/ui/src/components/ai-chat/component/ParagraphCard.vue new file mode 100644 index 000000000..104e66242 --- /dev/null +++ b/ui/src/components/ai-chat/component/ParagraphCard.vue @@ -0,0 +1,58 @@ + + + diff --git a/ui/src/views/application-workflow/index.vue b/ui/src/views/application-workflow/index.vue index 6cffaf100..ca4bf1703 100644 --- a/ui/src/views/application-workflow/index.vue +++ b/ui/src/views/application-workflow/index.vue @@ -117,8 +117,8 @@ function publicHandle() { work_flow: getGraphData() } applicationApi.putPublishApplication(id as String, obj, loading).then(() => { - MsgSuccess('发布成功') getDetail() + MsgSuccess('发布成功') }) }) .catch((res: any) => { diff --git a/ui/src/workflow/common/CustomLine.vue b/ui/src/workflow/common/CustomLine.vue index 02747cf04..48146e5a9 100644 --- a/ui/src/workflow/common/CustomLine.vue +++ b/ui/src/workflow/common/CustomLine.vue @@ -2,8 +2,8 @@