From 0d8d043250e3cf8949e759e1aa2f2815eb8b896d Mon Sep 17 00:00:00 2001 From: jason <2667446@qq.com> Date: Sun, 28 Apr 2024 21:53:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BF=E9=92=89=E9=92=89=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E5=99=A8-=E4=BF=AE=E5=A4=8D=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/nodes-config/CopyTaskNodeConfig.vue | 7 ++-- .../src/nodes-config/UserTaskNodeConfig.vue | 42 +++++++++---------- .../src/nodes/CopyTaskNode.vue | 21 +++++++++- .../src/nodes/UserTaskNode.vue | 4 +- .../theme/simple-process-designer.scss | 7 ++-- src/views/bpm/simpleWorkflow/index.vue | 7 +++- 6 files changed, 54 insertions(+), 34 deletions(-) diff --git a/src/components/SimpleProcessDesignerV2/src/nodes-config/CopyTaskNodeConfig.vue b/src/components/SimpleProcessDesignerV2/src/nodes-config/CopyTaskNodeConfig.vue index 8b07dca2..1c9e00b6 100644 --- a/src/components/SimpleProcessDesignerV2/src/nodes-config/CopyTaskNodeConfig.vue +++ b/src/components/SimpleProcessDesignerV2/src/nodes-config/CopyTaskNodeConfig.vue @@ -152,7 +152,7 @@ import * as DeptApi from '@/api/system/dept' import * as PostApi from '@/api/system/post' import * as UserApi from '@/api/system/user' import * as UserGroupApi from '@/api/bpm/userGroup' -import { defaultProps, handleTree } from '@/utils/tree' +import { defaultProps } from '@/utils/tree' defineOptions({ name: 'CopyTaskNodeConfig' }) @@ -175,8 +175,8 @@ const postOptions = inject>('postList') // 岗位列表 const userOptions = inject>('userList') // 用户列表 const deptOptions = inject>('deptList') // 部门列表 const userGroupOptions = inject>('userGroupList') // 用户组列表 -const deptTreeOptions = ref() // 部门树 -deptTreeOptions.value = handleTree(deptOptions?.value as DeptApi.DeptVO[], 'id') +const deptTreeOptions = inject('deptTree') // 部门树 + // 抄送人策略, 去掉发起人自选 const copyUserStrategies = computed( ()=> { return getIntDictOptions(DICT_TYPE.BPM_TASK_CANDIDATE_STRATEGY) @@ -285,7 +285,6 @@ const getShowText = () : string => { } onMounted(async () => { - console.log('candidateParam', currentNode.value.attributes?.candidateParam) candidateParamArray.value = currentNode.value.attributes?.candidateParam?.split(',').map(item=> +item) console.log('candidateParamArray.value', candidateParamArray.value) diff --git a/src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue b/src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue index 7ddb43fa..f793cd68 100644 --- a/src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue +++ b/src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue @@ -164,7 +164,7 @@