From 8dc00f5b8c95daf26a65dba0facd7ea1b7fc92d6 Mon Sep 17 00:00:00 2001
From: WangHui <742019811@qq.com>
Date: Mon, 28 Feb 2022 21:48:17 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B5=81=E7=A8=8B=E9=A2=84?=
=?UTF-8?q?=E8=A7=88=E9=97=AE=E9=A2=98=EF=BC=9A=E6=B5=81=E7=A8=8B=E8=8A=82?=
=?UTF-8?q?=E7=82=B9=E8=BF=87=E5=A4=9A=E6=97=B6=E6=98=BE=E7=A4=BA=E4=B8=8D?=
=?UTF-8?q?=E5=85=A8=EF=BC=8C=E6=97=A0=E6=B3=95=E7=BC=A9=E6=94=BE=E5=92=8C?=
=?UTF-8?q?=E6=8B=96=E6=8B=BD=EF=BC=8C=E6=96=B0=E5=A2=9E=E7=BC=A9=E6=94=BE?=
=?UTF-8?q?=E5=92=8C=E9=80=82=E4=B8=AD=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-ui/package.json | 3 +-
ruoyi-ui/src/components/customBpmn/index.js | 12 +
.../src/views/flowable/task/record/flow.vue | 10 +-
.../views/flowable/task/record/flowview.vue | 244 ++++++++++++++++++
4 files changed, 265 insertions(+), 4 deletions(-)
create mode 100644 ruoyi-ui/src/components/customBpmn/index.js
create mode 100644 ruoyi-ui/src/views/flowable/task/record/flowview.vue
diff --git a/ruoyi-ui/package.json b/ruoyi-ui/package.json
index acbbfb9..63fdc1f 100644
--- a/ruoyi-ui/package.json
+++ b/ruoyi-ui/package.json
@@ -60,7 +60,8 @@
"vue-router": "3.4.9",
"vuedraggable": "2.24.3",
"vuex": "3.6.0",
- "workflow-bpmn-modeler": "^0.2.8"
+ "workflow-bpmn-modeler": "^0.2.8",
+ "diagram-js": "^5.0.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "4.4.6",
diff --git a/ruoyi-ui/src/components/customBpmn/index.js b/ruoyi-ui/src/components/customBpmn/index.js
new file mode 100644
index 0000000..ec9540b
--- /dev/null
+++ b/ruoyi-ui/src/components/customBpmn/index.js
@@ -0,0 +1,12 @@
+import inherits from "inherits";
+import Viewer from "bpmn-js/lib/Viewer";
+import ZoomScrollModule from "diagram-js/lib/navigation/zoomscroll";
+import MoveCanvasModule from "diagram-js/lib/navigation/movecanvas";
+function CustomViewer(options) {
+ Viewer.call(this, options);
+}
+inherits(CustomViewer, Viewer);
+CustomViewer.prototype._modules = [].concat(Viewer.prototype._modules, [ZoomScrollModule, MoveCanvasModule]);
+export {
+ CustomViewer
+};
diff --git a/ruoyi-ui/src/views/flowable/task/record/flow.vue b/ruoyi-ui/src/views/flowable/task/record/flow.vue
index 22982d0..7cd8334 100644
--- a/ruoyi-ui/src/views/flowable/task/record/flow.vue
+++ b/ruoyi-ui/src/views/flowable/task/record/flow.vue
@@ -1,19 +1,23 @@
-
+ />-->
+
+