fix(xispeak): 通过taskId精准获取当前分支局部变量impl_dept_id实现部门过滤
原先从formData.vars中读不到多实例局部变量,改为调用新增接口 getVariable,从task执行实例向上遍历获取impl_dept_id,确保每个 分支只过滤出本部门的反馈。 后端新增接口 GET /act/process/extActProcessNode/getVariable 支持 taskId + key + isLocal 参数,isLocal=true 时逐级向上查找 局部变量。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -134,6 +134,14 @@ export const bgXiSpeakFeedbackDelete = (params, handleSuccess) => {
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取流程变量(支持局部变量查询),从task执行实例向上精准查找
|
||||
* @param params { taskId, key, isLocal }
|
||||
*/
|
||||
export const getProcessVariable = (params: { taskId: string; key: string; isLocal?: boolean }) => {
|
||||
return defHttp.get({ url: '/act/process/extActProcessNode/getVariable', params });
|
||||
};
|
||||
|
||||
/**
|
||||
* 子表批量删除
|
||||
* @param params
|
||||
|
||||
Reference in New Issue
Block a user