mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-10 07:33:14 +08:00
fix: 改为taskId
This commit is contained in:
@@ -141,12 +141,12 @@ export function backProcess(data: any) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取可驳回节点
|
* 获取可驳回节点
|
||||||
* @param definitionId 流程定义ID
|
* @param taskId 任务ID
|
||||||
* @param nodeCode 当前节点编码
|
* @param nodeCode 当前节点编码
|
||||||
*/
|
*/
|
||||||
export function getBackTaskNode(definitionId: string, nodeCode: string) {
|
export function getBackTaskNode(taskId: string, nodeCode: string) {
|
||||||
return requestClient.get<{ nodeCode: string; nodeName: 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);
|
modalApi.modalLoading(true);
|
||||||
|
|
||||||
const { taskId, definitionId, nodeCode } = modalApi.getData() as ModalProps;
|
const { taskId, nodeCode } = modalApi.getData() as ModalProps;
|
||||||
await formApi.setFieldValue('taskId', taskId);
|
await formApi.setFieldValue('taskId', taskId);
|
||||||
|
|
||||||
const resp = await getBackTaskNode(definitionId, nodeCode);
|
const resp = await getBackTaskNode(taskId, nodeCode);
|
||||||
const options = resp.map((item) => ({
|
const options = resp.map((item) => ({
|
||||||
label: item.nodeName,
|
label: item.nodeName,
|
||||||
value: item.nodeCode,
|
value: item.nodeCode,
|
||||||
|
|||||||
Reference in New Issue
Block a user