From ab57d20ef4d861edce2c642b1ee02b0ea168b54c Mon Sep 17 00:00:00 2001 From: weibl Date: Thu, 27 Nov 2025 16:26:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=8A=A0=E4=B8=8A=E9=9C=80?= =?UTF-8?q?=E6=B1=82=E9=99=84=E4=BB=B6=E6=9F=A5=E7=9C=8B=E6=8C=89=E9=92=AE?= =?UTF-8?q?=EF=BC=8C=E9=A1=B9=E7=9B=AE=E5=88=97=E8=A1=A8=E5=8A=A0=E4=B8=8A?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=8A=A0=E4=B8=8A=E5=AE=A1=E6=89=B9=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E6=9F=A5=E7=9C=8B=EF=BC=8C=E6=B5=81=E7=A8=8B=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E7=BA=BF=E6=94=B9=E4=B8=BA=E6=9B=B2=E7=BA=BF=EF=BC=8C?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E6=B5=81=E7=A8=8B=E5=8A=A0=E4=B8=8A=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/project/node.ts | 6 +- .../fileEdit/fileEditDialog/fileEdit.vue | 4 +- .../common/fileEdit/monacoEditor/index.vue | 4 +- src/components/common/flow/flowConfig.vue | 93 +++++++++++++++++++ src/components/common/flow/flowView.vue | 11 ++- .../creation/components/attributeConfig.vue | 54 +++++++---- .../creation/components/initGraph.ts | 2 + .../creation/components/nodeEvents.ts | 5 +- .../simulation/creation/components/stencil.ts | 6 ++ src/views/simulation/process/index.vue | 34 +++++-- src/views/task/projectList/index.vue | 8 +- .../simulationTask/components/taskTable.vue | 14 ++- 12 files changed, 203 insertions(+), 38 deletions(-) create mode 100644 src/components/common/flow/flowConfig.vue diff --git a/src/api/project/node.ts b/src/api/project/node.ts index 3c3b126..eeb7b0b 100644 --- a/src/api/project/node.ts +++ b/src/api/project/node.ts @@ -1,4 +1,4 @@ -import { get, post } from '@/api/request'; +import { download, get, post } from '@/api/request'; const env = import.meta.env; const PREFIX = env.VITE_API_PREFIX_PROJECT; @@ -99,3 +99,7 @@ export const addTaskForDataApi = (params: any) => { export const addNodeForDataApi = (params: any) => { return post(`${PREFIX}node/addNodeForData`, params); }; + +export const exportProjectApi = (params: any, filename:string) => { + return download(`${PREFIX}node/exportProject`, params, filename); +}; diff --git a/src/components/common/fileEdit/fileEditDialog/fileEdit.vue b/src/components/common/fileEdit/fileEditDialog/fileEdit.vue index 316de44..76537fc 100644 --- a/src/components/common/fileEdit/fileEditDialog/fileEdit.vue +++ b/src/components/common/fileEdit/fileEditDialog/fileEdit.vue @@ -6,7 +6,7 @@ show-footer >
- +
+ + + + + + + + diff --git a/src/components/common/flow/flowView.vue b/src/components/common/flow/flowView.vue index 91f1500..da9d8f6 100644 --- a/src/components/common/flow/flowView.vue +++ b/src/components/common/flow/flowView.vue @@ -27,10 +27,11 @@ +