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 1/3] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B5=81=E7=A8=8B?=
=?UTF-8?q?=E9=A2=84=E8=A7=88=E9=97=AE=E9=A2=98=EF=BC=9A=E6=B5=81=E7=A8=8B?=
=?UTF-8?q?=E8=8A=82=E7=82=B9=E8=BF=87=E5=A4=9A=E6=97=B6=E6=98=BE=E7=A4=BA?=
=?UTF-8?q?=E4=B8=8D=E5=85=A8=EF=BC=8C=E6=97=A0=E6=B3=95=E7=BC=A9=E6=94=BE?=
=?UTF-8?q?=E5=92=8C=E6=8B=96=E6=8B=BD=EF=BC=8C=E6=96=B0=E5=A2=9E=E7=BC=A9?=
=?UTF-8?q?=E6=94=BE=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 @@
-
+ />-->
+
+
From 3e34a6cc9ed89cef1d30d9285ecad9c248384b3a Mon Sep 17 00:00:00 2001
From: WangHui <742019811@qq.com>
Date: Mon, 28 Feb 2022 21:53:06 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E5=AE=A1=E6=89=B9=E5=BC=B9=E7=AA=97?=
=?UTF-8?q?=E8=B0=83=E6=95=B4=EF=BC=9A=E5=88=A0=E9=99=A4=E5=B7=B2=E9=80=89?=
=?UTF-8?q?=E4=BA=BA=E5=91=98=E6=97=B6=E5=BE=85=E9=80=89=E5=A4=8D=E9=80=89?=
=?UTF-8?q?=E6=A1=86=E6=B2=A1=E6=9C=89=E5=8F=96=E6=B6=88=EF=BC=8C=E4=BC=98?=
=?UTF-8?q?=E5=8C=96=E8=81=94=E5=8A=A8=E6=95=88=E6=9E=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-ui/src/views/flowable/task/record/index.vue | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/ruoyi-ui/src/views/flowable/task/record/index.vue b/ruoyi-ui/src/views/flowable/task/record/index.vue
index 6f9fe55..38a5550 100644
--- a/ruoyi-ui/src/views/flowable/task/record/index.vue
+++ b/ruoyi-ui/src/views/flowable/task/record/index.vue
@@ -72,7 +72,7 @@
-
+
@@ -116,7 +116,7 @@
已选人员
{{tag.nickName}} {{tag.dept.deptName}}
@@ -350,6 +350,7 @@ export default {
// 关闭标签
handleClose(tag) {
this.userData.splice(this.userData.indexOf(tag), 1);
+ this.$refs.singleTable.toggleRowSelection(tag, false)
},
/** 流程变量赋值 */
handleCheckChange(val) {
From 38ed4750c7e530935d6b14c1d4bea83391c01dac Mon Sep 17 00:00:00 2001
From: WangHui <742019811@qq.com>
Date: Mon, 28 Feb 2022 21:54:50 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E6=B5=81=E7=A8=8B=E8=AE=BE=E8=AE=A1?=
=?UTF-8?q?=E5=99=A8=E5=BC=82=E6=AD=A5=E9=97=AE=E9=A2=98=EF=BC=9A=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1=E8=8A=82=E7=82=B9=E8=AE=BE=E7=BD=AE=E5=BC=82=E6=AD=A5?=
=?UTF-8?q?=E5=90=8E=E6=97=A0=E6=B3=95=E5=8F=96=E6=B6=88=EF=BC=8C=E5=B7=B2?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-ui/src/components/Process/components/nodePanel/task.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ruoyi-ui/src/components/Process/components/nodePanel/task.vue b/ruoyi-ui/src/components/Process/components/nodePanel/task.vue
index 61a00d1..dae7e30 100644
--- a/ruoyi-ui/src/components/Process/components/nodePanel/task.vue
+++ b/ruoyi-ui/src/components/Process/components/nodePanel/task.vue
@@ -326,7 +326,7 @@ export default {
},
'formData.async': function(val) {
if (val === '') val = null
- this.updateProperties({ 'flowable:async': true })
+ this.updateProperties({ 'flowable:async': val })
},
'formData.dueDate': function(val) {
if (val === '') val = null