From e8d5b9f4113bbf99fa706db992cc9719d10fe0bd Mon Sep 17 00:00:00 2001
From: wangting <wangting@vci-tech.com>
Date: 星期三, 15 一月 2025 16:52:29 +0800
Subject: [PATCH] 流程图显示

---
 Source/plt-web/plt-web-ui/src/components/flow-design/main.vue              |    8 ++++++--
 Source/plt-web/plt-web-ui/src/views/processTemplate/customDefine/index.vue |   13 +++++++++++--
 2 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/components/flow-design/main.vue b/Source/plt-web/plt-web-ui/src/components/flow-design/main.vue
index 34560f8..6cfa604 100644
--- a/Source/plt-web/plt-web-ui/src/components/flow-design/main.vue
+++ b/Source/plt-web/plt-web-ui/src/components/flow-design/main.vue
@@ -8,13 +8,13 @@
                width="70%"
                custom-class="flow-design-dialog">
       <wf-design-base ref="bpmn"
-                      style="height: 60vh;"
+                      :style="'height: '+height+';'"
                       :options="option"></wf-design-base>
     </el-dialog>
     <div v-else>
       <wf-design-base v-if="visible"
                       ref="bpmn"
-                      style="height: 60vh;"
+                      :style="'height: '+height+';'"
                       :options="option"></wf-design-base>
     </div>
   </div>
@@ -36,6 +36,10 @@
     },
     processInstanceId: String,
     processDefinitionId: String,
+    height: {
+      type: String,
+      default: '60vh'
+    },
   },
   data() {
     return {
diff --git a/Source/plt-web/plt-web-ui/src/views/processTemplate/customDefine/index.vue b/Source/plt-web/plt-web-ui/src/views/processTemplate/customDefine/index.vue
index c0ed872..5e25bd7 100644
--- a/Source/plt-web/plt-web-ui/src/views/processTemplate/customDefine/index.vue
+++ b/Source/plt-web/plt-web-ui/src/views/processTemplate/customDefine/index.vue
@@ -98,10 +98,14 @@
         <!-- 瀵煎叆   -->
         <upload-file ref="upload" :fileType="upFileType" :fileUrl="fileUrl" :tipList="tipList" title="瀵煎叆娴佺▼妯℃澘"
                      @updata="getTableList"></upload-file>
+
       </el-aside>
 
       <el-main width="60%">
-        <div style="height: 100%;background-color: #eeeeea">璁捐鍣�</div>
+        <div style="height: 100%;position: relative;">
+          <flow-design style="padding-top: 5px" :is-display.sync="flowBox" :process-definition-id="processDefinitionId" height="calc(100vh - 190px)"></flow-design>
+          <div style="position: absolute;top:0;left: 0;height: 100%;width: 100%"></div>
+        </div>
       </el-main>
     </el-container>
   </basic-container>
@@ -131,7 +135,9 @@
       tipList:[],
       dialogLoading:false,
       dialogVisible:false,
-      dialogType:'add'
+      dialogType:'add',
+      processDefinitionId: '',
+      flowBox: false,
     }
   },
   computed: {
@@ -286,6 +292,9 @@
           this.selectionList = [row];
         }
       );
+      //鏄剧ず娴佺▼鍥�
+      this.processDefinitionId = row.id;
+      this.flowBox = true;
     },
 
     // 瀵煎嚭

--
Gitblit v1.9.3