From 7d05c69630d066c0992368423f90e440e3638f91 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期日, 29 九月 2024 11:01:51 +0800
Subject: [PATCH] 整合代码

---
 Source/UBCS-WEB/src/views/modeling/cycle.vue |  129 ------------------------------------------
 1 files changed, 1 insertions(+), 128 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/modeling/cycle.vue b/Source/UBCS-WEB/src/views/modeling/cycle.vue
index 6f00942..5194d87 100644
--- a/Source/UBCS-WEB/src/views/modeling/cycle.vue
+++ b/Source/UBCS-WEB/src/views/modeling/cycle.vue
@@ -243,6 +243,7 @@
           });
           this.nodesEdgesData = { nodes, edges };
           this.visible = true;
+          console.log('nodesEdgesData',this.nodesEdgesData)
         });
       } else {
         this.nodesEdgesData = {};
@@ -304,133 +305,6 @@
       });
     },
     async submit() {
-      // const data = {
-      //   startStatus: "Auditing",
-      //   name: "22",
-      //   id: "asas",
-      //   nodes: [
-      //     {
-      //       type: "node",
-      //       size: "80*48",
-      //       shape: "flow-rect",
-      //       color: "#1890FF",
-      //       label: "Auditing",
-      //       x: 278.60856031183397,
-      //       y: 84.12841612613737,
-      //       id: "Auditing",
-      //       change: true,
-      //       index: 0,
-      //       name: "Auditing",
-      //       indexNum: 0,
-      //     },
-      //     {
-      //       type: "node",
-      //       size: "80*48",
-      //       shape: "flow-rect",
-      //       color: "#1890FF",
-      //       label: "Editing",
-      //       x: 294.17388658989535,
-      //       y: 299.9676071819219,
-      //       id: "Editing",
-      //       change: true,
-      //       index: 1,
-      //       name: "Editing",
-      //       indexNum: 1,
-      //     },
-      //     {
-      //       type: "node",
-      //       size: "80*48",
-      //       shape: "flow-rect",
-      //       color: "#1890FF",
-      //       label: "drg",
-      //       x: 278.60856031183397,
-      //       y: 463.92237731083515,
-      //       id: "drg",
-      //       change: true,
-      //       index: 3,
-      //       name: "drg",
-      //       indexNum: 3,
-      //     },
-      //   ],
-      //   edges: [
-      //     {
-      //       source: "Auditing",
-      //       sourceAnchor: 2,
-      //       target: "Editing",
-      //       targetAnchor: 0,
-      //       id: "3083896f",
-      //       index: 2,
-      //       indexNum: 2,
-      //       events: [
-      //         {
-      //           eventFullName:
-      //             "plm.bs.omd.lifecycle.server.pubimpl.TransationEvente",
-      //           eventShowName: "TransationEventE",
-      //           description: "",
-      //           bizDomain: "mdm",
-      //           oid: "5",
-      //           creator: "",
-      //           createTime: "",
-      //           lastModifier: "",
-      //           lastModifyTime: "",
-      //           ts: "",
-      //         },
-      //       ],
-      //     },
-      //     {
-      //       source: "Editing",
-      //       sourceAnchor: 2,
-      //       target: "drg",
-      //       targetAnchor: 0,
-      //       id: "b941a21d",
-      //       index: 4,
-      //       indexNum: 4,
-      //       events: [
-      //         {
-      //           eventFullName:
-      //             "plm.bs.omd.lifecycle.server.pubimpl.TransationEventf",
-      //           eventShowName: "TransationEventF",
-      //           description: "",
-      //           bizDomain: "mdm",
-      //           oid: "6",
-      //           creator: "",
-      //           createTime: "",
-      //           lastModifier: "",
-      //           lastModifyTime: "",
-      //           ts: "",
-      //         },
-      //         {
-      //           eventFullName:
-      //             "plm.bs.omd.lifecycle.server.pubimpl.TransationEvente",
-      //           eventShowName: "TransationEventE",
-      //           description: "",
-      //           bizDomain: "mdm",
-      //           oid: "5",
-      //           creator: "",
-      //           createTime: "",
-      //           lastModifier: "",
-      //           lastModifyTime: "",
-      //           ts: "",
-      //         },
-      //       ],
-      //     },
-      //   ],
-      // };
-      // API.add(data)
-      //   .then((res) => {
-      //     this.submitLoading = false;
-      //     if (res.data.code === 200) {
-      //       this.$message.success(
-      //         this.type === "edit" ? "淇敼鎴愬姛锛�" : "鏂板鎴愬姛锛�"
-      //       );
-      //       this.visible = false;
-      //       this.search();
-      //     }
-      //   })
-      //   .catch(() => {
-      //     this.submitLoading = false;
-      //   });
-      // return;
       const newRowData = await this.$refs.vueFlowchartEditor.getNewRowData();
       if (!newRowData) {
         return;
@@ -457,7 +331,6 @@
         ...flowData,
       };
 
-      console.log('params',params)
       this.submitLoading = true;
       let APIFun = API.add;
       if (this.type === "edit") {

--
Gitblit v1.9.3