feat(xispeak): 新增删除单条流程接口,改用processInstId删除流程

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wsm
2026-05-26 10:54:45 +08:00
co-authored by Claude Opus 4.7
parent e84ccab845
commit a3d2c0b86e
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -185,6 +185,10 @@ export const withDrawXiSpeak = (params) => {
return defHttp.post({ url: '/bg/xispeak/bgXiSpeak/withDrawXiSpeak', params }, { joinParamsToUrl: true, isTransformResponse: false });
};
export const deleteSingleProcess = (params) => {
return defHttp.post({ url: '/tasktask/taskTask/deleteSingleProcess', params }, { joinParamsToUrl: true, isTransformResponse: false });
};
/**
* 批量查询反馈统计数量(每个 xispeak 下的 feedback 总条数和已闭环数)
* @param params { ids: "id1,id2,id3" }
+2 -1
View File
@@ -83,6 +83,7 @@
updateLaunchType,
saveOrUpdateDict,
withDrawXiSpeak,
deleteSingleProcess,
getRootListWithDept,
bgXiSpeakFeedbackList,
} from './BgXiSpeak.api';
@@ -597,7 +598,7 @@
}
async function handleDeleteProcess(processRecord, reload) {
const res = await withDrawXiSpeak({ id: currentBusinessId.value });
const res = await deleteSingleProcess({ processInstId: processRecord.processInstId });
if (res.success) {
createMessage.success(res.message || '删除流程成功');
await reload();