mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-08 07:31:09 +08:00
fix(workflow): 修正附件参数格式,移除不必要的join转换
将三个工作流模态框组件中的附件参数从字符串拼接改为直接传递数组,以匹配后端接口期望的数据格式。
This commit is contained in:
@@ -136,7 +136,7 @@ async function handleSubmit() {
|
||||
userName: item.nickName,
|
||||
}));
|
||||
const requestData = {
|
||||
fileId: attachment.join(','),
|
||||
fileId: attachment,
|
||||
messageType,
|
||||
flowCopyList: flowCCList,
|
||||
taskId,
|
||||
|
||||
@@ -160,7 +160,7 @@ async function handleSubmit() {
|
||||
}));
|
||||
const requestData = {
|
||||
...omit(data, ['attachment']),
|
||||
fileId: data.attachment.join(','),
|
||||
fileId: data.attachment,
|
||||
taskVariables: {},
|
||||
variables: {},
|
||||
flowCopyList,
|
||||
|
||||
@@ -124,7 +124,7 @@ async function handleSubmit() {
|
||||
}
|
||||
const data = cloneDeep(await formApi.getValues());
|
||||
// 附件join
|
||||
data.fileId = data.attachment?.join?.(',');
|
||||
data.fileId = data.attachment;
|
||||
// 取消attachment参数的传递
|
||||
data.attachment = undefined;
|
||||
await backProcess(data);
|
||||
|
||||
Reference in New Issue
Block a user