mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-08 16:32:43 +08:00
fix:调整获取预测节点接口请求方式和参数
This commit is contained in:
parent
be6c15f5df
commit
67371e7579
@ -89,8 +89,8 @@ export const getProcessInstanceCopyPage = async (params: any) => {
|
||||
}
|
||||
|
||||
// 获取审批详情
|
||||
export const getApprovalDetail = async (data: any) => {
|
||||
return await request.post({ url: '/bpm/process-instance/get-approval-detail', data: data })
|
||||
export const getApprovalDetail = async (params: any) => {
|
||||
return await request.get({ url: '/bpm/process-instance/get-approval-detail', params })
|
||||
}
|
||||
|
||||
// 获取表单字段权限
|
||||
|
@ -162,7 +162,7 @@ const getApprovalDetail = async (row: any) => {
|
||||
const data = await ProcessInstanceApi.getApprovalDetail({
|
||||
processDefinitionId: row.id,
|
||||
activityId: NodeId.START_USER_NODE_ID,
|
||||
processVariables: row.processVariables
|
||||
processVariablesStr: JSON.stringify(row.processVariables)
|
||||
})
|
||||
|
||||
if (!data) {
|
||||
@ -224,7 +224,7 @@ const submitForm = async () => {
|
||||
// 预测流程节点会因为输入的参数值而产生新的预测结果值,所以在提交时需重新预测一次
|
||||
await getApprovalDetail({
|
||||
id: props.selectProcessDefinition.id,
|
||||
processVariables: detailForm.value?.value
|
||||
processVariablesStr: JSON.stringify(detailForm.value?.value)
|
||||
})
|
||||
// 恢复已选择的审批人信息
|
||||
Object.keys(savedAssignees).forEach((id) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user