From ef535a3f33e1dd19026ffbdadc02f2d1a9619257 Mon Sep 17 00:00:00 2001 From: gssong <1742057357@qq.com> Date: Wed, 5 Mar 2025 22:26:46 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E6=B7=BB=E5=8A=A0=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=B8=8B=E4=B8=80=E5=AE=A1=E6=89=B9=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Process/submitVerify.vue | 26 +++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/src/components/Process/submitVerify.vue b/src/components/Process/submitVerify.vue index bd1755a..3ad33ed 100644 --- a/src/components/Process/submitVerify.vue +++ b/src/components/Process/submitVerify.vue @@ -23,8 +23,8 @@ 【{{ item.nodeName }}】: -
- +
+ @@ -188,6 +188,9 @@ const backLoading = ref(true); const backButtonDisabled = ref(true); // 可驳回得任务节点 const taskNodeList = ref([]); +const nickName = ref({}); +//节点编码 +const nodeCode = ref(''); const buttonObj = ref({ code: undefined, show: false @@ -224,6 +227,7 @@ const deleteSignatureVisible = ref(false); const form = ref>({ taskId: undefined, message: undefined, + assigneeMap: {}, variables: {}, messageType: ['1'], flowCopyList: [] @@ -253,7 +257,6 @@ const openDialog = async (id?: string) => { buttonObj.value[e.code] = e.show; }); buttonObj.value.applyNode = task.value.applyNode; - loading.value = false; buttonDisabled.value = false; const data = { taskId: taskId.value, @@ -261,6 +264,7 @@ const openDialog = async (id?: string) => { }; const nextData = await getNextNodeList(data); nestNodeList.value = nextData.data; + loading.value = false; }; onMounted(() => {}); @@ -270,6 +274,9 @@ const emits = defineEmits(['submitCallback', 'cancelCallback']); const handleCompleteTask = async () => { form.value.taskId = taskId.value; form.value.taskVariables = props.taskVariables; + if (!buttonObj.value.pop) { + form.value.assigneeMap = {}; + } if (selectCopyUserList.value && selectCopyUserList.value.length > 0) { const flowCopyList = []; selectCopyUserList.value.forEach((e) => { @@ -480,9 +487,20 @@ const choosePeople = async (data) => { proxy?.$modal.msgError('没有可选择的人员,请联系管理员!'); } popUserIds.value = data.permissionFlag; + nodeCode.value = data.nodeCode; porUserRef.value.open(); }; -const handlePopUser = async () => {}; +//确认选择 +const handlePopUser = async (userList) => { + const userIds = userList.map((item) => { + return item.userId; + }); + const nickNames = userList.map((item) => { + return item.nickName; + }); + form.value.assigneeMap[nodeCode.value] = userIds.join(','); + nickName.value[nodeCode.value] = nickNames.join(','); +}; /** * 对外暴露子组件方法