From dc590d026e1130a98c70181fb65f8ed09414e787 Mon Sep 17 00:00:00 2001
From: yuxc <653031404@qq.com>
Date: 星期五, 14 七月 2023 17:48:11 +0800
Subject: [PATCH] 1、主要解决获取当前用户信息等问题,使用AuthUtil来进行获取,对生成token等信息进行了修改增加。

---
 Source/UBCS-WEB/src/components/flow-cycle/flowchartEditor.vue |   29 +++++++++--------------------
 1 files changed, 9 insertions(+), 20 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/flow-cycle/flowchartEditor.vue b/Source/UBCS-WEB/src/components/flow-cycle/flowchartEditor.vue
index 9b6c62e..78b4dd5 100644
--- a/Source/UBCS-WEB/src/components/flow-cycle/flowchartEditor.vue
+++ b/Source/UBCS-WEB/src/components/flow-cycle/flowchartEditor.vue
@@ -1,3 +1,5 @@
+<!-- eslint-disable vue/valid-v-for -->
+<!-- eslint-disable vue/require-v-for-key -->
 <template>
   <vue-flowchart-editor class="vue-flowchart-editor" ref="flowChart">
     <div class="vfe-chart">
@@ -15,13 +17,13 @@
           <flow :data="flowChartData" :onAfterChange="onAfterChange" />
           <div class="tooltip">
             <template v-for="item in tooltipData">
-              <p :key="item.name">{{ item.name }}: {{ item.value }}</p>
+              <p>{{ item.name }}: {{ item.value }}</p>
             </template>
           </div>
         </div>
         <div class="vfe-chart-panel" v-if="type !== 'detail'">
           <div class="vfe-chart-panel-detail">
-            <editor-detail-panel :rowData="rowData" ref="EditorDetailPanel" />
+            <editor-detail-panel :rowData="rowData" ref="EditorDetailPanel" :existNodes="existNodes" :type="type"/>
           </div>
         </div>
       </div>
@@ -81,6 +83,7 @@
       },
       tooltipShow: true,
       tooltipData: [],
+      existNodes: this.chartData.nodes || []
     };
   },
 
@@ -93,25 +96,7 @@
   },
 
   methods: {
-    // onAfterChange(e) {
-    //   const model = e.model
-    //   console.log(JSON.parse(JSON.stringify(e)));
-    //   if (!model.change) {
-    //     model.id = model.label
-    //     model.change = true
-    //   } else {
-    //     return
-    //   }
-    //   const { nodes } = this.$refs.flowChart.propsAPI.save()
-    //   if (Array.isArray(nodes) && nodes.length > 0) {
-
-    //   } else {
-    //     this.$refs.flowChart.propsAPI.add("node", model);
-    //   }
-    //   throw '绂佹鍘熺敓鏂板鏂规硶'
-    // },
     onAfterChange(e) {
-      console.log(e);
       try {
         if (e.action === "add" && e.model.type === "node") {
           if (!e.model.change) {
@@ -129,6 +114,9 @@
           this.$message.error("涓嶈兘娣诲姞宸插瓨鍦ㄧ殑鑺傜偣锛�");
         }
       }
+      const { nodes } = this.$refs.flowChart.propsAPI.save()
+      this.existNodes = nodes || []
+      console.log(this.$refs.flowChart.propsAPI.save());
     },
     _downloadImage(data, filename = "flowchart.png") {
       const a = document.createElement("a");
@@ -219,6 +207,7 @@
       width: 300px;
       background-color: #fafafa;
       border-left: 1px solid #e6e9ed;
+      overflow-y: scroll;
 
       .vfe-chart-panel-detail {
         box-sizing: border-box;

--
Gitblit v1.9.3