From 7921adc53f57eeb755fa9796ec1dc9e9f3f98dde Mon Sep 17 00:00:00 2001 From: konbai <1527468660@qq.com> Date: Fri, 16 Dec 2022 23:28:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=81=E7=A8=8B=E8=AE=BE=E8=AE=A1):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=A1=E6=89=B9=E4=BA=BA=E4=B8=BA"?= =?UTF-8?q?=E5=8F=91=E8=B5=B7=E4=BA=BA"=EF=BC=8Cassignee=E4=B8=BA=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E5=A1=AB=E5=85=85=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../penal/task/task-components/UserTask.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ruoyi-ui/src/plugins/package/penal/task/task-components/UserTask.vue b/ruoyi-ui/src/plugins/package/penal/task/task-components/UserTask.vue index a539ee46..18648fc3 100644 --- a/ruoyi-ui/src/plugins/package/penal/task/task-components/UserTask.vue +++ b/ruoyi-ui/src/plugins/package/penal/task/task-components/UserTask.vue @@ -397,6 +397,12 @@ export default { this.changeMultiLoopType(this.multiLoopType); }, changeDataType(val) { + if (val === 'ROLES' || val === 'DEPTS' || (val === 'USERS' && this.selectedUser.ids.length > 1)) { + this.showMultiFlog = true; + } else { + this.showMultiFlog = false; + } + this.changeMultiLoopType('Null'); // 清空 userTaskForm 所有属性值 Object.keys(userTaskForm).forEach(key => userTaskForm[key] = null); userTaskForm.dataType = val; @@ -442,13 +448,6 @@ export default { userTaskForm.text = "流程发起人"; } this.updateElementTask(); - if (val === 'ROLES' || val === 'DEPTS' || (val === 'USERS' && this.selectedUser.ids.length > 1)) { - this.showMultiFlog = true; - } else { - this.showMultiFlog = false; - } - this.multiLoopType = 'Null'; - this.changeMultiLoopType(this.multiLoopType); }, getElementLoop(businessObject) { if (!businessObject.loopCharacteristics) { @@ -466,6 +465,7 @@ export default { } }, changeMultiLoopType(type) { + this.multiLoopType = type; // 取消多实例配置 if (type === "Null") { window.bpmnInstances.modeling.updateProperties(this.bpmnElement, { loopCharacteristics: null, assignee: null });