Browse Source

11482-【CR】【投资系统】增加审批流程-流程图加版本

hxy 4 tháng trước cách đây
mục cha
commit
4f8dec9315

+ 1 - 0
ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowTaskServiceImpl.java

@@ -1155,6 +1155,7 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
             String xmlData = IOUtils.toString(inputStream, StandardCharsets.UTF_8);
             result.put("nodeData", flowViewerList);
             result.put("xmlData", xmlData);
+            result.put("processVersion",definition.getId());
             return AjaxResult.success(result);
         } catch (Exception e) {
             return AjaxResult.error("高亮历史任务失败");

+ 6 - 1
ruoyi-ui/src/views/flowable/task/todo/detail/flowview.vue

@@ -12,6 +12,9 @@
                size="small"
                icon="el-icon-rank"
                @click="fitViewport">适中</el-button>
+    <el-button type="primary"
+               size="small"
+               icon="el-icon">{{ processVersion }}</el-button>
     <div class="canvas" ref="flowCanvas"></div>
   </div>
 </template>
@@ -28,7 +31,8 @@ export default {
   },
   data() {
     return {
-      bpmnViewer: null
+      bpmnViewer: null,
+      processVersion: null
     };
   },
   watch: {
@@ -60,6 +64,7 @@ export default {
         if (flowData.nodeData !==undefined && flowData.nodeData.length > 0 ) {
           self.fillColor(flowData.nodeData)
         }
+        this.processVersion=flowData.processVersion;
       } catch (err) {
         console.error(err.message, err.warnings)
       }