From 3f2741c473dd159766bb8dff853aee7f3e5c5f07 Mon Sep 17 00:00:00 2001 From: haha Date: Fri, 2 Aug 2024 23:37:42 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=A2=9E=E5=8A=A0=E4=BA=92=E8=81=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/models/index.js | 1 - src/views/connection/detail.vue | 15 +- src/views/connection/detailFlow.vue | 218 ++++++++++++++-------------- src/views/connection/edit.vue | 15 +- src/views/connection/index.vue | 2 +- src/views/model/uploadModel.vue | 1 - 6 files changed, 117 insertions(+), 135 deletions(-) diff --git a/src/api/models/index.js b/src/api/models/index.js index 4ca0b52..ef5ea8c 100644 --- a/src/api/models/index.js +++ b/src/api/models/index.js @@ -49,7 +49,6 @@ const download=(id)=>{ } //上传数据文件 const upload = (file) => { - debugger const formData = new FormData(); formData.append("file_name", file.name); formData.append("file_content",file) diff --git a/src/views/connection/detail.vue b/src/views/connection/detail.vue index a193280..8dde9c6 100644 --- a/src/views/connection/detail.vue +++ b/src/views/connection/detail.vue @@ -20,28 +20,23 @@ 互联名称: {{ info.data.connection_name }} - - 标签: - {{ info.data.connection_label }} - - - 创建用户: {{ info.data.user_name }} + + + 创建时间: {{ info.data.create_time }} - - - + 互联说明: {{ info.data.connection_desc }} - + diff --git a/src/views/connection/detailFlow.vue b/src/views/connection/detailFlow.vue index 849a043..62cbd9b 100644 --- a/src/views/connection/detailFlow.vue +++ b/src/views/connection/detailFlow.vue @@ -1,7 +1,7 @@ \ No newline at end of file diff --git a/src/views/connection/edit.vue b/src/views/connection/edit.vue index 033bc54..45599d7 100644 --- a/src/views/connection/edit.vue +++ b/src/views/connection/edit.vue @@ -18,16 +18,11 @@ - + - - - - - @@ -139,13 +134,11 @@ const upForm = reactive({ model_name: '', model_version: '', connection_name: '', - connection_label: '', connection_desc: '' }); const upRules = computed(() => { return { connection_name: [{ required: true, trigger: "blur", message: "请输入互联名称", },], - connection_label: [{ required: true, trigger: "blur", message: "请输入标签", },], connection_desc: [{ required: true, trigger: "blur", message: "请输入互联说明", },], } }); @@ -336,8 +329,10 @@ const doSave = () => { connection_desc: upForm.connection_desc, operator_list: operator_list, operator_connection_list: operator_connection_list, - operator_connection_nodes: flowData.nodes, - operator_connection_edges: flowData.edges + operator_node_data: { + nodes: flowData.nodes, + edges: flowData.edges + } }; if (info.type == "add") { ConnApi.add(postData).then(d => { diff --git a/src/views/connection/index.vue b/src/views/connection/index.vue index cf23493..3f73308 100644 --- a/src/views/connection/index.vue +++ b/src/views/connection/index.vue @@ -36,7 +36,7 @@