feat: 抄送选择

This commit is contained in:
dap
2024-12-18 09:32:53 +08:00
parent b641b0eb15
commit 3de8104e44
7 changed files with 93 additions and 16 deletions

View File

@@ -8,6 +8,8 @@ import { cloneDeep } from 'lodash-es';
import { useVbenForm } from '#/adapter/form';
import { completeTask } from '#/api/workflow/task';
import { CopyComponent } from '.';
interface Emits {
/**
* 完成
@@ -71,9 +73,14 @@ async function handleSubmit() {
const { messageType, flowCopyList } = cloneDeep(await formApi.getValues());
const { taskId, taskVariables, variables } =
modalApi.getData() as ModalProps;
// 需要转换数据 抄送人员
const flowCCList = (flowCopyList as Array<any>).map((item) => ({
userId: item.userId,
userName: item.nickName,
}));
const data = {
messageType,
flowCopyList,
flowCopyList: flowCCList,
taskId,
taskVariables,
variables,
@@ -92,8 +99,8 @@ async function handleSubmit() {
<template>
<BasicModal>
<BasicForm>
<template #flowCopyList>
<div>TODO: 等待组件开发</div>
<template #flowCopyList="slotProps">
<CopyComponent v-model:user-list="slotProps.modelValue" />
</template>
</BasicForm>
</BasicModal>