在线表单流程用户任务支持组件显隐设置

This commit is contained in:
Jerry
2024-08-12 21:26:51 +08:00
parent 8a4c9a0174
commit 3e39ccba49
11 changed files with 295 additions and 86 deletions

View File

@@ -352,42 +352,43 @@ const handlerStart = (
} else {
preHandlerOperation(operation, true, xml)
.then(res => {
getMasterData(operation.type, (res || {}).assignee).then(formData => {
FlowOperationController.startAndTakeUserTask(
{
processDefinitionKey: dialogParams.value.processDefinitionKey,
masterData: formData.masterData || {},
slaveData: formData.slaveData,
taskVariableData: {
...formData.taskVariableData,
latestApprovalStatus: operation.latestApprovalStatus,
getMasterData(operation.type, (res || {}).assignee)
.then(formData => {
FlowOperationController.startAndTakeUserTask(
{
processDefinitionKey: dialogParams.value.processDefinitionKey,
masterData: formData.masterData || {},
slaveData: formData.slaveData,
taskVariableData: {
...formData.taskVariableData,
latestApprovalStatus: operation.latestApprovalStatus,
},
flowTaskCommentDto: {
approvalType: operation.type,
},
copyData: (copyItemList || []).reduce((retObj, item) => {
retObj[item.type] = item.id;
return retObj;
}, {}),
},
flowTaskCommentDto: {
approvalType: operation.type,
{
// 判断是否是从流程设计里启动
processDefinitionKey: isPreview.value
? undefined
: dialogParams.value.processDefinitionKey,
},
copyData: (copyItemList || []).reduce((retObj, item) => {
retObj[item.type] = item.id;
return retObj;
}, {}),
},
{
// 判断是否是从流程设计里启动
processDefinitionKey: isPreview.value
? undefined
: dialogParams.value.processDefinitionKey,
},
)
.then(() => {
handlerClose();
ElMessage.success('启动成功!');
})
.catch(e => {
console.warn(e);
});
})
.catch(e => {
console.warn(e);
});
)
.then(() => {
handlerClose();
ElMessage.success('启动成功!');
})
.catch(e => {
console.warn(e);
});
})
.catch(e => {
console.warn(e);
});
})
.catch(e => {
console.warn(e);