From cfc00033889d66aac895ef02b10abfb6d59c05df Mon Sep 17 00:00:00 2001
From: jason <2667446@qq.com>
Date: Sun, 14 Apr 2024 10:26:42 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BB=BF=E9=92=89=E9=92=89=E8=AE=BE=E8=AE=A1?=
=?UTF-8?q?=E6=B5=81=E7=A8=8B=EF=BC=9A=E5=A2=9E=E5=8A=A0=E5=AD=97=E6=AE=B5?=
=?UTF-8?q?=E6=9D=83=E9=99=90=E8=AE=BE=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../SimpleProcessDesigner/src/addNode.vue | 8 +-
.../src/drawer/approverDrawer.vue | 462 ++++++++++++------
.../SimpleProcessDesigner/src/nodeWrap.vue | 28 +-
src/views/bpm/simpleWorkflow/index.vue | 76 +--
4 files changed, 373 insertions(+), 201 deletions(-)
diff --git a/src/components/SimpleProcessDesigner/src/addNode.vue b/src/components/SimpleProcessDesigner/src/addNode.vue
index 20148cc9..b505f208 100644
--- a/src/components/SimpleProcessDesigner/src/addNode.vue
+++ b/src/components/SimpleProcessDesigner/src/addNode.vue
@@ -70,6 +70,10 @@ let props = defineProps({
showAddButton:{
type:Boolean,
default:true
+ },
+ defaultFieldsPermission : {
+ type: Array,
+ default: () => ([])
}
})
let emits = defineEmits(['update:childNodeP'])
@@ -78,6 +82,7 @@ const addType = (type: number) => {
visible.value = false
// 审核节点
if (type === NodeType.APPROVE_USER_NODE) {
+ console.log("props.defaultFieldsPermission", props.defaultFieldsPermission)
const data = {
name: '审核人',
error: true,
@@ -86,7 +91,8 @@ const addType = (type: number) => {
attributes: {
approveMethod: undefined,
candidateStrategy: undefined,
- candidateParam: undefined
+ candidateParam: undefined,
+ fieldsPermission: props.defaultFieldsPermission,
},
childNode: props.childNodeP
}
diff --git a/src/components/SimpleProcessDesigner/src/drawer/approverDrawer.vue b/src/components/SimpleProcessDesigner/src/drawer/approverDrawer.vue
index cbcec808..fae369d1 100644
--- a/src/components/SimpleProcessDesigner/src/drawer/approverDrawer.vue
+++ b/src/components/SimpleProcessDesigner/src/drawer/approverDrawer.vue
@@ -1,3 +1,4 @@
+