修复:后端已添加删除功能,无需重复调用接口,补充草稿ID

This commit is contained in:
Je
2025-01-26 16:50:58 +08:00
parent ec6175753c
commit 414d3e2299

View File

@ -250,38 +250,12 @@
isClose: true
});
message.success('操作成功');
if (rQuery?.createType === 'drafts') {
handleDelete();
}
setTimeout(() => {
bus.emit(CREATE_FLOW, {});
close();
}, 500);
}
async function handleDelete() {
try {
let res = await deleteDraft([rDraftsId]);
if (res) {
notification.open({
type: 'success',
message: t('草稿删除'),
description: t('删除成功')
});
setTimeout(() => {
bus.emit(CREATE_FLOW, {});
close();
}, 500);
} else {
notification.open({
type: 'error',
message: t('草稿删除'),
description: t('删除失败')
});
}
} catch (error) { }
}
function flowFail() {
opinionDlg.value.stopLoading();
}
@ -316,7 +290,8 @@
/*stampId: values.stampId,
stampPassword: values.password,*/
isOldSystem: system,
nextTaskUser: approvalData.nextTaskUser
nextTaskUser: approvalData.nextTaskUser,
draftId: rDraftsId,
};
}