fix: 改为taskId
This commit is contained in:
parent
733aaabb4c
commit
61f4092394
@ -141,12 +141,12 @@ export function backProcess(data: any) {
|
||||
|
||||
/**
|
||||
* 获取可驳回节点
|
||||
* @param definitionId 流程定义ID
|
||||
* @param taskId 任务ID
|
||||
* @param nodeCode 当前节点编码
|
||||
*/
|
||||
export function getBackTaskNode(definitionId: string, nodeCode: string) {
|
||||
export function getBackTaskNode(taskId: string, nodeCode: string) {
|
||||
return requestClient.get<{ nodeCode: string; nodeName: string }[]>(
|
||||
`/workflow/task/getBackTaskNode/${definitionId}/${nodeCode}`,
|
||||
`/workflow/task/getBackTaskNode/${taskId}/${nodeCode}`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -91,10 +91,10 @@ const [BasicModal, modalApi] = useVbenModal({
|
||||
}
|
||||
modalApi.modalLoading(true);
|
||||
|
||||
const { taskId, definitionId, nodeCode } = modalApi.getData() as ModalProps;
|
||||
const { taskId, nodeCode } = modalApi.getData() as ModalProps;
|
||||
await formApi.setFieldValue('taskId', taskId);
|
||||
|
||||
const resp = await getBackTaskNode(definitionId, nodeCode);
|
||||
const resp = await getBackTaskNode(taskId, nodeCode);
|
||||
const options = resp.map((item) => ({
|
||||
label: item.nodeName,
|
||||
value: item.nodeCode,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user